[education/rkward] rkward/rbackend/rpackages: Also set file modes when creating reproducible archives
Pino Toscano
null at kde.org
Wed Feb 5 15:41:29 GMT 2025
Git commit 5dc679244f7edc3f15526a4b708e370cb1d4533d by Pino Toscano.
Committed on 05/02/2025 at 15:40.
Pushed by pino into branch 'master'.
Also set file modes when creating reproducible archives
Shamelessly copied from ECM (like the previous changes here), this
also limits the modes of the files added to the archives so they are
not affected by the umask on the system.
M +1 -0 rkward/rbackend/rpackages/CMakeLists.txt
https://invent.kde.org/education/rkward/-/commit/5dc679244f7edc3f15526a4b708e370cb1d4533d
diff --git a/rkward/rbackend/rpackages/CMakeLists.txt b/rkward/rbackend/rpackages/CMakeLists.txt
index 588d2007c..25f61678a 100644
--- a/rkward/rbackend/rpackages/CMakeLists.txt
+++ b/rkward/rbackend/rpackages/CMakeLists.txt
@@ -45,6 +45,7 @@ MACRO(createRpackage name)
COMMAND ${_tar_executable} ARGS
cfz "${CMAKE_CURRENT_BINARY_DIR}/${name}.tgz" "${name}"
--sort=name
+ --mode=go=rX,u+rw,a-s
--numeric-owner --owner=0 --group=0
--mtime="@${TIMESTAMP}"
--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime
More information about the rkward-tracker
mailing list