[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: G-I - New challenge: dependency of pango on cairo



Dave Beckett wrote:
Frans Pop wrote:

Very recently new versions of gtk+2.0 and pango1.0 arrived in unstable.

For libpango this means that it now depends on libcairo2, and as we don't have a udeb available for libcairo yet, this breaks builds of g-i.
I had asked Jeff Bailey to create one, and he kindly made a patch today.


I'm not familiar with debian's installer environment or udebs, for what it's worth, so excuse me if I'm not clear on requirements.

So far so good, but not really.
It turns out that libcairo2 depends on libx11-6 and libxrender1, and of course we use directfb, not X. So it looks to me like we need a udeb with a version of libcairo compiled against directfb instead of X.


Cairo depends on X by default, but this (like any backend) can be disabled:

./configure --disable-xlib --disable-ps --disable-pdf
...
make
...
$ ldd src/.libs/libcairo.so
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00002aaaaac06000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00002aaaaad2a000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00002aaaaae6a000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00002aaaaafe4000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002aaaab0fa000)
        libm.so.6 => /lib/libm.so.6 (0x00002aaaab2f8000)
        libc.so.6 => /lib/libc.so.6 (0x00002aaaab47d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaab6bb000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00002aaaab7c9000)
        /lib/ld-linux-x86-64.so.2 (0x0000555555554000)

(this is on an amd64)


Hi

I'm not a cairo expert, but i supose the libcairo packaged into udeb should be build with the cairodfb patch applied as davide's automated scripts [1] do, so that cairo relies on DFB instead of X

attilio@attilaptop:~$ ldd zino_clean_old/d-i_build/lib/libcairo.so
...
libdirectfb-0.9.so.22 => /usr/lib/libdirectfb-0.9.so.22 (0xb7ef1000)
...

Also, i suppose davide's script should be updated to configure cairo with extra options "--disable-xlib --disable-ps --disable-pdf" as dave beckett suggested. I'm recompiling the whole GTKDFB 2.8.3 set of libs right now with those cairo extra flags to see if libcairo can be made depend only on libdirecfb

ciao

Attilio

[1] http://wiki.debian.org/DebianInstallerGUIBuild



Reply to: