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

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



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)

You can also --disable-freetype and --disable-png if those aren't in udebs. I assume PNG probably is.

I'm not sure what gtk-using-cairo actually requires, maybe it wants cairo-with-X, I haven't tried such a combination.

Suggestions how to deal with this welcome.
CC'ing the maintainer of libcairo to see if he has any ideas.

Does that help? I'm somewhat around at the moment to experiment with things.

Cheers,
FJP

P.S. Alastair: does the new gtk+2.0 mean we should also update the
               gtk+-directfb packages?

Dave



Reply to: