- update to rpm-4.20.1

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=696
This commit is contained in:
2025-03-07 13:36:43 +00:00
committed by Git OBS Bridge
commit ed6c2e001f
72 changed files with 9519 additions and 0 deletions

15
undefbuildroot.diff Normal file
View File

@@ -0,0 +1,15 @@
--- build/parseSpec.c.orig 2025-01-07 09:55:58.006136886 +0000
+++ build/parseSpec.c 2025-01-07 09:56:23.618086661 +0000
@@ -1321,9 +1321,11 @@ static rpmSpec parseSpec(const char *spe
rpmPushMacroFlags(spec->macros, "_top_builddir", NULL,
top_builddir, RMIL_GLOBAL, RPMMACRO_LITERAL);
- /* Undefine (!!) %_builddir so %global misuses fall through */
+ /* Undefine (!!) %_builddir and %buildroot so %global misuses fall through */
while (rpmMacroIsDefined(spec->macros, "_builddir"))
rpmPopMacro(spec->macros, "_builddir");
+ while (rpmMacroIsDefined(spec->macros, "buildroot"))
+ rpmPopMacro(spec->macros, "buildroot");
free(top_builddir);
}