public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jindrich Novy <jnovy@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - remove two offending hunks from anyarch patch causing that
Date: Mon, 23 Nov 2026 09:25:36 GMT	[thread overview]
Message-ID: <179542593640.1.5683165712498093553.rpms-rpm-aa38a18e8560@fedoraproject.org> (raw)

        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)

                 reply	other threads:[~2026-11-23  9:25 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=179542593640.1.5683165712498093553.rpms-rpm-aa38a18e8560@fedoraproject.org \
    --to=jnovy@fedoraproject.org \
    --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