|
Igor Gnatenko |
082d5d |
From 430f012c5794873a84db81b93c5858ca96ea4559 Mon Sep 17 00:00:00 2001
|
|
Mark Wielaard |
434eb9 |
From: Mark Wielaard <mark@klomp.org>
|
|
Igor Gnatenko |
082d5d |
Date: Fri, 17 Mar 2017 11:14:00 +0100
|
|
Igor Gnatenko |
082d5d |
Subject: [PATCH 21/49] build/files.c (processPackageFiles): Don't call
|
|
Mark Wielaard |
434eb9 |
generateBuildIDs for noarch.
|
|
Mark Wielaard |
434eb9 |
|
|
Mark Wielaard |
434eb9 |
We don't want to do build-id processing for noarch packages. It might be
|
|
Mark Wielaard |
434eb9 |
that noarch packages do contain architecture depended files, but those are
|
|
Mark Wielaard |
434eb9 |
already handled by processBinaryFiles.
|
|
Mark Wielaard |
434eb9 |
|
|
Igor Gnatenko |
082d5d |
This fixes the building of openbios in fedora.
|
|
Igor Gnatenko |
082d5d |
https://bugzilla.redhat.com/show_bug.cgi?id=1433129
|
|
Igor Gnatenko |
082d5d |
|
|
Mark Wielaard |
434eb9 |
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
|
Igor Gnatenko |
082d5d |
(cherry picked from commit 5e82c7e8a8fc05195cdf622d0a120b9e70a9371b)
|
|
Mark Wielaard |
434eb9 |
---
|
|
Mark Wielaard |
434eb9 |
build/files.c | 12 ++++++++----
|
|
Mark Wielaard |
434eb9 |
1 file changed, 8 insertions(+), 4 deletions(-)
|
|
Mark Wielaard |
434eb9 |
|
|
Mark Wielaard |
434eb9 |
diff --git a/build/files.c b/build/files.c
|
|
Igor Gnatenko |
082d5d |
index 6c0ca39ef..9e58ae547 100644
|
|
Mark Wielaard |
434eb9 |
--- a/build/files.c
|
|
Mark Wielaard |
434eb9 |
+++ b/build/files.c
|
|
Igor Gnatenko |
082d5d |
@@ -2378,10 +2378,14 @@ static rpmRC processPackageFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags,
|
|
Mark Wielaard |
434eb9 |
goto exit;
|
|
Mark Wielaard |
434eb9 |
|
|
Mark Wielaard |
434eb9 |
#if HAVE_LIBDW
|
|
Mark Wielaard |
434eb9 |
- if (generateBuildIDs (&fl) != 0) {
|
|
Mark Wielaard |
434eb9 |
- rpmlog(RPMLOG_ERR, _("Generating build-id links failed\n"));
|
|
Mark Wielaard |
434eb9 |
- fl.processingFailed = 1;
|
|
Mark Wielaard |
434eb9 |
- goto exit;
|
|
Mark Wielaard |
434eb9 |
+ /* Check build-ids and add build-ids links for files to package list. */
|
|
Mark Wielaard |
434eb9 |
+ const char *arch = headerGetString(pkg->header, RPMTAG_ARCH);
|
|
Mark Wielaard |
434eb9 |
+ if (!rstreq(arch, "noarch")) {
|
|
Mark Wielaard |
434eb9 |
+ if (generateBuildIDs (&fl) != 0) {
|
|
Mark Wielaard |
434eb9 |
+ rpmlog(RPMLOG_ERR, _("Generating build-id links failed\n"));
|
|
Mark Wielaard |
434eb9 |
+ fl.processingFailed = 1;
|
|
Mark Wielaard |
434eb9 |
+ goto exit;
|
|
Mark Wielaard |
434eb9 |
+ }
|
|
Mark Wielaard |
434eb9 |
}
|
|
Mark Wielaard |
434eb9 |
#endif
|
|
Mark Wielaard |
434eb9 |
|
|
Mark Wielaard |
434eb9 |
--
|
|
Igor Gnatenko |
082d5d |
2.13.2
|
|
Mark Wielaard |
434eb9 |
|