summaryrefslogtreecommitdiffstats
path: root/rpm419.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-08-22 12:48:48 +0200
committerRemi Collet <remi@php.net>2023-08-22 12:48:48 +0200
commit376aaac49c32861178bffba63854799a0172255a (patch)
tree68f11738cdec5851f8157c6fd29bd8ab78c400ba /rpm419.patch
parent8dc7f007168c1e4580115dd94c8dcb36d215fed5 (diff)
add patch for RPM 4.19
to workaround https://bugzilla.redhat.com/2233454
Diffstat (limited to 'rpm419.patch')
-rw-r--r--rpm419.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/rpm419.patch b/rpm419.patch
new file mode 100644
index 0000000..ffea185
--- /dev/null
+++ b/rpm419.patch
@@ -0,0 +1,22 @@
+From eda4bcb75c3064d10b412a77e479f627e14a9a50 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 22 Aug 2023 12:37:23 +0200
+Subject: [PATCH] fix for RPM 4.19 which defines _root_prefix
+
+---
+ rpm/macros.scl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/rpm/macros.scl b/rpm/macros.scl
+index 0d27a6b..a03172a 100644
+--- a/rpm/macros.scl
++++ b/rpm/macros.scl
+@@ -39,7 +39,7 @@ package or when debugging this package.
+
+ %scl_prefix() %{?scl:%(if [ "%1" = "%%1" ]; then echo "%{scl}-"; else echo "%1-"; fi)}%{!?scl:%{nil}}
+
+-%scl_package() %{expand:%{!?_root_prefix:
++%scl_package() %{expand:%{!?scl_name:
+ %global pkg_name %1
+ %global scl_name %{scl}
+ %global scl_runtime %{scl}-runtime