]> TLD Linux GIT Repositories - packages/rpm.git/blobdiff - x32.patch
- fix %_target_platform macro in platform.in
[packages/rpm.git] / x32.patch
index 2afb1fdd0969efb630da2e4463e14f3a286d8306..197f9055c45f8ab687e15c108d520ce6b503972f 100644 (file)
--- a/x32.patch
+++ b/x32.patch
@@ -81,9 +81,9 @@ diff -ur rpm-4.15.1.orig/installplatform rpm-4.15.1/installplatform
 +      ;;
 +    x32)
 +      ISANAME=x86
-+      ISABITS=32
++      ISABITS=x32
 +      CANONARCH=x32
-+      CANONCOLOR=4
++      CANONCOLOR=7
 +      FORCE_RPMRC_GNU="${RPMRC_GNU}x32"
 +      TARGETCPU="x86_64"
        ;;
@@ -132,7 +132,7 @@ diff -ur rpm-4.15.1.orig/platform.in rpm-4.15.1/platform.in
  %_os                  @RPMCANONOS@
  %_gnu                 @RPMRC_GNU@
 -%_target_platform     %{_target_cpu}-%{_vendor}-%{_target_os}
-+%_target_platform     @TARGETCPU@-%{_vendor}-%{_target_os}%{?_gnu}
++%_target_platform     @TARGETCPU@-%{_vendor}-%{_target_os}
  %optflags             @RPMRC_OPTFLAGS@
  
  %__isa_name           @ISANAME@
@@ -173,11 +173,16 @@ diff -ur rpm-4.15.1.orig/rpmrc.in rpm-4.15.1/rpmrc.in
  buildarchtranslate: sh3: sh3
  buildarchtranslate: sh4: sh4
  buildarchtranslate: sh4a: sh4
-@@ -490,6 +496,8 @@
+@@ -486,10 +492,12 @@
+ arch_compat: ia64: noarch
+-arch_compat: x86_64: amd64 em64t athlon noarch
++arch_compat: x86_64: amd64 em64t athlon x32 noarch
  arch_compat: amd64: x86_64 em64t athlon noarch
  arch_compat: ia32e: x86_64 em64t athlon noarch
  
-+arch_compat: x32: x32 noarch
++arch_compat: x32: x32 x86_64 noarch
 +
  arch_compat: sh3: noarch
  arch_compat: sh4: noarch