[CDRIVER-2827] make install fails Created: 18/Sep/18 Updated: 28/Oct/23 Resolved: 01/Oct/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.13.0 |
| Fix Version/s: | 1.13.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Remi Collet | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Fedora |
||
| Issue Links: |
|
||||||||
| Description |
|
Running make install DESTDIR=/some/where (as an unpriviledged user)
CMake Error at generate_uninstall/cmake_install.cmake:41 (file):
|
| Comments |
| Comment by Githook User [ 25/Jan/19 ] | |||
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: | |||
| Comment by Githook User [ 25/Jan/19 ] | |||
|
Author: {'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}Message: | |||
| Comment by Githook User [ 24/Jan/19 ] | |||
|
Author: {'username': 'ajdavis', 'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis'}Message: | |||
| Comment by Githook User [ 24/Jan/19 ] | |||
|
Author: {'username': 'kevinAlbs', 'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson'}Message: | |||
| Comment by Githook User [ 28/Sep/18 ] | |||
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: | |||
| Comment by Githook User [ 19/Sep/18 ] | |||
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs'}Message: | |||
| Comment by Kevin Albertson [ 18/Sep/18 ] | |||
|
DESTDIR doesn't to correctly apply to our uninstall generation script. If install is given a relative path to installation, it prepends the DESTDIR at install time. Our uninstall generation uses CMAKE_INSTALL_FULL_DATADIR to determine the path to create the uninstall scripts. This is an absolute path. generate_uninstall/CMakeLists.txt copies the uninstall scripts to it, so DESTDIR is not taken into account. Repro:
Everything is installed to ~/Desktop/c-install/usr/local..., but the uninstall script is installed to /usr/local/share/mongo-c-driver/. | |||
| Comment by Remi Collet [ 18/Sep/18 ] | |||
|
Issue is in generate_uninstall directory.
BTW, this one is obviously unneeded for RPM, so I simply drop it to be able to build the package.
Will be nice to have a build option to skip this tool. |