[libpgplot-perl] 04/05: Do not link against unused libraries

Florian Schlichting fsfs at moszumanska.debian.org
Thu Apr 24 16:57:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

fsfs pushed a commit to branch master
in repository libpgplot-perl.

commit 1d3517bfdcda1fc36a01710209258e54ea6688af
Author: Florian Schlichting <fsfs at debian.org>
Date:   Thu Apr 24 18:55:14 2014 +0200

    Do not link against unused libraries
---
 debian/patches/series                   |  1 +
 debian/patches/useless_dependency.patch | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 5299247..3305c43 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+useless_dependency.patch
 spelling.patch
diff --git a/debian/patches/useless_dependency.patch b/debian/patches/useless_dependency.patch
new file mode 100644
index 0000000..0b0a85f
--- /dev/null
+++ b/debian/patches/useless_dependency.patch
@@ -0,0 +1,31 @@
+Description: do not link against unused libraries
+ dpkg-shlibdeps complained about useless dependencies on libgfortran.so.3,
+ libpng12.so.0, libX11.so.6 and libm.so.6
+Author: Florian Schlichting <fsfs at debian.org>
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=95006
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -65,7 +65,6 @@
+ 
+ my $LIBS = join(' ', map { "-l$_" }
+ 		qw/ cpgplot pgplot /,
+-		map { split( ',', $_ ) } @Arg{qw/ XLIB EXLIB /}
+ 	       );
+ 
+ my $IDIRS = join( ' ', map { "-I$_" } split( ',', $Arg{IDIR} ) );
+@@ -147,7 +146,7 @@
+ 	'pgplot_tmp/libpgplot.a'
+ 	if -d 'pgplot_tmp';
+ 
+-    $items{LIBS} = [ join( ' ', $LIBDIRS, $LIBS, ExtUtils::F77->runtime ) ];
++    $items{LIBS} = [ join( ' ', $LIBDIRS, $LIBS ) ];
+ 
+     # This is not ideal since it assumes that:
+     #    objc is required
+@@ -257,4 +256,4 @@
+ 	   print "\nRESULT: $$t\n";
+ 	}
+ 	
+-}
+\ No newline at end of file
++}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libpgplot-perl.git



More information about the Pkg-perl-cvs-commits mailing list