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
$ ldd src/.libs/libcairo.so
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00002aaaaac06000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1
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)
(this is on an amd64)
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  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
Also, i suppose davide's script should be updated to configure cairo
with extra options "--disable-xlib --disable-ps --disable-pdf" as dave
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