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: - replace unmaintained dependency generator scripts with rpmdeps wrappers
Date: Mon, 23 Nov 2026 09:28:42 GMT	[thread overview]
Message-ID: <179542612231.1.7832549648592926555.rpms-rpm-7aa67a41a86a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 7aa67a41a86a128324b35ac6214362365f64acd8
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2014-04-08T12:10:58+03:00
Stats  : +75/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/7aa67a41a86a128324b35ac6214362365f64acd8?branch=pmatilai-v6

Log:
- replace unmaintained dependency generator scripts with rpmdeps wrappers

---
diff --git a/rpm-4.11.x-rpmdeps-wrap.patch b/rpm-4.11.x-rpmdeps-wrap.patch
new file mode 100644
index 0000000..f68712e
--- /dev/null
+++ b/rpm-4.11.x-rpmdeps-wrap.patch
@@ -0,0 +1,69 @@
+commit 43383e0adbd79b2f6847298640f619565e37ad72
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date:   Tue Apr 8 12:02:24 2014 +0300
+
+       Always use the new dependency generator "engine"
+    
+        - Replace platform specific find-{requires,provides} scripts with
+          trivial wrapper scripts that just call rpmdeps with suitable
+          arguments. This way the generated dependencies using the legacy
+          external dependency are at least roughly on par with the internal
+          depgen as, well, they're generated by the same thing.
+        - Changing from find-{requires,provides} scripts to rpmdeps could
+          be done by just changing __find_{requires,provides} macros, but
+          a lot of packages directly refer to the scripts instead so this
+          way we cover far more ground and in an backwards compatible way.
+
+diff --git a/Makefile.am b/Makefile.am
+index a6fa619..199cffb 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -96,8 +96,7 @@ rpmbin_PROGRAMS = rpm
+ bin_PROGRAMS =		rpm2cpio rpmbuild rpmdb rpmkeys rpmsign rpmspec
+ 
+ rpmlibexec_PROGRAMS =
+-rpmconfig_SCRIPTS =	autodeps/find-provides autodeps/find-requires \
+-			mkinstalldirs \
++rpmconfig_SCRIPTS =	mkinstalldirs \
+ 			config.guess config.sub
+ DISTCLEANFILES = autodeps/find-provides
+ DISTCLEANFILES += autodeps/find-requires
+diff --git a/scripts/Makefile.am b/scripts/Makefile.am
+index 7656c80..f93901e 100644
+--- a/scripts/Makefile.am
++++ b/scripts/Makefile.am
+@@ -14,6 +14,7 @@ EXTRA_DIST = \
+ 	perldeps.pl perl.prov perl.req pythondeps.sh osgideps.pl \
+ 	rpmdb_loadcvt rpm.daily rpm.log rpm.supp rpm2cpio.sh \
+ 	tcl.req tgpg vpkg-provides.sh \
++	find-requires find-provides \
+ 	find-requires.php find-provides.php \
+ 	find-php-provides find-php-requires \
+ 	mono-find-requires mono-find-provides \
+@@ -28,7 +29,7 @@ rpmconfig_SCRIPTS = \
+ 	brp-strip-shared brp-strip-static-archive \
+ 	check-files check-prereqs \
+ 	check-buildroot check-rpaths check-rpaths-worker \
+-	find-lang.sh \
++	find-lang.sh find-requires find-provides \
+ 	perl.prov perl.req perldeps.pl pythondeps.sh osgideps.pl \
+ 	mono-find-requires mono-find-provides \
+ 	pkgconfigdeps.sh libtooldeps.sh \
+diff --git a/scripts/find-provides b/scripts/find-provides
+new file mode 100644
+index 0000000..c5cf93b
+--- /dev/null
++++ b/scripts/find-provides
+@@ -0,0 +1,3 @@
++#!/bin/sh
++
++/usr/lib/rpm/rpmdeps --provides
+diff --git a/scripts/find-requires b/scripts/find-requires
+new file mode 100644
+index 0000000..9d192dd
+--- /dev/null
++++ b/scripts/find-requires
+@@ -0,0 +1,3 @@
++#!/bin/sh
++
++/usr/lib/rpm/rpmdeps --requires

diff --git a/rpm.spec b/rpm.spec
index a995aad..14bdb07 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -22,7 +22,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}4%{?dist}
+Release: %{?snapver:0.%{snapver}.}5%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.11.x/%{name}-%{srcver}.tar.bz2
@@ -59,6 +59,7 @@ Patch101: rpm-4.11.x-do-not-filter-ld64.patch
 Patch102: rpm-4.11.2-macro-newlines.patch
 Patch103: rpm-4.11.x-reset-fileactions.patch
 Patch104: rpm-4.11.2-python3-buildsign.patch
+Patch105: rpm-4.11.x-rpmdeps-wrap.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -267,6 +268,7 @@ packages on a system.
 #patch102 -p1 -b .macro-newlines
 %patch103 -p1 -b .reset-fileactions
 %patch104 -p1 -b .python3-buildsign
+%patch105 -p1 -b .rpmdeps-wrap
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -525,6 +527,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Tue Apr 08 2014 Panu Matilainen <pmatilai@redhat.com> - 4.11.2-5
+- replace unmaintained dependency generator scripts with rpmdeps wrappers
+
 * Thu Mar 27 2014 Panu Matilainen <pmatilai@redhat.com> - 4.11.2-4
 - revert #1045723 fix for now, it breaks some java package macros
 

                 reply	other threads:[~2026-11-23  9:28 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=179542612231.1.7832549648592926555.rpms-rpm-7aa67a41a86a@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