Bug#999866: liboqs: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Nov 17 22:48:03 GMT 2021


Source: liboqs
Version: 0.7.0.27.gba5b61a7+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
liboqs could not be built reproducibly.

This is because it embeds ${CMAKE_SYSTEM_PROCESSOR} and ${CMAKE_HOST_SYSTEM}
via the OQS_COMPILE_BUILD_TARGET define. Luckily, the code itself uses
an ifdef, so a patch is attached that simply prevents this being added to the
header file.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/reproducible-build.patch	2021-11-17 14:33:40.564794576 -0800
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2021-11-17
+
+--- liboqs-0.7.0.27.gba5b61a7+dfsg.orig/src/oqsconfig.h.cmake
++++ liboqs-0.7.0.27.gba5b61a7+dfsg/src/oqsconfig.h.cmake
+@@ -1,7 +1,6 @@
+ // SPDX-License-Identifier: MIT
+ 
+ #cmakedefine OQS_VERSION_TEXT "@OQS_VERSION_TEXT@"
+-#cmakedefine OQS_COMPILE_BUILD_TARGET "@OQS_COMPILE_BUILD_TARGET@"
+ #cmakedefine OQS_DIST_BUILD 1
+ #cmakedefine OQS_DIST_X86_64_BUILD 1
+ #cmakedefine OQS_DIST_X86_BUILD 1
--- a/debian/patches/series	2021-11-17 14:19:06.971678046 -0800
--- b/debian/patches/series	2021-11-17 14:33:39.656789665 -0800
@@ -1,3 +1,4 @@
 standard-ninja-test-target.patch
 adjust-to-non-DFSG-removal.patch
 nonparallel-tests.patch
+reproducible-build.patch


More information about the Reproducible-bugs mailing list