Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12142 closed bug (invalid)

'lib/pkgconfig' directory not handled correctly in user space

Reported by: haiqu Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

When installing packages locally, the *.pc files are not being installed in ~/config/lib/pkgconfig

Consequently configuration programs which rely on them can't find the package even if it is installed.

The directory cannot be manually created due to this part of the file system being RO, and since it's missing I suspect the files are just hitting the bit bucket.

Change History (4)

comment:1 by pulkomandy, 9 years ago

Resolution: invalid
Status: newclosed

The correct directory is config/develop/lib/pkgconfig. I think the files show up there just fine when they are in a package.

You can use the PKG_CONFIG_LIBDIR variable to tell pkg-config to look there (and in the respective non-packaged directory for non-packaged files), however, I'm not sure you can get it to look both there and in /system/develop/lib. We should fix that, but it is a problem in the pkg-config port, not in Haiku.

comment:2 by haiqu, 9 years ago

Actually I'd like this re-opened. I didn't have a full handle on what was going on but now have it taped completely.

  1. As reported, the files aren't being installed, even in config/develop/lib/pkgconfig but this is a symptom of another fault already reported so can be safely ignored here.
  2. When using the secondary compiler (GCC4) the build system fails to find the files in config/develop/lib/x86/pkgconfig which is the actual problem I was experiencing.

This can be proven by installing the GCC2 dev package, at which time the program will compile. This is a pathing error in the configuration of the build tools and as such is a bug.

comment:3 by pulkomandy, 9 years ago

pkgman install pkg_config_x86

will make this work. Alternatively you can set PKG_CONFIG_LIBDIR (as already mentionned) to tell pkg-config to look in the x86 directory.

comment:4 by haiqu, 9 years ago

Manually setting PKG_CONFIG_LIBDIR each time I swap from GCC2 to GCC4 wouldn't have been an acceptable solution, although nice to know about. Also worth knowing is that most Linux packages look for PKG_CONFIG_PATH so setting that can help build them.

I installed pkgconfig_x86 and the issue seems to have resolved, thanks.

Note: See TracTickets for help on using tickets.