Details
-
Technical task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
Right now, builds are not reproducible because the build-id changes at everybuild.
Using CMAKE_BUILD_RPATH_USE_ORIGIN CMake option fixes the problem and the builds become reproducible.
The default configuration of CMake makes the build directory part of the build environment. Here are some known issues and recommendations:
CMake sets a RPATH for binaries that link to a library in the the same project. Even when this is stripped at installation time, the build-id section will be different.
Possible workarounds:
- Set CMAKE_BUILD_RPATH_USE_ORIGIN=ON to enable the use of relative directories in RPATH (requires CMake 3.14). This is an appropriate option for both upstream projects and downstream distributions.
See this page for more information.
Would you enable this by default ?