Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105926 Qt should support reproducible builds
  3. QTBUG-96722

Reproducible builds: add CMAKE_BUILD_RPATH_USE_ORIGIN=ON by default

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Build System: CMake
    • 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 ?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            ban F S
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes