Michal Domonkos 835709
From 7a9edfccdb667045ecaeeb591161bf08f14066c9 Mon Sep 17 00:00:00 2001
Michal Domonkos 835709
From: Florian Festi <ffesti@redhat.com>
Michal Domonkos 835709
Date: Wed, 6 Jul 2022 13:19:59 +0200
Michal Domonkos 835709
Subject: [PATCH 2/2] Exclude *.src.rpm from check-buildroot
Michal Domonkos 835709
Michal Domonkos 835709
With the SRPMs now containing the expanded spec file they are bound to
Michal Domonkos 835709
have the build root included in the header. Turns out some people
Michal Domonkos 835709
package SRPMs to rebuild them locally e.g. against the local kernel.
Michal Domonkos 835709
Michal Domonkos 835709
Resolves: rhbz#2104150
Michal Domonkos 835709
Michal Domonkos 835709
Backported from commit aa701a8f483e2b1f57764c5d9129e27271d96b38
Michal Domonkos 835709
---
Michal Domonkos 835709
 scripts/check-buildroot | 1 +
Michal Domonkos 835709
 1 file changed, 1 insertion(+)
Michal Domonkos 835709
Michal Domonkos 835709
diff --git a/scripts/check-buildroot b/scripts/check-buildroot
Michal Domonkos 835709
index 74c3b469b..d97820633 100755
Michal Domonkos 835709
--- a/scripts/check-buildroot
Michal Domonkos 835709
+++ b/scripts/check-buildroot
Michal Domonkos 835709
@@ -28,6 +28,7 @@ NCPUS=${RPM_BUILD_NCPUS:-1}
Michal Domonkos 835709
 
Michal Domonkos 835709
 find "$RPM_BUILD_ROOT" \! \( \
Michal Domonkos 835709
     -name '*.pyo' -o -name '*.pyc' -o -name '*.elc' -o -name '.packlist' \
Michal Domonkos 835709
+    -o -name '*.src.rpm' \
Michal Domonkos 835709
     \) -type f -print0 | \
Michal Domonkos 835709
     LANG=C xargs -0r -P$NCPUS -n16 grep -lF "$RPM_BUILD_ROOT" >>$tmp
Michal Domonkos 835709
 
Michal Domonkos 835709
-- 
Michal Domonkos 835709
2.36.1
Michal Domonkos 835709