[Buildroot] [PATCH 1/1] ccid: fix build with pkgconf 1.5.3

Fabrice Fontaine fontaine.fabrice at gmail.com
Wed Dec 12 09:00:11 UTC 2018

Dear Arnout,
Le mer. 12 déc. 2018 à 09:50, Arnout Vandecappelle <arnout at mind.be> a écrit :
> On 11/12/2018 23:45, Fabrice Fontaine wrote:
> > Hello,
> > Le mar. 11 déc. 2018 à 22:57, Arnout Vandecappelle <arnout at mind.be> a écrit :
> [snip]
> >>  I can't say I really like any of these solutions though...
> > An other option would be to ignore the value provided by pkgconfig.
> > For example, we can pass
> > --enable-usbdropdir=$(TARGET_DIR)/usr/lib/pcsc/drivers to ccid's
> > configure.
> > Would it be acceptable?
>  Since a good fundamental solution will take some time to flesh out, and since
> the autobuilders are exploding because of this, it's a great proposal.
>  However, shouldn't it be --enable-usbdropdir=/usr/lib/pcsc/drivers? DESTDIR is
> still prepended to it, no?
Yes, you're right.
>  Put something like this in the commit message:
> Since the bump to 1.5.3, pkgconf prepends the sysroot to all absolute paths
> found in the .pc file. This is correct when the paths refer to something in
> STAGING_DIR (e.g. libdir, includedir), but not when it refers to something used
> for the target.
> ccid uses the usbdropdir variable from libpcsclite.pc to decide where to install
> things. Since DESTDIR is prepended to the install destination, this will end up
> in the wrong location.
> Until a better solution is found in pkgconf, pass the usbdropdir to use
> explicitly instead of relying on libpcsclite.pc.
OK, I will do.
>  BTW, is the libva issue similar?
It is somewhat similar, the difference is that build won't fail on
install step but in build step because pkgconfig is used to find
wayland-scanner which is built for the target not the host:

I will also try to fix the other packages: acsccid, iwd, ...
>  Regards,
>  Arnout
Best Regards,


More information about the buildroot mailing list