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

Usertags: umask


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


-- 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 <>

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)
         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}
Reproducible-builds mailing list

Reply via email to