public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - pull out the macro scoping patch for now, it breaks font package macros
Date: Mon, 23 Nov 2026 09:26:20 GMT	[thread overview]
Message-ID: <179542598050.1.210775356787726332.rpms-rpm-fb64f7cd5daf@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : fb64f7cd5daf17b0ba17adbeee847450674918e0
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date   : 2010-01-07T09:27:49+00:00
Stats  : +4/-29 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/fb64f7cd5daf17b0ba17adbeee847450674918e0?branch=pmatilai-v6

Log:
- pull out the macro scoping patch for now, it breaks font package macros

---
diff --git a/rpm-4.7.90-macro-scope.patch b/rpm-4.7.90-macro-scope.patch
deleted file mode 100644
index 0d2bac9..0000000
--- a/rpm-4.7.90-macro-scope.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-commit f895acd285366cf58cc3c97b5f188fecbfd782a8
-Author: Panu Matilainen <pmatilai@redhat.com>
-Date:   Mon Jan 4 12:20:09 2010 +0200
-
-    Always free locally defined macros when they go out of scope
-    - Prior to this, local defines in constructs like %{!?foo: %define foo bar}
-      would remain defined until a parametrized macro gets called, causing
-      obscure and confusing errors in specs such as RhBug:551971 and countless
-      others. Use of %global is now always required for such constructs.
-
-diff --git a/rpmio/macro.c b/rpmio/macro.c
-index 88fb583..11db47d 100644
---- a/rpmio/macro.c
-+++ b/rpmio/macro.c
-@@ -1344,9 +1344,8 @@ expandMacro(MacroBuf mb)
- 			me->used++;	/* Mark macro as used */
- 	}
- 
--	/* Free args for "%name " macros with opts */
--	if (me->opts != NULL)
--		freeArgs(mb);
-+	/* Free locally defined macros, such as macro options */
-+	freeArgs(mb);
- 
- 	s = se;
-     }

diff --git a/rpm.spec b/rpm.spec
index 0569c29..6cf71ad 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: 0.%{snapver}.5
+Release: 0.%{snapver}.6
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -40,7 +40,6 @@ Patch3: rpm-4.7.90-fedora-specspo.patch
 Patch200: rpm-4.7.90-python-bytecompile.patch
 Patch201: rpm-4.7.90-python-refcounts.patch
 Patch202: rpm-4.7.90-spec-allow-unexpanded-macros.patch
-Patch203: rpm-4.7.90-macro-scope.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -188,7 +187,6 @@ packages on a system.
 %patch200 -p1 -b .python-bytecompile
 %patch201 -p1 -b .python-refcounts
 %patch202 -p1 -b .spec-unexpanded-macros
-%patch203 -p1 -b .macro-scope
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -403,6 +401,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Thu Jan 07 2010 Panu Matilainen <pmatilai@redhat.com> - 4.8.0-0.beta1.6
+- pull out macro scoping "fix" for now, it breaks font package macros
+
 * Mon Jan 04 2010 Panu Matilainen <pmatilai@redhat.com> - 4.8.0-0.beta1.5
 - always clear locally defined macros when they go out of scope
 

                 reply	other threads:[~2026-11-23  9:26 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=179542598050.1.210775356787726332.rpms-rpm-fb64f7cd5daf@fedoraproject.org \
    --to=pmatilai@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