File: upstream_Also-set-file-modes-when-creating-reproducible-archi.patch

package info (click to toggle)
rkward 0.8.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 59,724 kB
  • sloc: cpp: 48,401; xml: 9,493; javascript: 6,257; python: 21; makefile: 13
file content (27 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 5dc679244f7edc3f15526a4b708e370cb1d4533d Mon Sep 17 00:00:00 2001
From: Pino Toscano <pino@kde.org>
Date: Wed, 5 Feb 2025 16:40:03 +0100
Subject: [PATCH] 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.
---
 rkward/rbackend/rpackages/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

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