View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014833 | VTK | (No Category) | public | 2014-06-28 13:41 | 2014-10-03 15:02 | ||||
Reporter | Frederick | ||||||||
Assigned To | Dave DeMarle | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | 6.2.0 | |||||||
Summary | 0014833: JavaInstall.cmake deletes all of /usr/bin when WRAP_JAVA is enabled. | ||||||||
Description | This issue has happened twice when trying to build and install VTK-6.1.0. The offending lines in JavaInstall.cmake are: # Remove un-wanted files execute_process( COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_INSTALL_PREFIX}/bin" ) execute_process( COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_INSTALL_PREFIX}/lib" ) execute_process( COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_INSTALL_PREFIX}/share" ) execute_process( COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_INSTALL_PREFIX}/include" ) execute_process( COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_INSTALL_PREFIX}/www" ) This code seems to be quite dangerous. It caused me considerable down time twice by deleting all of /usr/bin until I located the issue. Looks as if it will take care of some other important parts of /usr too if there are executables left to do the job. In my case, rm is in /usr/bin so it stopped after taking out /usr/bin Cheers, Frederick | ||||||||
Tags | hackaton | ||||||||
Project | TBD | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0033512) Ben Boeckel (Kitware) (developer) 2014-10-02 14:39 |
Wow, that code is dangerous. It really should do something sensible. CMAKE_INSTALL_PREFIX is almost certainly the wrong variable to be using here since ${CMAKE_INSTALL_PREFIX}/pom.xml never makes sense. Maybe a CMAKE_MAVEN_INSTALL_PREFIX would be better? Sebastien? |
(0033525) Dave DeMarle (administrator) 2014-10-02 15:27 |
Yikes! |
(0033526) Dave DeMarle (administrator) 2014-10-02 15:29 |
http://review.source.kitware.com/#/c/17356/ [^] |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-06-28 13:41 | Frederick | New Issue | |
2014-09-30 10:25 | Dave DeMarle | Tag Attached: hackaton | |
2014-09-30 10:25 | Dave DeMarle | Assigned To | => Dave DeMarle |
2014-09-30 10:25 | Dave DeMarle | Status | backlog => tabled |
2014-10-01 12:40 | Berk Geveci | Status | tabled => backlog |
2014-10-02 14:39 | Ben Boeckel (Kitware) | Note Added: 0033512 | |
2014-10-02 15:27 | Dave DeMarle | Note Added: 0033525 | |
2014-10-02 15:27 | Dave DeMarle | Status | backlog => active development |
2014-10-02 15:29 | Dave DeMarle | Note Added: 0033526 | |
2014-10-02 15:29 | Dave DeMarle | Status | active development => gerrit review |
2014-10-03 15:02 | Dave DeMarle | Status | gerrit review => closed |
2014-10-03 15:02 | Dave DeMarle | Resolution | open => fixed |
2014-10-03 15:02 | Dave DeMarle | Fixed in Version | => 6.2.0 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |