Bug#858152: fritzing: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Mar 18 23:09:15 UTC 2017


Source: fritzing
Version: 0.9.3b+dfsg-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: kernel
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that fritzing could not be built reproducibly. On an i386 system
with a 64-bit kernel, this leaked into the generated binaries.

A patch is attached that uses dpkg-architecture instead.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/phoenix.pro	2017-03-18 22:47:20.713811801 +0000
--- b/phoenix.pro	2017-03-18 23:07:59.643988145 +0000
@@ -105,8 +105,8 @@
 
 
     !macx { # unix is defined on mac
-        HARDWARE_PLATFORM = $$system(uname -m)
-        contains( HARDWARE_PLATFORM, x86_64 ) {
+        HARDWARE_PLATFORM = $$system(dpkg-architecture --query DEB_TARGET_ARCH)
+        contains( HARDWARE_PLATFORM, amd64 ) {
             DEFINES += LINUX_64
         } else {
             DEFINES += LINUX_32


More information about the Reproducible-bugs mailing list