Description: Add --mode=go=rX,u+rw,a-s to tar command line.
To fix buid reproducibility.
Forwarded: https://bugs.kde.org/show_bug.cgi?id=363615
Author: Scarlett Clark <sgclark-guest@users.alioth.debian.org>
Updated: 05/27/2016
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)