[Buildroot] [PATCH] divine: fix divine-config
stefan.froberg at petroprogram.com
Fri Jan 4 14:56:53 UTC 2013
Hello Gustavo, all
4.1.2013 16:29, Gustavo Zacarias kirjoitti:
> On 01/04/2013 11:17 AM, Samuel Martin wrote:
>> We quickly talked about this during the last Buildroot Dev. Days.
>> IIRC, Thomas and Peter were not very fond of this kind of solution.
>> (guys, feel free to correct me if I speak with my ass ;)).
>> btw, afaics:
>> - *-config provided by the imagemagick package wrap some calls to pkg-config;
>> - many packages in BR install handwritten scripts like this, as well
>> as some *.pc files.
>> So what about just use pkgconf since it's properly handled in BR?
>> (I agree it may mean patching many packages that only search for
>> *-config scripts)
>> - in this patch serie, only libgcrypt does not provide a *.pc file :-(
> I agree *-config files aren't nice, but they are still here and quite used.
> When the scenario is a "not very standard" *-config file that can't be
> easily fixed, one could just avoid the autopatcher and do it the old
> fashion way.
> It's a good goal to get rid of them, but realistically it won't happen
> anytime soon - you'll need to get *.pc files for *-config packages that
> don't provide them, and you'll also need to patch a lot to get them to
> use said pc files (with the added dep to host-pkgconf which is now small
> given my migration away from pkg-config hehe).
> Long story short, they're still here, so why not do it nicely until we
> get rid of them all?
> Just for fun, try to autoreconfigure PHP and see what happens. It's a
> heavy user of *-config scripts :)
So should I continue patching correct buildroot prefixes to all those
*-config files that
are in $(STAGING_DIR)/usr/bin or not ?
>From my $(STAGING_DIR)/usr/bin/*-config files only libpng and libxml2
and few others
do the right thing and give the buildroot prefix and not the host system
(It took a long time for me to figure why wireshark that im trying to
compile here did not
work out with libpcap, untill I found out that the
$(STAGING_DIR)/usr/bin/pcap-config spit a
wrong prefix all the time...)
More information about the buildroot