[Buildroot] Alternate solution for the pkg-config mess ?

Arnout Vandecappelle arnout at mind.be
Mon Dec 17 09:39:17 UTC 2018



On 16/12/2018 12:04, Thomas Petazzoni wrote:
> Hello,
> 
> You'll find attached a patch that modifies pkgconf 1.5.3 to behave like
> our older pkg-config used to, i.e only prefix by the sysroot a
> specific subset of variables, and leave all others untouched.
> 
> I am clearly not familiar with all the internals of pkgconf, so I won't
> pretend that the patch is perfect, but it seems to do the job.
> 
> If we decide that this is the right approach rather than adjusting
> gazillions of packages for pkgconf 1.5.3, then let me know and I'll
> submit as a proper patch.
> 
> Fabrice: I tested this with util-linux/bash-completion, and it does the
> job. If you have the chance to test it on other situations where you
> had to patch packages to work with pkgconf 1.5.3, it would be very
> useful.

 This is exactly the approach I had in mind when I wrote about whitelisting some
variables. So this patch gets my vote.

 I haven't looked at the details of the implementation though, just at the
principle.

 Regards,
 Arnout


More information about the buildroot mailing list