[packages/rpm/rpm.org] don't use -gnux32 on archs other than x32

atler atler at pld-linux.org
Sat Oct 24 22:45:00 CEST 2020


commit ba7b32d5f30622e440fe838711c726bbd7f947ff
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Oct 24 18:52:01 2020 +0200

    don't use -gnux32 on archs other than x32
    
    RPMRC_GNU is a global var which once overriden messes all platforms that
    follow x32

 x32.patch | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/x32.patch b/x32.patch
index 3edc36d..bef950e 100644
--- a/x32.patch
+++ b/x32.patch
@@ -71,7 +71,7 @@ diff -ur rpm-4.15.1.orig/installplatform rpm-4.15.1/installplatform
 +	ISABITS=32
 +	CANONARCH=x32
  	CANONCOLOR=3
-+	RPMRC_GNU="${RPMRC_GNU}x32"
++	FORCE_RPMRC_GNU="${RPMRC_GNU}x32"
 +	TARGETCPU="x86_64"
  	;;
      ia64)
@@ -92,14 +92,25 @@ diff -ur rpm-4.15.1.orig/installplatform rpm-4.15.1/installplatform
    PPD="${DESTDIR}/${platformdir}/${ARCH}-${OS}"
    [ -d $PPD ] || mkdir -p $PPD
  
-@@ -202,6 +215,7 @@
+@@ -201,7 +214,8 @@
+   | sed -e "s, at RPMRC_OPTFLAGS@,$RPMRC_OPTFLAGS," \
  	-e "s, at RPMCANONARCH@,$CANONARCH,g" \
  	-e "s, at RPMCANONCOLOR@,$CANONCOLOR," \
- 	-e "s, at RPMRC_GNU@,$RPMRC_GNU," \
+-	-e "s, at RPMRC_GNU@,$RPMRC_GNU," \
++	-e "s, at RPMRC_GNU@,${FORCE_RPMRC_GNU:-$RPMRC_GNU}," \
 +	-e "s, at TARGETCPU@,$TARGETCPU," \
  	-e "s, at LIB@,$LIB," \
  	-e "s, at ARCH_INSTALL_POST@,$ARCH_INSTALL_POST," \
  	-e '/\${\w*:-/!s,\${,%{_,' \
+@@ -212,6 +226,8 @@
+   | ${FILTER} \
+   > ${PPD}/macros
+ 
++  FORCE_RPMRC_GNU=
++
+ done
+ 
+ # gently adjust undefined autoconf variables to rpm macros...
 diff -ur rpm-4.15.1.orig/platform.in rpm-4.15.1/platform.in
 --- rpm-4.15.1.orig/platform.in	2019-11-13 10:19:29.371710954 +0100
 +++ rpm-4.15.1/platform.in	2019-12-29 14:47:30.886959421 +0100
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/3d169da3440f372643aa4227772e63f776eda4c9



More information about the pld-cvs-commit mailing list