public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - remove two offending hunks from anyarch patch causing that
@ 2026-11-23  9:25 Jindrich Novy
  0 siblings, 0 replies; only message in thread
From: Jindrich Novy @ 2026-11-23  9:25 UTC (permalink / raw)
  To: git-commits

        A new commit has been pushed.

        Repo   : rpms/rpm
        Branch : pmatilai-v6
        Commit : aa38a18e856028462412a8ac34791572ff447f93
        Author : Jindrich Novy <jnovy@fedoraproject.org>
        Date   : 2009-02-17T07:39:46+00:00
        Stats  : +5/-32 in 2 file(s)
        URL    : https://src.fedoraproject.org/rpms/rpm/c/aa38a18e856028462412a8ac34791572ff447f93?branch=pmatilai-v6

        Log:
        - remove two offending hunks from anyarch patch causing that
RPMTAG_BUILDARCHS isn't written to SRPMs

---
diff --git a/rpm-4.6.0-anyarch-actions-fix.patch b/rpm-4.6.0-anyarch-actions-fix.patch
index 099cd4a..a04f1ca 100644
--- a/rpm-4.6.0-anyarch-actions-fix.patch
+++ b/rpm-4.6.0-anyarch-actions-fix.patch
@@ -69,37 +69,6 @@ diff -up rpm-4.6.0/build.c.anyarch-actions-fix rpm-4.6.0/build.c
      /* Assemble source header from parsed components */
      initSourceHeader(spec);
  
-diff -up rpm-4.6.0/build/parsePreamble.c.anyarch-actions-fix rpm-4.6.0/build/parsePreamble.c
---- rpm-4.6.0/build/parsePreamble.c.anyarch-actions-fix	2009-02-16 13:19:43.000000000 +0100
-+++ rpm-4.6.0/build/parsePreamble.c	2009-02-16 13:19:43.000000000 +0100
-@@ -859,8 +859,14 @@ int parsePreamble(rpmSpec spec, int init
- 		    goto exit;
- 		}
- 		if (spec->BANames && !spec->recursing) {
--		    res = PART_BUILDARCHITECTURES;
--		    goto exit;
-+		    /* Ignore BuildArch tags for anyarch actions */
-+		    if (spec->anyarch) {
-+			spec->BANames = _free(spec->BANames);
-+			spec->BACount = 0;
-+		    } else {
-+			res = PART_BUILDARCHITECTURES;
-+			goto exit;
-+		    }
- 		}
- 	    }
- 	    if ((rc =
-@@ -895,8 +901,8 @@ int parsePreamble(rpmSpec spec, int init
- 	addMacro(spec->macros, "buildroot", NULL, spec->buildRoot, RMIL_SPEC);
-     }
- 
--    /* XXX Skip valid arch check if not building binary package */
--    if (!spec->anyarch && checkForValidArchitectures(spec)) {
-+    /* This check is harmless as BuildArch tags are ignored in case of anyarch != 0 */
-+    if (checkForValidArchitectures(spec)) {
- 	goto exit;
-     }
- 
 diff -up rpm-4.6.0/build/rpmbuild.h.anyarch-actions-fix rpm-4.6.0/build/rpmbuild.h
 --- rpm-4.6.0/build/rpmbuild.h.anyarch-actions-fix	2008-12-05 12:49:22.000000000 +0100
 +++ rpm-4.6.0/build/rpmbuild.h	2009-02-16 13:19:43.000000000 +0100

diff --git a/rpm.spec b/rpm.spec
index e06a22d..2930a05 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -18,7 +18,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: 4%{?dist}
+Release: 5%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -377,6 +377,10 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Tue Feb 17 2009 Jindrich Novy <jnovy@redhat.com> - 4.6.0-5
+- remove two offending hunks from anyarch patch causing that
+  RPMTAG_BUILDARCHS isn't written to SRPMs
+
 * Mon Feb 16 2009 Jindrich Novy <jnovy@redhat.com> - 4.6.0-4
 - inherit group tag from the main package (#470714)
 - ignore BuildArch tags for anyarch actions (#442105)

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

only message in thread, other threads:[~2026-11-23  9:25 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:25 [rpms/rpm] pmatilai-v6: - remove two offending hunks from anyarch patch causing that Jindrich Novy

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