summaryrefslogtreecommitdiff
path: root/debian/patches/debian/prune_libs.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/debian/prune_libs.diff')
-rw-r--r--debian/patches/debian/prune_libs.diff42
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/debian/prune_libs.diff b/debian/patches/debian/prune_libs.diff
new file mode 100644
index 0000000..2ef92a2
--- /dev/null
+++ b/debian/patches/debian/prune_libs.diff
@@ -0,0 +1,42 @@
+From: Brendan O'Dea <bod@debian.org>
+Date: Fri, 18 Mar 2005 22:22:25 +1100
+Subject: Prune the list of libraries wanted to what we actually need.
+
+Bug-Debian: http://bugs.debian.org/128355
+
+We want to keep the dependencies on perl-base as small as possible,
+and some of the original list may be present on buildds (see Bug#128355).
+
+(Backported to metaconfig unit probes by Niko Tyni)
+---
+ regen-configure/U/modified/Myinit.U | 3 +--
+ regen-configure/U/perl/End.U | 2 +-
+ 2 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/regen-configure/U/modified/Myinit.U b/regen-configure/U/modified/Myinit.U
+index 0e3155a..e1d58c2 100644
+--- a/regen-configure/U/modified/Myinit.U
++++ b/regen-configure/U/modified/Myinit.U
+@@ -32,8 +32,7 @@
+ ?X: Put crypt here, even though I should really fix d_crypt.U to look
+ ?X: for it correctly, including possible shared library versions.
+ : If anyone needs extra -lxxx, put those in a hint file.
+-libswanted="cl pthread socket bind inet nsl ndbm gdbm dbm db malloc dl ld"
+-libswanted="$libswanted sun m crypt sec util c cposix posix ucb bsd BSD"
++libswanted='gdbm gdbm_compat db dl m c crypt'
+ : We probably want to search /usr/shlib before most other libraries.
+ : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist.
+ glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'`
+diff --git a/regen-configure/U/perl/End.U b/regen-configure/U/perl/End.U
+index 3520714..9716623 100644
+--- a/regen-configure/U/perl/End.U
++++ b/regen-configure/U/perl/End.U
+@@ -37,7 +37,7 @@ sunos*X4*)
+ ;;
+ *) case "$usedl" in
+ $define|true|[yY]*)
+- set X `echo " $libs " | sed -e 's@ -lndbm @ @' -e 's@ -lgdbm @ @' -e 's@ -lgdbm_compat @ @' -e 's@ -ldbm @ @' -e 's@ -ldb @ @'`
++ set X `echo " $libs " | sed -e 's@ -lgdbm @ @' -e 's@ -lgdbm_compat @ @' -e 's@ -ldb @ @'`
+ shift
+ perllibs="$*"
+ ;;