public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - merge ppc64p7 related fixes that only went into f17 (#835978)
Date: Mon, 23 Nov 2026 09:27:53 GMT	[thread overview]
Message-ID: <179542607372.1.588629578582851091.rpms-rpm-31171a2dbd00@fedoraproject.org> (raw)

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)
 

                 reply	other threads:[~2026-11-23  9:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542607372.1.588629578582851091.rpms-rpm-31171a2dbd00@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox