RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 921973 - rpmbuild should leave PKG_CONFIG_PATH alone
Summary: rpmbuild should leave PKG_CONFIG_PATH alone
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm
Version: 7.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Florian Festi
QA Contact: Karel Srot
URL:
Whiteboard:
: 1193328 (view as bug list)
Depends On: 569773 1145970
Blocks: 921969
TreeView+ depends on / blocked
 
Reported: 2013-03-15 10:52 UTC by Florian Festi
Modified: 2015-11-19 11:58 UTC (History)
5 users (show)

Fixed In Version: rpm-4.11.3-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 569773
Environment:
Last Closed: 2015-11-19 11:58:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2138 0 normal SHIPPED_LIVE rpm bug fix and enhancement update 2015-11-19 10:39:52 UTC

Description Florian Festi 2013-03-15 10:52:08 UTC
Fix available upstream

+++ This bug was initially created as a clone of Bug #569773 +++

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.

Comment 4 Karel Srot 2014-04-14 08:37:14 UTC
Current fix is not correct.
I am switching to Assigned and moving to 7.1.

Comment 5 Panu Matilainen 2014-09-25 16:05:30 UTC
Moving to 7.2 to (hopefully) be fixed via rpm rebase.

Comment 6 Florian Festi 2015-03-17 16:24:23 UTC
*** Bug 1193328 has been marked as a duplicate of this bug. ***

Comment 8 Florian Festi 2015-07-01 15:43:24 UTC
Not 100% sure I got all the details but the package looks ok. May be the rebase did the trick

Comment 11 errata-xmlrpc 2015-11-19 11:58:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2138.html


Note You need to log in before you can comment on or make changes to this bug.