jobcore/pacman/pacman-sort-debuginfod-repro.patch
2024-03-01 22:02:29 +02:00

26 lines
977 B
Diff

From 843bf21e794c79c5b3bcf8a57e45ef9c62312fee Mon Sep 17 00:00:00 2001
From: kpcyrd <kpcyrd@archlinux.org>
Date: Sun, 27 Aug 2023 13:03:40 +0200
Subject: [PATCH] libmakepkg: Fix non-reproducible binaries by processing
debuginfo in order
---
scripts/libmakepkg/tidy/strip.sh.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in
index 035a2142e..a53bd451b 100644
--- a/scripts/libmakepkg/tidy/strip.sh.in
+++ b/scripts/libmakepkg/tidy/strip.sh.in
@@ -152,7 +152,7 @@ tidy_strip() {
fi
local binary strip_flags
- find . -type f -perm -u+w -print0 2>/dev/null | while IFS= read -rd '' binary ; do
+ find . -type f -perm -u+w -print0 2>/dev/null | LC_ALL=C sort -z | while IFS= read -rd '' binary ; do
local STRIPLTO=0
case "$(LC_ALL=C readelf -h "$binary" 2>/dev/null)" in
*Type:*'DYN (Shared object file)'*) # Libraries (.so) or Relocatable binaries
--
GitLab