Source: sigil
Version: 0.9.0+dfsg-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: fileordering
X-Debbugs-Cc: [email protected]

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that sigil could not be built reproducibly.
Source files are linked in readdir() order.

The attached patch fixes this by telling CMake to sort the file list.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds

diff --git a/debian/patches/reproducible b/debian/patches/reproducible
index b66ea4d..aa78d14 100644
--- a/debian/patches/reproducible
+++ b/debian/patches/reproducible
@@ -83,3 +83,13 @@ Last-Update: 2015-07-30
           <item row="1" column="0">
            <widget class="QLabel" name="lbLicense">
             <property name="font">
+--- a/internal/gumbo/CMakeLists.txt
++++ b/internal/gumbo/CMakeLists.txt
+@@ -15,6 +15,7 @@
+ set( GUMBO_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" )
+ 
+ file( GLOB SOURCES *.c )
++list( SORT SOURCES )
+ 
+ if( APPLE )
+         set(CMAKE_MACOSX_RPATH 1)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to