[packages/pkgconfig] - added strip-loop patch (system dirs stripping fix; testcase: pkg-config --libs zlib) - release 2

qboosh qboosh at pld-linux.org
Tue Dec 9 17:10:24 CET 2014


commit e94479250116baf1247cec1ea6bf2a125b417aad
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 9 17:10:50 2014 +0100

    - added strip-loop patch (system dirs stripping fix; testcase: pkg-config --libs zlib)
    - release 2

 pkgconfig-strip-loop.patch | 24 ++++++++++++++++++++++++
 pkgconfig.spec             |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/pkgconfig.spec b/pkgconfig.spec
index e033191..05d8a4a 100644
--- a/pkgconfig.spec
+++ b/pkgconfig.spec
@@ -5,12 +5,13 @@ Summary(ru.UTF-8):	Инструмент для определения опций
 Summary(uk.UTF-8):	Інструмент для визначення опцій компіляції
 Name:		pkgconfig
 Version:	0.28
-Release:	1
+Release:	2
 Epoch:		1
 License:	GPL v2+
 Group:		Development/Tools
 Source0:	http://pkgconfig.freedesktop.org/releases/pkg-config-%{version}.tar.gz
 # Source0-md5:	aa3c86e67551adc3ac865160e34a2a0d
+Patch0:		%{name}-strip-loop.patch
 URL:		http://pkgconfig.freedesktop.org/wiki/
 BuildRequires:	autoconf >= 2.62
 BuildRequires:	automake >= 1:1.11
@@ -49,6 +50,7 @@ потрібні флаги компілятора та лінкера.
 
 %prep
 %setup -q -n pkg-config-%{version}
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/pkgconfig-strip-loop.patch b/pkgconfig-strip-loop.patch
new file mode 100644
index 0000000..c0d947e
--- /dev/null
+++ b/pkgconfig-strip-loop.patch
@@ -0,0 +1,24 @@
+From ce1a2416ce0f0bd9a8a8a5caaf7dad20cda4d47d Mon Sep 17 00:00:00 2001
+From: Andrew Oakley <aoakley at espial.com>
+Date: Tue, 29 Apr 2014 13:14:35 +0100
+Subject: Strip system library directories reliably
+
+This loop was changed from a while loop to a for loop in commit
+9bf6277b, but the iterator is now advanced twice each time round the
+loop.
+
+diff --git a/pkg.c b/pkg.c
+index 3697fec..c847c95 100644
+--- a/pkg.c
++++ b/pkg.c
+@@ -917,7 +917,6 @@ verify_package (Package *pkg)
+             }
+           system_dir_iter = system_dir_iter->next;
+         }
+-      iter = iter->next;
+     }
+   g_list_free (system_directories);
+ 
+-- 
+cgit v0.10.2
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pkgconfig.git/commitdiff/e94479250116baf1247cec1ea6bf2a125b417aad



More information about the pld-cvs-commit mailing list