Skip to content
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

support/cmake_install.cmake ignores DESTDIR #1177

Open
realtime-neil opened this issue Sep 15, 2023 · 0 comments
Open

support/cmake_install.cmake ignores DESTDIR #1177

realtime-neil opened this issue Sep 15, 2023 · 0 comments

Comments

@realtime-neil
Copy link

There's at least one installed path within the install target that is ignoring DESTDIR:

git clean -ffxd \
    && git fetch --all \
    && git pull --rebase \
    && git describe --long --always --dirty \
    && cmake -B build . \
    && make -C build -j$(nproc) \
    && DESTDIR="$(mktemp -dt DESTDIR.XXXXXX)" make -C build install

Removing build/
Already up to date.
b9791c88
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0

...

Traceback (most recent call last):
  File "/home/luser/retdec/support/install-share.py", line 93, in <module>
    main()
  File "/home/luser/retdec/support/install-share.py", line 47, in main
    os.makedirs(support_dir, exist_ok=True)
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/usr/local/share/retdec'
CMake Error at support/cmake_install.cmake:77 (message):
  RetDec share directory installation FAILED
Call Stack (most recent call first):
  cmake_install.cmake:71 (include)


make: *** [Makefile:100: install] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant