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

Re: pkg-configure and pkgconf



On Wed, Oct 22, 2014 at 10:56:52PM +0100, Wookey wrote:
> +++ Andrew Shadura [2014-10-13 13:18 +0200]:
> > I remember you posting some information on changes to
> > pkg-config packaging to improve cross-compilation. Could you please
> > keep me informed about the details of those changes, as pkgconf would
> > probably need to be updated too.
> 
> pkg-config has a file /usr/share/pkg-config-crosswrapper (which is just a script)

I guess this script can mostly be copied into pkgconf. Note that
actually having it in the pkgconf package is a prerequisite for followup
steps.

> Then links to that called <triplet>-pkgconfig are created which cause
> it to search the right paths for said triplet. (autofo packages
> already check for such a binary and use it if present)

I should clarify that <triplet> here meas DEB_HOST_GNU_TRIPLET and not
DEB_HOST_MULTIARCH. Those are not the same everywhere.

> The alternative is various separate pkg-config-<triplet> packages, one
> per host arch, which ship the appropriate symlink.

Do we really need the variation in package name here? I thought this
could be solved with cross-arch dependencies as well. Just have
pkg-config-cross ship that symlink and install pkg-config-cross:$HOST.
Either way, this solution adds unnecessary complexity to the cross build
setup. We really want it to just work, which means adopting a solution
like #759556.

> > By the way, I'd also like to know if you have tried to use pkgconf and
> > if yes, what was your experience with it.

I didn't try either, but I do have a setup[1] for doing that. It looks
like the following steps are necessary to use pkgconf:
 1) Install pkgconf:$BUILD_ARCH
 2) export PKG_CONFIG=/usr/bin/pkgconf
 3) export PKG_CONFIG_LIBDIR in the same way pkg-config would use it.
    Does pkgconf honour PKG_CONFIG_LIBDIR or is it called differently?

Is it correct that packages that would normally use pkg-config, will use
pkgconf when their chroot + environment is changed like the above? I can
do a test-cross-build of about half of essential then.

Helmut

[1] https://wiki.debian.org/HelmutGrohne/rebootstrap


Reply to: