-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task 2.6.0 make install permissions #3398
Comments
Hm, someone more familiar with CMake will need to figure out how to fix this! |
Hm how did you proceed to run into this problem? Workflow# starting dev container on develop (no dev container available in v2.6.0 branch)
# checkout old branch
git checkout origin/2.6.0
# in source build as that is how it was done earlier, do not require sync as gnutls is not installed in devcontainer
cmake -S . -B . -DENABLE_SYNC=OFF
# build taskwarrior in parallel using 8 threads
cmake --build . -j 8
# install taskwarrior
sudo cmake --install .
# unminimizing the devcontainer to have man command available
sudo unminimize
# opening man pages
man task output of
|
Is it possible that the installer is copying the permissions from a parent directory? @elig0n can you investigate a bit further? |
(Thanks for looking @felixschurk!) |
Workflow$ git checkout origin/2.6.0
$ cmake -DCMAKE_BUILD_TYPE=release . # as per README.md
$ DESTDIR="./TMP/" make install
...
$ cd TMP && fd -ls
...
drwx------ 5 eg eg 4.0K Apr 30 17:09 ./usr/local/share
drwx------ 3 eg eg 4.0K Apr 30 17:09 ./usr/local/share/doc
drwx------ 4 eg eg 4.0K Apr 30 17:09 ./usr/local/share/doc/task
-rw-r--r-- 1 eg eg 5.8K Apr 23 23:09 ./usr/local/share/doc/task/AUTHORS
...
|
Hei, If you want to install it into a specific directory you would need to specify that in the first cmake call e.g. as described in: Line 64 in d093ce3
Maybe also as a general question before we continue here. Can you reproduce the issue when you follow the workflow I suggested in the comment? |
I don't think we can fix the 2.6.0 installer, so nothing to change here. We can re-open if the conversation continues. |
running
sudo make install
for the 2.6.0 git branch creates the dir/usr/local/share/doc/task
without read & execute permission for regular users.I've solved it with:
sudo chmod -R a+rX /usr/local/share/doc/
yet it would be nice to make the makefile deal with itThe text was updated successfully, but these errors were encountered: