Source: kdevplatform
Version: 1.7.2
Severity: wishlist
Tags: patch

User: reproducible-builds@lists.alioth.debian.org
Usertags: umask

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that kdevelop could not be built reproducibly.

The attached patch removes umask issues from the tarballs. Once applied,
kdevelop can use the kdevplatform macro to create tarballs for the template
tars, then kevelop can be built reproducibly in our current experimental
framework.

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



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Description: Add --mode=go=rX,u+rw,a-s to tar command line. 
 To fix buid reproducibility. 
Forwarded: TBD
Author: Scarlett Clark <sgclark-gu...@users.alioth.debian.org>

diff --git a/cmake/modules/KDevPlatformMacros.cmake b/cmake/modules/KDevPlatformMacros.cmake
index f27066a..4a24e35 100644
--- a/cmake/modules/KDevPlatformMacros.cmake
+++ b/cmake/modules/KDevPlatformMacros.cmake
@@ -52,8 +52,8 @@ macro(kdevplatform_create_template_archive _templateName)
     else(WIN32)
         add_custom_command(OUTPUT ${_template}
             COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName}
-                --exclude .kdev_ignore --exclude .svn
-                -j -f ${_template} .
+                --exclude .kdev_ignore --exclude .svn --mode=go=rX,u+rw,a-s --owner=root 
+                --group=root --numeric-owner -j -f ${_template} .
             DEPENDS ${_deps}
         )
     endif(WIN32)
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to