public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Do not process build-ids for noarch packages.
Date: Mon, 23 Nov 2026 09:30:45 GMT [thread overview]
Message-ID: <179542624522.1.3387314742067971668.rpms-rpm-434eb9a375b5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 434eb9a375b58e2b487370fbb437ffae61be902a
Author : Mark Wielaard <mark@klomp.org>
Date : 2017-03-17T10:59:33+01:00
Stats : +46/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/434eb9a375b58e2b487370fbb437ffae61be902a?branch=pmatilai-v6
Log:
Do not process build-ids for noarch packages.
---
diff --git a/0017-do-not-process-buildi-ds-for-noarch.patch b/0017-do-not-process-buildi-ds-for-noarch.patch
new file mode 100644
index 0000000..76a9727
--- /dev/null
+++ b/0017-do-not-process-buildi-ds-for-noarch.patch
@@ -0,0 +1,41 @@
+From d406bde3e914cae2d794bbaab66aad6b7038b30e Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Fri, 17 Mar 2017 10:51:36 +0100
+Subject: [PATCH] build/files.c (processPackageFiles): Don't call
+ generateBuildIDs for noarch.
+
+We don't want to do build-id processing for noarch packages. It might be
+that noarch packages do contain architecture depended files, but those are
+already handled by processBinaryFiles.
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+---
+ build/files.c | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/build/files.c b/build/files.c
+index 6021643..35b2dd0 100644
+--- a/build/files.c
++++ b/build/files.c
+@@ -2384,10 +2384,14 @@ static rpmRC processPackageFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags,
+ goto exit;
+
+ #if HAVE_LIBDW
+- if (generateBuildIDs (&fl) != 0) {
+- rpmlog(RPMLOG_ERR, _("Generating build-id links failed\n"));
+- fl.processingFailed = 1;
+- goto exit;
++ /* Check build-ids and add build-ids links for files to package list. */
++ const char *arch = headerGetString(pkg->header, RPMTAG_ARCH);
++ if (!rstreq(arch, "noarch")) {
++ if (generateBuildIDs (&fl) != 0) {
++ rpmlog(RPMLOG_ERR, _("Generating build-id links failed\n"));
++ fl.processingFailed = 1;
++ goto exit;
++ }
+ }
+ #endif
+
+--
+1.8.3.1
+
diff --git a/rpm.spec b/rpm.spec
index 34e46ce..3259100 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -29,7 +29,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}10%{?dist}
+Release: %{?snapver:0.%{snapver}.}11%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2
@@ -88,6 +88,7 @@ Patch262: 0013-missing_build_ids_terminate_build.patch
Patch263: 0014-generateBuildIDs-Fix-error-handling.patch
Patch264: 0015-reset-buildid-file-attrs.patch
Patch265: 0016-debugedit-replace-files.patch
+Patch266: 0017-do-not-process-buildi-ds-for-noarch.patch
# OpenSSL backend
Patch300: 0001-Add-OpenSSL-support-for-digest-and-signatures.patch
@@ -592,6 +593,9 @@ exit 0
%doc doc/librpm/html/*
%changelog
+* Fri Mar 17 2017 Mark Wielaard <mjw@redhat.com> - 4.13.0.1-11
+- Do not process build-ids for noarch packages.
+
* Thu Mar 16 2017 Mark Wielaard <mjw@redhat.com> - 4.13.0.1-10
- Add fix for debugedit replace debug_line files.
reply other threads:[~2026-11-23 9:30 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=179542624522.1.3387314742067971668.rpms-rpm-434eb9a375b5@fedoraproject.org \
--to=mark@klomp.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