Skip to contentSkip to conversation

pkgconfig confusion

Buildroot Sven Neumann 2 participants 3 messages Apr 17, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I've tried to update to the latest buildroot snapshot today and ran into a problem with pkg-config:

Quoted 1 line
Quoted 1 line
Quoted 1 line

pkgconfig undefined Extracting

gzip: /home/sven/buildroot-new/dl/pkgconfig-undefined.tar.gz: No such file or directory
tar: This does not look like a tar archive

So I had a look at package/pkgconfig/pkgconfig.mk and found that it defines all variables with the PKG_CONFIG prefix instead of using PKGCONFIG. Changing this seems to fix the problem (see attached diff). Alternatively one could rename pkgconfig/pkgconfig.mk to pkg-config/pkg-config.mk.

Sven

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkgconfig.diff
Type: text/x-patch
Size: 3283 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090417/a1823cac/attachment.bin>

#1 lore raw

Hi,

Quoted 10 lines · Sven Neumann

Hi,

I've tried to update to the latest buildroot snapshot today and ran into a problem with pkg-config:

Quoted 1 line
Quoted 1 line
Quoted 1 line

pkgconfig undefined Extracting

gzip: /home/sven/buildroot-new/dl/pkgconfig-undefined.tar.gz: No such file or directory
tar: This does not look like a tar archive

Quoted 5 lines

So I had a look at package/pkgconfig/pkgconfig.mk and found that it defines all variables with the PKG_CONFIG prefix instead of using PKGCONFIG. Changing this seems to fix the problem (see attached diff). Alternatively one could rename pkgconfig/pkgconfig.mk to pkg-config/pkg-config.mk.

Actually, the patch from my last mail changes a bit too much. PKG_CONFIG_HOST_DIR and PKG_CONFIG_HOST_BINARY must not be changed as other packages use these variables. Perhaps the best solution is really to rename the package from pkgconfig to pkg-config.

Sven

#2 lore raw
In reply to Sven Neumann
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Hi,
Sven> I've tried to update to the latest buildroot snapshot today and ran into Sven> a problem with pkg-config:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

pkgconfig undefined Extracting

Sven> gzip: /home/sven/buildroot-new/dl/pkgconfig-undefined.tar.gz: No such Sven> file or directory
Sven> tar: This does not look like a tar archive

This is pkg-config for the target. Is that really what you want?

Sven> So I had a look at package/pkgconfig/pkgconfig.mk and found that it Sven> defines all variables with the PKG_CONFIG prefix instead of using Sven> PKGCONFIG. Changing this seems to fix the problem (see attached diff). Sven> Alternatively one could rename pkgconfig/pkgconfig.mk to Sven> pkg-config/pkg-config.mk.

Yes, the correct fix looks to be renaming the dir / file and the AUTOTARGETS line.

Will fix.

Signature · 1 line
Bye, Peter Korsgaard