From aa38a18e856028462412a8ac34791572ff447f93 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Feb 17 2009 07:39:46 +0000 Subject: - 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 - 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 - 4.6.0-4 - inherit group tag from the main package (#470714) - ignore BuildArch tags for anyarch actions (#442105)