Bug 1340656

Summary: pkgconfig and cmake config provide incorrect flags
Product: [Fedora] Fedora Reporter: Till Hofmann <thofmann>
Component: assimpAssignee: Rich Mattes <richmattes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: anto.trande, richmattes
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: assimp-3.2.0-3.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-12 15:06:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1338339    
Attachments:
Description Flags
failed build of openrave due to a wrong link flag none

Description Till Hofmann 2016-05-29 18:32:51 UTC
Created attachment 1162627 [details]
failed build of openrave due to a wrong link flag

Description of problem:
These are two separate but related problems:
1. The pkgconfig file assimp.pc contains /usr/usr/ as prefix for libdir and includedir.
2. The cmake config provides the flag '-lassimpd' instead of '-lassimp', which makes it impossible to link against assimp (there is no libassimpd.so).

Version-Release number of selected component (if applicable):
3.2.0-1

How reproducible:
always

Steps to Reproduce:
pkgconfig: run `pkg-config --libs assimp`
cmake: link against assimp in a cmake project

Actual results:
$ pkg-config --libs assimp
-L/usr//usr/lib64 -lassimp

Linking against libassimp fails with
/usr/bin/ld: cannot find -lassimpd

See attachment for an example.

Expected results:

pkgconfig should return -L/usr/lib64
Linking against assimp should work in a cmake project.

Additional info:
Rawhide is affected, too.

Comment 1 Rich Mattes 2016-06-02 12:02:15 UTC
Sorry about that, I'll try to fix this in the next couple days.

Comment 2 Fedora Update System 2016-06-07 02:36:59 UTC
assimp-3.2.0-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d0febaacf2

Comment 3 Fedora Update System 2016-06-07 18:54:05 UTC
assimp-3.2.0-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d0febaacf2

Comment 4 Fedora Update System 2016-07-01 18:44:30 UTC
assimp-3.2.0-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ca92b91dd5

Comment 5 Fedora Update System 2016-07-02 20:28:53 UTC
assimp-3.2.0-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ca92b91dd5

Comment 6 Fedora Update System 2016-07-12 15:06:24 UTC
assimp-3.2.0-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.