From 019f97fda668f74e30be1f2ce17a4afc525e1984 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 27 May 2010 12:34:35 +0000 Subject: [PATCH] - adjust to new pkg-config behavior wrt private dependencies (#596433) - rpm-build now requires pkgconfig >= 0.24 --- rpm-4.8.0-pkgconfig-private.patch | 12 ++++++++++++ rpm.spec | 10 ++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 rpm-4.8.0-pkgconfig-private.patch diff --git a/rpm-4.8.0-pkgconfig-private.patch b/rpm-4.8.0-pkgconfig-private.patch new file mode 100644 index 0000000..fa05ede --- /dev/null +++ b/rpm-4.8.0-pkgconfig-private.patch @@ -0,0 +1,12 @@ +diff -up rpm-4.8.0/scripts/pkgconfigdeps.sh.pkgconfig-private rpm-4.8.0/scripts/pkgconfigdeps.sh +--- rpm-4.8.0/scripts/pkgconfigdeps.sh.pkgconfig-private 2010-05-27 15:24:48.000000000 +0300 ++++ rpm-4.8.0/scripts/pkgconfigdeps.sh 2010-05-27 15:25:01.000000000 +0300 +@@ -39,7 +39,7 @@ case $1 in + [ $i -eq 1 ] && echo "$pkgconfig" + DIR="`dirname ${filename}`" + export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig" +- $pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do ++ $pkgconfig --print-requires --print-requires-private "$filename" 2> /dev/null | while read n r v ; do + [ -n "$n" ] || continue + echo -n "pkgconfig($n) " + [ -n "$r" ] && [ -n "$v" ] && echo -n "$r" "$v" diff --git a/rpm.spec b/rpm.spec index 47808c7..7baf1cd 100644 --- a/rpm.spec +++ b/rpm.spec @@ -21,7 +21,7 @@ Summary: The RPM package management system Name: rpm Version: %{rpmver} -Release: 15%{?dist} +Release: 16%{?dist} Group: System Environment/Base Url: http://www.rpm.org/ Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2 @@ -56,6 +56,7 @@ Patch210: rpm-4.8.0-findlang-localedirs.patch # These are not yet upstream Patch301: rpm-4.6.0-niagara.patch Patch302: rpm-4.7.1-geode-i686.patch +Patch303: rpm-4.8.0-pkgconfig-private.patch # Partially GPL/LGPL dual-licensed and some bits with BSD # SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD @@ -150,7 +151,7 @@ Requires: rpm = %{version}-%{release} Requires: elfutils >= 0.128 binutils Requires: findutils sed grep gawk diffutils file patch >= 2.5 Requires: unzip gzip bzip2 cpio xz -Requires: pkgconfig +Requires: pkgconfig >= 1:0.24 Conflicts: ocaml-runtime < 3.11.1-7 %description build @@ -212,6 +213,7 @@ packages on a system. %patch301 -p1 -b .niagara %patch302 -p1 -b .geode +%patch303 -p1 -b .pkgconfig-private %if %{with int_bdb} ln -s db-%{bdbver} db @@ -424,6 +426,10 @@ exit 0 %doc doc/librpm/html/* %changelog +* Thu May 27 2010 Panu Matilainen - 4.8.0-16 +- adjust to new pkg-config behavior wrt private dependencies (#596433) +- rpm-build now requires pkgconfig >= 0.24 + * Fri May 21 2010 Panu Matilainen - 4.8.0-15 - handle non-existent dependency sets correctly in python (#593553) - make find-lang look in all locale dirs (#584866)