From 7aa67a41a86a128324b35ac6214362365f64acd8 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 8 Apr 2014 12:10:58 +0300 Subject: [PATCH] - replace unmaintained dependency generator scripts with rpmdeps wrappers --- rpm-4.11.x-rpmdeps-wrap.patch | 69 +++++++++++++++++++++++++++++++++++ rpm.spec | 7 +++- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 rpm-4.11.x-rpmdeps-wrap.patch 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 +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 - 4.11.2-5 +- replace unmaintained dependency generator scripts with rpmdeps wrappers + * Thu Mar 27 2014 Panu Matilainen - 4.11.2-4 - revert #1045723 fix for now, it breaks some java package macros