public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - merge ppc64p7 related fixes that only went into f17 (#835978)
@ 2026-11-23  9:27 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:27 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 31171a2dbd002a783261dce22cc7a7e88dc30007
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2012-06-28T10:29:29+03:00
Stats  : +39/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/31171a2dbd002a783261dce22cc7a7e88dc30007?branch=pmatilai-v6

Log:
- merge ppc64p7 related fixes that only went into f17 (#835978)

---
diff --git a/rpm-4.10.0-ppc64p7-fixes.patch b/rpm-4.10.0-ppc64p7-fixes.patch
new file mode 100644
index 0000000..3072339
--- /dev/null
+++ b/rpm-4.10.0-ppc64p7-fixes.patch
@@ -0,0 +1,32 @@
+diff --git a/lib/rpmrc.c b/lib/rpmrc.c
+index ba156fe..96f05ce 100644
+--- a/lib/rpmrc.c
++++ b/lib/rpmrc.c
+@@ -1093,8 +1093,11 @@ static void defaultMachine(const char ** arch,
+ #	if defined(__linux__) && defined(__powerpc__)
+ 	{
+             int powerlvl;
+-            if (sscanf(rpmat.platform, "power%d", &powerlvl) == 1 && powerlvl > 6)
++            if (!rstreq(un.machine, "ppc") &&
++		    sscanf(rpmat.platform, "power%d", &powerlvl) == 1 &&
++		    powerlvl > 6) {
+                 strcpy(un.machine, "ppc64p7");
++	    }
+         }
+ #	endif	/* ppc64*-linux */
+ 
+diff --git a/macros.in b/macros.in
+index 4c77bbb..4a4a1e4 100644
+--- a/macros.in
++++ b/macros.in
+@@ -998,6 +998,10 @@ done \
+ # arch macro for all supported Alpha processors
+ %alpha	alpha alphaev56 alphaev6 alphaev67
+ 
++#------------------------------------------------------------------------------
++# arch macro for all supported PowerPC 64 processors
++%power64	ppc64 ppc64p7
++
+ #------------------------------------------------------------------------
+ # Use in %install to generate locale specific file lists. For example,
+ #

diff --git a/rpm.spec b/rpm.spec
index ed439db..4d6c4ab 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}3%{?dist}
+Release: %{?snapver:0.%{snapver}.}4%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.10.x/%{name}-%{srcver}.tar.bz2
@@ -45,6 +45,7 @@ Patch5: rpm-4.9.90-armhfp.patch
 Patch6: rpm-4.9.0-armhfp-logic.patch
 
 # Patches already in upstream
+Patch100: rpm-4.10.0-ppc64p7-fixes.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -218,6 +219,8 @@ packages on a system.
 %patch3 -p1 -b .no-man-dirs
 %patch4 -p1 -b .use-gpg2
 
+%patch100 -p1 -b .ppc647p-fixes
+
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
 %patch304 -p1 -b .ldflags
@@ -445,6 +448,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Thu Jun 28 2012 Panu Matilainen <pmatilai@redhat.com> - 4.10.0-4
+- merge ppc64p7 related fixes that only went into f17 (#835978)
+
 * Wed Jun 27 2012 Panu Matilainen <pmatilai@redhat.com> - 4.10.0-3
 - add support for minidebuginfo generation (#834073)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:27 [rpms/rpm] pmatilai-v6: - merge ppc64p7 related fixes that only went into f17 (#835978) Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox