Bug 1263698

Summary: incorrect cmake vars ASSIMP_LIBRARY_DIRS and ASSIMP_INCLUDE_DIRS
Product: [Fedora] Fedora Reporter: Bahram Maleki-Fard <kbon>
Component: assimpAssignee: Rich Mattes <richmattes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: richmattes
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Other   
Whiteboard:
Fixed In Version: 3.1.1-5.fc23 assimp-3.0.1270-10.fc22 assimp-3.1.1-2.el7 assimp-3.0.1270-9.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-24 05:11:51 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:

Description Bahram Maleki-Fard 2015-09-16 12:45:35 UTC
Description of problem:
The variables ASSIMP_LIBRARY_DIRS and ASSIMP_INCLUDE_DIRS (the latter only for <F23) are not properly configured, which leads to incorrect paths when using CMake to include assimp directories.

The affected lines in the final 'assimp-config.cmake' are (>=F23):
 set( ASSIMP_LIBRARY_DIRS "${ASSIMP_ROOT_DIR}//usr/lib64")
 set( ASSIMP_INCLUDE_DIRS "${ASSIMP_ROOT_DIR}/include") #this is fine

and for earlier versions (<F23):
 set( ASSIMP_LIBRARY_DIRS "${ASSIMP_ROOT_DIR}//usr/lib64")
 set( ASSIMP_INCLUDE_DIRS "${ASSIMP_ROOT_DIR}//usr/include")


Version-Release number of selected component (if applicable):
3.0.1270-4.fc20
3.1.1-4.fc20 (rpbmbuild from latest version)


Additional info:
This is due to using %{_libdir} (and %{_includedir}) in the spec file for %cmake.
A simple fix for the current version would be:
 -set( ASSIMP_LIBRARY_DIRS "${ASSIMP_ROOT_DIR}/@ASSIMP_LIB_INSTALL_DIR@")
 +set( ASSIMP_LIBRARY_DIRS "@ASSIMP_LIB_INSTALL_DIR@")

and likewise for previous versions and ASSIMP_INCLUDE_DIRS.

Comment 1 Rich Mattes 2015-09-17 00:14:27 UTC
Thanks for the report.  I'm patching assimp-config.cmake.in to remove ${ASSIMP_ROOT_DIR}, similar to the fix you pointed out.  I should have the updates submitted pretty soon.

Comment 2 Rich Mattes 2015-09-17 00:32:15 UTC
And just so you know, I won't be able update the fc20 package as Fedora 20 reached end-of-life on 2015-06-23.

Comment 3 Fedora Update System 2015-09-17 00:42:21 UTC
assimp-3.1.1-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-8116

Comment 4 Fedora Update System 2015-09-17 01:02:28 UTC
assimp-3.1.1-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16064

Comment 5 Fedora Update System 2015-09-17 01:03:39 UTC
assimp-3.0.1270-10.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16065

Comment 6 Fedora Update System 2015-09-17 01:04:39 UTC
assimp-3.0.1270-9.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16066

Comment 7 Fedora Update System 2015-09-17 21:29:50 UTC
assimp-3.1.1-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update assimp'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16064

Comment 8 Fedora Update System 2015-09-18 05:20:49 UTC
assimp-3.0.1270-9.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update assimp'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16066

Comment 9 Fedora Update System 2015-09-18 16:24:23 UTC
assimp-3.0.1270-10.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update assimp'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16065

Comment 10 Fedora Update System 2015-09-19 03:21:34 UTC
assimp-3.1.1-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update assimp'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-8116

Comment 11 Fedora Update System 2015-09-24 05:11:49 UTC
assimp-3.1.1-5.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2015-10-07 06:21:03 UTC
assimp-3.0.1270-10.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-10-07 20:11:06 UTC
assimp-3.1.1-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2015-10-07 23:48:39 UTC
assimp-3.0.1270-9.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.