public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Fix rpmbuild -ba --nodeps regression wrt dynamic buildrequires (#2078744)
Date: Mon, 23 Nov 2026 09:34:15 GMT	[thread overview]
Message-ID: <179542645563.1.401384547496411573.rpms-rpm-f384795ec81f@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : f384795ec81feb985e6f150756f98823ffd9a1f8
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2022-04-26T16:32:29+03:00
Stats  : +36/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/f384795ec81feb985e6f150756f98823ffd9a1f8?branch=pmatilai-v6

Log:
Fix rpmbuild -ba --nodeps regression wrt dynamic buildrequires (#2078744)

---
diff --git a/0001-Fix-regression-on-dynamic-buildrequires-with-ba-node.patch b/0001-Fix-regression-on-dynamic-buildrequires-with-ba-node.patch
new file mode 100644
index 0000000..69556ed
--- /dev/null
+++ b/0001-Fix-regression-on-dynamic-buildrequires-with-ba-node.patch
@@ -0,0 +1,31 @@
+From d220e0063e836ba14806c7efb2a85d1be04cd673 Mon Sep 17 00:00:00 2001
+Message-Id: <d220e0063e836ba14806c7efb2a85d1be04cd673.1650979848.git.pmatilai@redhat.com>
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Tue, 26 Apr 2022 16:27:10 +0300
+Subject: [PATCH] Fix regression on dynamic buildrequires with -ba --nodeps
+ (RhBug:2078744)
+
+---
+ rpmbuild.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/rpmbuild.c b/rpmbuild.c
+index da3810f75..377d672a7 100644
+--- a/rpmbuild.c
++++ b/rpmbuild.c
+@@ -673,9 +673,10 @@ int main(int argc, char *argv[])
+ 	/* fallthrough */
+     case 'd':
+ 	ba->buildAmount |= RPMBUILD_BUILDREQUIRES;
+-	ba->buildAmount |= RPMBUILD_DUMPBUILDREQUIRES;
+-	if (!noDeps)
++	if ((buildChar == 'd' || buildChar == 'r') || noDeps == 0) {
++	    ba->buildAmount |= RPMBUILD_DUMPBUILDREQUIRES;
+ 	    ba->buildAmount |= RPMBUILD_CHECKBUILDREQUIRES;
++	}
+ 	if ((buildChar == 'r' || buildChar == 'd') && shortCircuit)
+ 	    break;
+ 	/* fallthrough */
+-- 
+2.35.1
+

diff --git a/rpm.spec b/rpm.spec
index b0c3465..427e622 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -30,7 +30,7 @@
 
 %global rpmver 4.18.0
 %global snapver alpha1
-%global baserelease 2
+%global baserelease 3
 %global sover 9
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -59,6 +59,7 @@ Patch3: rpm-4.9.90-no-man-dirs.patch
 Patch100: 0001-Fix-OpenPGP-key-ID-parsing-regression.patch
 Patch101: 0001-Revert-Fix-shared-colored-files-not-removed-on-erasu.patch
 Patch102: 0001-Fix-rpmbuild-br-not-building-.src.rpm-regression-RhB.patch
+Patch103: 0001-Fix-regression-on-dynamic-buildrequires-with-ba-node.patch
 
 # These are not yet upstream
 Patch906: rpm-4.7.1-geode-i686.patch
@@ -613,6 +614,9 @@ fi
 %doc docs/librpm/html/*
 
 %changelog
+* Tue Apr 26 2022 Panu Matilainen <pmatilai@redhat.com> - 4.18.0-0.alpha1.3
+- Fix rpmbuild -ba --nodeps regression wrt dynamic buildrequires (#2078744)
+
 * Tue Apr 26 2022 Panu Matilainen <pmatilai@redhat.com> - 4.18.0-0.alpha1.2
 - Fix rpmbuild -br not producing a src.rpm regression (#2078744)
 

                 reply	other threads:[~2026-11-23  9:34 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=179542645563.1.401384547496411573.rpms-rpm-f384795ec81f@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --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