summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ed03666)
raw | patch | inline | side by side (parent: ed03666)
author | Alexander Wirt <formorer@formorer.de> | |
Sun, 10 Feb 2008 14:35:27 +0000 (15:35 +0100) | ||
committer | Alexander Wirt <formorer@lisa.springfield.lan> | |
Sun, 10 Feb 2008 14:35:27 +0000 (15:35 +0100) |
debian/patches/no-rpath-for-perl | [new file with mode: 0644] | patch | blob |
debian/patches/series | patch | blob | history |
diff --git a/debian/patches/no-rpath-for-perl b/debian/patches/no-rpath-for-perl
--- /dev/null
@@ -0,0 +1,31 @@
+Index: pkg-rrdtool/bindings/perl-shared/Makefile.PL
+===================================================================
+--- pkg-rrdtool.orig/bindings/perl-shared/Makefile.PL 2008-02-10 15:31:58.000000000 +0100
++++ pkg-rrdtool/bindings/perl-shared/Makefile.PL 2008-02-10 15:34:16.000000000 +0100
+@@ -3,26 +3,7 @@
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
+ # the contents of the Makefile that is written.
+
+-# if the last argument when calling Makefile.PL is RPATH=/... and ... is the
+-# path to librrd.so then the Makefile will be written such that RRDs.so knows
+-# where to find librrd.so later on ...
+ my $R="";
+-if ($ARGV[-1] =~ /RPATH=(\S+)/){
+- pop @ARGV;
+- my $rp = $1;
+- for ($^O){
+- /linux/ && do{ $R = "-Wl,--rpath -Wl,$rp"};
+- /hpux/ && do{ $R = "+b$rp"};
+- /solaris/ && do{ $R = "-R$rp"};
+- /aix/ && do{ $R = "-Wl,-blibpath:$rp"};
+- }
+-}
+-
+-# darwin works without this because librrd contains its
+-# install_name which will includes the final location of the
+-# library after it is installed. This install_name gets transfered
+-# to the perl shared object.
+-
+ my $librrd = "-L../../src/.libs/ $R -lrrd";
+
+ WriteMakefile(
diff --git a/debian/patches/series b/debian/patches/series
index 770c8456d9450e7812d292a6f54e6f411fa3902e..c99854f19e7e4033c366ace62e099a6e0d070547 100644 (file)
--- a/debian/patches/series
+++ b/debian/patches/series
setup.py-module-name
no-rpath-for-ruby
+no-rpath-for-perl