RPM

pmbuild should leave PKG_CONFIG_PATH alone

Bug #651474 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Fedora
Won't Fix
Medium

Bug Description

tracker

Revision history for this message
In , Paul (paul-redhat-bugs) wrote :

Description of problem:
If you want to build a package which is depended on another package, and detects it with pkgconfig it won't get detected if this other package is in a non standard path (which was set in PKG_CONFIG_PATH)
The patch from bug 212522 creates this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=212522

Version-Release number of selected component (if applicable):
4.4.2.3-18

How reproducible:

Steps to Reproduce:
1. install/build something with another prefix path (for example /usr/broken), with a pkgconfig file, like eventlog: http://www.balabit.com/downloads/files/eventlog/0.2/
2. set PKG_CONFIG_PATH to the prefix path from step 1
3. build something with rpmbuild which detects in it's configure where the package from step 1 is located, like syslog-ng: http://www.balabit.com/downloads/files/syslog-ng/

Actual results:
pkgconfig reports the package is not found, this works when building from commandline, or with all rpm(build) packages before 4.4.2.3-18

Expected results:
pkgconfig should find the package.

Additional info:
The PKG_CONFIG_PATH is actually set by another package we build.

Proposed fix:
Modify the patch form the other the bug mentioned above so it does not overwrite the PKG_CONFIG_PATH but extends it.

Jeff Johnson (n3npq)
tags: added: pkgconfig rhel rpmbuild
Revision history for this message
In , Florian (florian-redhat-bugs) wrote :

RHEL5 is in development phase 2 now. This limits updates to critical issues only - basically ruling out rpmbuild improvements.

Still this issue was fixed upstream and the fix will be considered for newer releases. Thanks for reporting!

Revision history for this message
In , Josh (josh-redhat-bugs) wrote :

> Still this issue was fixed upstream and the fix will be considered for newer releases. Thanks for reporting!

What's your reference for this statement? This appears to still be an issue. Basically rpmbuild breaks PKG_CONFIG_PATH and the only way to workaround it is to hack each and every spec file to undo the damage caused by bug 212522.

Changed in fedora:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.