Bug 1000620 - pkg-config has wrong configuration
Summary: pkg-config has wrong configuration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qpid-proton
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Darryl L. Pierce
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1002290
TreeView+ depends on / blocked
 
Reported: 2013-08-23 21:02 UTC by Andrew Stitcher
Modified: 2015-06-22 00:08 UTC (History)
2 users (show)

Fixed In Version: qpid-proton-0.5-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1002290 (view as bug list)
Environment:
Last Closed: 2013-09-07 01:23:28 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA PROTON-412 0 None None None Never

Description Andrew Stitcher 2013-08-23 21:02:44 UTC
Description of problem:

From /usr/lib64/pkgconfig/libqpid-proton.pc -

prefix=/usr
exec_prefix=/usr
libdir=/usr/usr/lib64
includedir=/usr/usr/include

Note that prefix and exec_prefix are correct but libdir and includedir don't make any sense.

This might be an issue with the upstream package or the rpm packaging process. It looks like there is an extraneous /usr/ in the way that libdir and indlucedir are constructed.

Version-Release number of selected component (if applicable):
0.4-3

How reproducible:
100%

Steps to Reproduce:
1. yum install qpid-proton-c-devel
2.
3.

Actual results:
As description

Expected results:
File extract above should be:

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include

Additional info:

Comment 1 Darryl L. Pierce 2013-08-26 12:54:30 UTC
Looking in the CMakeLists.txt file located in proton-c, the issue appears to be with:

  get_filename_component (LIBDIR ${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR} ABSOLUTE)
  get_filename_component (INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR} ABSOLUTE)

Specifically, CMAKE_INSTALL_PREFIX, LIB_INSTALL_DIR and INCLUDE_INSTALL_DIR are all absolute root paths. So mixing them together as is being done above causes a problem.

So perhaps a better approach would be to only use INCLUDE_INSTALL_DIR and LIB_INSTALL_DIR in the above.

And to allow for the developer to use CMAKE_INSTALL_PREFIX only if provided and, if it is, use it to define LIB_INSTALL_DIR and/or INCLUDE_INSTALL_DIR only if the respective value wasn't provided on the commandline as well.

Comment 2 Fedora Update System 2013-08-28 17:37:59 UTC
qpid-proton-0.5-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/qpid-proton-0.5-1.fc19

Comment 3 Fedora Update System 2013-08-28 18:44:53 UTC
qpid-proton-0.5-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/qpid-proton-0.5-1.fc18

Comment 4 Fedora Update System 2013-08-29 22:22:20 UTC
Package qpid-proton-0.5-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qpid-proton-0.5-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15506/qpid-proton-0.5-1.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-09-07 01:23:28 UTC
qpid-proton-0.5-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2013-09-07 01:27:07 UTC
qpid-proton-0.5-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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