Bug 917407 - Incorrect VTK_INCLUDE_DIRS if /bin before /usr/bin in PATH
Summary: Incorrect VTK_INCLUDE_DIRS if /bin before /usr/bin in PATH
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: vtk
Version: 20
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL: http://www.vtk.org/Bug/view.php?id=15065
Whiteboard:
: 921271 (view as bug list)
Depends On:
Blocks: 921271
TreeView+ depends on / blocked
 
Reported: 2013-03-03 23:33 UTC by Scott K Logan
Modified: 2015-05-19 02:57 UTC (History)
10 users (show)

Fixed In Version: vtk-6.2.0-1.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 921271 (view as bug list)
Environment:
Last Closed: 2015-05-19 02:57:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Scott K Logan 2013-03-03 23:33:17 UTC
Description of problem:
When PATH lists non-usr directories first (eg PATH=/sbin:/bin:/usr/sbin:/usr/bin), VTK_DIR is determined to be /lib64/vtk. In the VTKConfig.cmake, this results in a VTK_INCLUDE_DIRS of //include/vtk, which doesn't exist, of course. This non-standard PATH variable occurred for me when I "sudo su <user> -" to a user, which is not an unusual procedure.


Version-Release number of selected component (if applicable): 5.10.0-3.fc18


How reproducible: 100%


Steps to Reproduce:
1. export PATH=/sbin:/bin:/usr/sbin:/usr/bin
2. mkdir ~/vtktest && cd vtktest
3. echo "cmake_minimum_required(VERSION 2.8)
find_package(VTK REQUIRED)
message(\"VTK_INCLUDE_DIRS: \${VTK_INCLUDE_DIRS}\")" > CMakeLists.txt
4. cmake .


Actual results:
VTK_INCLUDE_DIRS: //include/vtk

Expected results:
VTK_INCLUDE_DIRS: /usr/include/vtk

Additional info:
This has been presented before:
http://www.pcl-users.org/Compiling-PCL-1-6-0-on-Fedora-17-td4023336.html
but couldn't be reproduced.

Comment 1 Scott K Logan 2013-03-03 23:46:30 UTC
Looks like I missed a ~/ in step 2, should be:
2. mkdir ~/vtktest && cd ~/vtktest

Comment 2 Orion Poplawski 2013-03-13 03:23:35 UTC
This is actually a cmake issue (as it ships FindVTK.cmake).  I've posted to the cmake user list to ask for suggestions on how to handle this in a general way.  We can hack it for FindVTK to search in /usr first, but we may have to do this for many other modules as well.

Comment 3 Fedora Update System 2013-04-24 23:15:33 UTC
cmake-2.8.10.2-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/cmake-2.8.10.2-5.fc18

Comment 4 Fedora Update System 2013-04-26 01:02:35 UTC
Package cmake-2.8.10.2-5.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 cmake-2.8.10.2-5.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-6649/cmake-2.8.10.2-5.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-05-05 02:26:42 UTC
cmake-2.8.10.2-5.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 Orion Poplawski 2014-10-22 21:05:24 UTC
*** Bug 921271 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Admin XMLRPC Client 2015-02-25 18:58:14 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Orion Poplawski 2015-05-19 02:57:02 UTC
Should be fixed in 6.2.0 in f23.


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