[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:
Problem/Incident
is caused by CDRIVER-2682 Add an uninstall target Closed

 Description   

Running make install DESTDIR=/some/where (as an unpriviledged user)

 

CMake Error at generate_uninstall/cmake_install.cmake:41 (file):
file problem creating directory: /usr/share/mongo-c-driver

 

 



 Comments   
Comment by Githook User [ 25/Jan/19 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2827 add DESTDIR test to config template
Branch: r1.13-debian
https://github.com/mongodb/mongo-c-driver/commit/54129a0e842be46d2bd7ab054c7c13b7c7ca7c5d

Comment by Githook User [ 25/Jan/19 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}

Message: CDRIVER-2827 fix uninstall path for DESTDIR
Branch: r1.13-debian
https://github.com/mongodb/mongo-c-driver/commit/a612d0485db6d50a45e504d16f483cc44e8bb2d8

Comment by Githook User [ 24/Jan/19 ]

Author:

{'username': 'ajdavis', 'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis'}

Message: CDRIVER-2827 add DESTDIR test to config template
Branch: r1.13
https://github.com/mongodb/mongo-c-driver/commit/54129a0e842be46d2bd7ab054c7c13b7c7ca7c5d

Comment by Githook User [ 24/Jan/19 ]

Author:

{'username': 'kevinAlbs', 'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson'}

Message: CDRIVER-2827 fix uninstall path for DESTDIR
Branch: r1.13
https://github.com/mongodb/mongo-c-driver/commit/a612d0485db6d50a45e504d16f483cc44e8bb2d8

Comment by Githook User [ 28/Sep/18 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: CDRIVER-2827 add DESTDIR test to config template
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5ac502bded08fb9e70d87b481b419d387a9906b5

Comment by Githook User [ 19/Sep/18 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs'}

Message: CDRIVER-2827 fix uninstall path for DESTDIR
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/b50c9e4004833e3c0034b68b4082d6e590510949

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:

mkdir cmake-build && cd cmake-build
cmake ../
make DESTDIR=~/Desktop/c-install -j8 install

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.

Generated at Wed Feb 07 21:16:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.