Open xiota opened 1 year ago
make install
with git checkout (cb176c3a194b700f4efed433cde958d1048022b2) does not have the same error as when trying to install from the 4.2.0 tarball. However, it does have the same error message as cmake --install
from the tarball. I found old logs, and the same error did occur previously (pre-4.2.0 git 1c499268a9f).
-- Copy file /usr/share/hal/ld_conf/hal.conf to /etc/ld.so.conf.d/
Error copying file "hal.conf" to "/etc/ld.so.conf.d/".
-- Running: ldconfig
ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
CMake Warning at build/post_install.cmake:11 (message):
ldconfig failed
Call Stack (most recent call first):
build/cmake_install.cmake:147 (include)
I believe the problem may be:
Perhaps changing the line to the following would fix it:
execute_process(COMMAND ${CMAKE_COMMAND} -E copy hal.conf "$ENV{DESTDIR}/etc/ld.so.conf.d/")
I have not tested the change because of the length of time building takes.
Describe the bug
After successfully downloading and building the 4.2.0 source tarball, attempting to install with either
make install
orcmake --install
produces errors.DESTDIR
to redirect output to a specified directory for packaging.make
orcmake --build build
does not seem to make a difference.make install
was able to run, but produced the same error as runningcmake --install
from the tarball. A recent git checkout (cb176c3a194b700f4efed433cde958d1048022b2) has the same behavior.To Reproduce
Expected behavior
DESTDIR
without error.DESTDIR
.make
andcmake --install
should behave the same.