public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Remove ppc64 inline asm (#233145)
@ 2026-11-23  9:24 Paul Nasrat
  0 siblings, 0 replies; only message in thread
From: Paul Nasrat @ 2026-11-23  9:24 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : eb6953f5513e000c20d2074d56405296af4239c1
Author : Paul Nasrat <pnasrat@fedoraproject.org>
Date   : 2007-04-04T13:17:15+00:00
Stats  : +37/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/eb6953f5513e000c20d2074d56405296af4239c1?branch=pmatilai-v6

Log:
Remove ppc64 inline asm (#233145)

---
diff --git a/rpm-4.4.2-no-ppc-asm.patch b/rpm-4.4.2-no-ppc-asm.patch
new file mode 100644
index 0000000..8a5efd3
--- /dev/null
+++ b/rpm-4.4.2-no-ppc-asm.patch
@@ -0,0 +1,30 @@
+--- rpm-4.3.3/lib/rpmrc.c.asm	2005-09-19 13:17:02.000000000 -0400
++++ rpm-4.3.3/lib/rpmrc.c	2005-09-19 13:17:23.000000000 -0400
+@@ -1278,27 +1278,6 @@
+ 	}
+ #	endif
+ 
+-#	if defined(__linux__) && defined(__powerpc__)
+-	{
+-	    unsigned pvr = 0;
+-	    __sighandler_t oldh = signal(SIGILL, mfspr_ill);
+-	    if (setjmp(mfspr_jmpbuf) == 0) {
+-		__asm__ __volatile__ ("mfspr %0, 287" : "=r" (pvr));
+-	    }
+-	    signal(SIGILL, oldh);
+-
+-	    if ( pvr ) {
+-		pvr >>= 16;
+-		if ( pvr >= 0x40)
+-		    strcpy(un.machine, "ppcpseries");
+-		else if ( (pvr == 0x36) || (pvr == 0x37) )
+-		    strcpy(un.machine, "ppciseries");
+-		else
+-		    strcpy(un.machine, "ppc");
+-	    }
+-	}
+-#	endif
+-
+ 	/* the uname() result goes through the arch_canon table */
+ 	canon = lookupInCanonTable(un.machine,
+ 				   tables[RPM_MACHTABLE_INSTARCH].canons,

diff --git a/rpm.spec b/rpm.spec
index f9ccec2..29cb7c0 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -1,4 +1,4 @@
-%define with_python_version     2.4%{nil}
+%define with_python_version     2.5%{nil}
 %define with_apidocs            1%{nil}
 
 # XXX legacy requires './' payload prefix to be omitted from rpm packages.
@@ -17,7 +17,7 @@ Summary: The RPM package management system
 Name: rpm
 Version: 4.4.2
 %{expand: %%define rpm_version %{version}}
-Release: 41%{?dist}
+Release: 42%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source: rpm-%{rpm_version}.tar.gz
@@ -62,6 +62,7 @@ Patch35: rpm-4.4.2-query-flushbuffer.patch
 Patch36: rpm-4.4.2-unicodekey.patch
 Patch37: rpm-4.4.2-noneon.patch
 Patch38: rpm-4.4.2-debugedit-canonicalize-path.patch
+Patch39: rpm-4.4.2-no-ppc-asm.patch
 License: GPL
 Requires: patch > 2.5
 Prereq: shadow-utils
@@ -202,6 +203,7 @@ shell-like rules.
 %patch36 -p1 -b .unicode
 %patch37 -p1 -b .noneon
 %patch38 -p0 -b .debugcan
+%patch39 -p1 -b .noppcasm
 
 # rebuild configure for ipv6
 autoconf
@@ -560,6 +562,9 @@ exit 0
 %{__includedir}/popt.h
 
 %changelog
+* Wed Apr 04 2007 Paul Nasrat <pnasrat@redhat.com> - 4.4.2-42
+- Remove ppc64 inline asm (#233145)
+
 * Tue Mar 13 2007 Paul Nasrat <pnasrat@redhat.com> - 4.4.2-41
 - Fix potential segfault when no rpmloc_path (#231146)
 - Fix debugedit for relative paths (#232222)

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

only message in thread, other threads:[~2026-11-23  9:24 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:24 [rpms/rpm] pmatilai-v6: Remove ppc64 inline asm (#233145) Paul Nasrat

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