Bug 1039555 - Latest version of librabbitmq has a bogus pkg-config file
Summary: Latest version of librabbitmq has a bogus pkg-config file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: librabbitmq
Version: 20
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-09 12:56 UTC by Tomas Heinrich
Modified: 2016-09-20 04:51 UTC (History)
3 users (show)

Fixed In Version: librabbitmq-0.4.1-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 07:18:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
A patch to change the buildsystem from autotools to cmake (5.23 KB, patch)
2014-01-01 15:09 UTC, Tomas Heinrich
no flags Details | Diff

Description Tomas Heinrich 2013-12-09 12:56:33 UTC
Description of problem:
The latest update of librabbitmq has a wrong .pc file. The 'Requires.private' and 'Libs.private' sections contain unsubstituted variables, causing any package that depends on librabbitmq to fail to compile.

Version-Release number of selected component (if applicable):
librabbitmq-devel-0.4.1-1.fc20

Steps to Reproduce:
$ cat /usr/lib64/pkgconfig/librabbitmq.pc
or
try to compile something which has librabbitmq as a dependency.

Additional info:
Complete diff of what has changed in the .pc file:

--- librabbitmq-devel-0.3.0-2.fc19/usr/lib64/pkgconfig/librabbitmq.pc   2013-12-09 13:43:17.165000000 +0100
+++ librabbitmq-devel-0.4.1-1.fc20/usr/lib64/pkgconfig/librabbitmq.pc   2013-12-09 13:43:22.693000000 +0100
@@ -3,10 +3,11 @@
 libdir=/usr/lib64
 includedir=/usr/include

-Name: Librabbitmq
+Name: rabbitmq-c
 Description: An AMQP 0-9-1 client library
-Version: 0.3.0
-Requires:
-Requires.private:
+Version: 0.4.1
+URL: https://github.com/alanxz/rabbitmq-c
+Requires.private: @requires_private@
 Libs: -L${libdir} -lrabbitmq
+Libs.private: @libs_private@
 CFlags: -I${includedir}

Comment 1 Remi Collet 2013-12-09 13:24:30 UTC
Reported upstream https://github.com/alanxz/rabbitmq-c/issues/154

Is deleting those lines enough as a temporary workaround ?
(waiting for upstream feedback).

Comment 2 Tomas Heinrich 2013-12-09 13:55:33 UTC
After commenting out those two, the compilation finishes correctly. Not sure yet whether there's something critical missing from the .pc file in this case.

Comment 3 Tomas Heinrich 2013-12-09 14:05:27 UTC
Here's the upstream commit that changed the .pc file:

commit ac88db56d3dd1827072d54e6846fc82069e8f05a
Author: Alan Antonuk <alan.antonuk>
Date:   Tue Aug 20 17:19:06 2013 -0700
    CMake: correct generation of librabbitmq.pc
    Fix CMake code that substitutes librabbitmq.pc to be correct.

It only touches CMakeLists.txt, not configure.ac. The specfile only calls autoreconf and configure in %build, so this might be the problem.

Comment 4 Tomas Heinrich 2014-01-01 15:09:13 UTC
Created attachment 844150 [details]
A patch to change the buildsystem from autotools to cmake

Here's a patch to use cmake instead of autotools. This should fix the issue and be a good change in general as the upstream seems to prefer cmake.

The spec file was adjusted to work with cmake and there are also couple of minor changes.

cmake handles RPATH during install and the calls to 'sed' to get rid of it won't be necessary. Though I still don't understand why calling 'autoreconf' was needed.

Comment 5 Remi Collet 2014-01-02 07:06:45 UTC
I prefer to not use cmake for now (mostly because in don't work in EPEL).

autoconf stuff is now fixed upstream
https://github.com/alanxz/rabbitmq-c/commit/02d5c58ae4b9bbaa6201990ff5066f0db561d231

Comment 6 Fedora Update System 2014-01-02 07:17:53 UTC
librabbitmq-0.4.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/librabbitmq-0.4.1-2.fc20

Comment 7 Fedora Update System 2014-01-03 08:34:35 UTC
Package librabbitmq-0.4.1-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing librabbitmq-0.4.1-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0055/librabbitmq-0.4.1-2.fc20
then log in and leave karma (feedback).

Comment 8 Tomas Heinrich 2014-01-06 18:22:38 UTC
Still broken, it seems:

$ cat librabbitmq.pc 
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: rabbitmq-c
Description: An AMQP 0-9-1 client library
Version: 0.4.1
URL: https://github.com/alanxz/rabbitmq-c
Requires.private: @requires_private@
Libs: -L${libdir} -lrabbitmq
Libs.private: @libs_private@
CFlags: -I${includedir}


Both librabbitmq-devel-0.4.1-2.fc20.i686.rpm and x86_64.

Comment 9 Remi Collet 2014-01-07 06:54:16 UTC
Thanks for checking...
Patch not applied... :(

Comment 11 Tomas Heinrich 2014-01-07 13:05:38 UTC
Great, thanks.

Comment 12 Fedora Update System 2014-01-08 07:49:33 UTC
Package librabbitmq-0.4.1-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing librabbitmq-0.4.1-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0055/librabbitmq-0.4.1-3.fc20
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2014-01-16 07:18:05 UTC
librabbitmq-0.4.1-3.fc20 has been pushed to the Fedora 20 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.