SHA256
7
0
forked from pool/rpm
Files
rpm/archcheck.diff
Michael Schröder 84b19fafa8 - print scriptlet messages in --runposttrans
* needed to fix bsc#218459
  * updated patch: posttrans.diff
- backport architecture check fix from upstream
  * new patch: archcheck.diff
- backport empty password fix from upstream
  * new patch: emptypw.diff
- backport buildsys specific prep fix from upstream
  * new patch: buildsysprep.diff

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=700
2025-04-25 10:06:48 +00:00

29 lines
1.1 KiB
Diff

--- build/parsePreamble.c.orig 2025-04-25 09:33:36.850778834 +0000
+++ build/parsePreamble.c 2025-04-25 09:33:51.002755713 +0000
@@ -1332,6 +1332,11 @@ int parsePreamble(rpmSpec spec, int init
"%{dirname:%{buildroot}}", RMIL_GLOBAL, 0);
}
+ /* XXX Skip valid arch check if not building binary package */
+ if (!(spec->flags & RPMSPEC_ANYARCH) && checkForValidArchitectures(spec)) {
+ goto exit;
+ }
+
/* if we get down here nextPart has been set to non-error */
res = nextPart;
--- build/parseSpec.c.orig 2025-04-25 09:34:05.770731591 +0000
+++ build/parseSpec.c 2025-04-25 09:34:20.242707943 +0000
@@ -1355,11 +1355,6 @@ static rpmRC finalizeSpec(rpmSpec spec)
char *os = rpmExpand("%{_target_os}", NULL);
char *optflags = rpmExpand("%{optflags}", NULL);
- /* XXX Skip valid arch check if not building binary package */
- if (!(spec->flags & RPMSPEC_ANYARCH) && checkForValidArchitectures(spec)) {
- goto exit;
- }
-
fillOutMainPackage(spec->packages->header);
/* Define group tag to something when group is undefined in main package*/
if (!headerIsEntry(spec->packages->header, RPMTAG_GROUP)) {