Bug#930603: libdockapp-dev: pkg-config file Requires xext without dependency on libxext-dev

Jeremy Sowden jeremy at azazel.net
Sat Oct 9 15:32:23 BST 2021


On 2019-08-13, at 19:09:33 +0200, Andreas Metzler wrote:
> On 2019-06-16 Douglas Torrance wrote:
> > On Sun, Jun 16, 2019 at 7:30 AM Andreas Metzler wrote:
> >> /usr/lib/x86_64-linux-gnu/pkgconfig/dockapp.pc:
> >> Requires: x11 xext xpm
>
> >> Therefore anything build-depending on libdockapp-dev and using
> >> pkg-config to locate the library will FTBFS unless it has a direct
> >> b-d on libxext-dev.
>
> >> I think the error is in the pkg-config file, not in the Debian
> >> package.  Since the headers of libdockapp-dev do not #include (and
> >> therefore expose) headers from libxext-dev the pkg-config should
> >> have (at most)
> >> Libs.private: -lext
> >> instead of the requires.
>
> > This was fixed in git upstream a while ago [1], but there hasn't
> > been a new release yet.  I'll work on that soon.
>
> the respective patch moves "Requires: x11 xext xpm" to
> Requires.private.  That does not really fix the bug. pkg-config
> --cflags requires that not only Requires but also Requires.private are
> is resolvable (even when --static is not present) i.e. xext.pc would
> still need to be present.
>
> I think this would be the correct fix:
> - @echo 'Requires.private: x11 xext xpm' >> $@
> + @echo 'Requires.private: x11 xpm' >> $@
> + @echo 'Libs.private: -lext' >> $@

Doesn't that mean that we lose information?  What if libxext is
installed in a non-standard location, and we need the -L${libdir} to
find it?

I think the right thing to do is to add a b-d on libxext-dev to
libdockapp-dev.

J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-wmaker-devel/attachments/20211009/309eb362/attachment.sig>


More information about the Pkg-wmaker-devel mailing list