aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2021-03-21 04:42:48 +0100
committerDavid Faure <faure@kde.org>2021-06-13 11:36:45 +0000
commit700f72d0841bbc3b6aa5474a4df1ff938d427c14 (patch)
tree538250c7888a0e41d3e2e89ed6b699ac23de2698
parentb60dee16a6408f8605b13929b3cbe9d9749bb614 (diff)
downloadextra-cmake-modules-700f72d0841bbc3b6aa5474a4df1ff938d427c14.tar.gz
extra-cmake-modules-700f72d0841bbc3b6aa5474a4df1ff938d427c14.tar.bz2
Override atime and ctime in tar PaxHeaders
to make build results deterministic See https://reproducible-builds.org/ for why this is good. related to https://phabricator.kde.org/D25494 Without this patch, openSUSE's kio package varied in /usr/share/kdevappwizard/templates/ioslave.tar This PR was done while working on reproducible builds for openSUSE.
-rw-r--r--kde-modules/KDEPackageAppTemplates.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/kde-modules/KDEPackageAppTemplates.cmake b/kde-modules/KDEPackageAppTemplates.cmake
index aa8111ac..fa838c34 100644
--- a/kde-modules/KDEPackageAppTemplates.cmake
+++ b/kde-modules/KDEPackageAppTemplates.cmake
@@ -117,6 +117,7 @@ function(kde_package_app_templates)
add_custom_command(OUTPUT ${_template}
COMMAND ${_tar_executable} ARGS -c
--exclude .kdev_ignore --exclude .svn --sort=name --mode=go=rX,u+rw,a-s --owner=root
+ --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0
--group=root --numeric-owner -j -v -f ${_template} .
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName}
DEPENDS ${_subdirs_entries}