aboutsummaryrefslogtreecommitdiff
path: root/archivers/dpkg/files/patch-scripts_dpkg-checkbuilddeps.pl
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/dpkg/files/patch-scripts_dpkg-checkbuilddeps.pl')
-rw-r--r--archivers/dpkg/files/patch-scripts_dpkg-checkbuilddeps.pl21
1 files changed, 21 insertions, 0 deletions
diff --git a/archivers/dpkg/files/patch-scripts_dpkg-checkbuilddeps.pl b/archivers/dpkg/files/patch-scripts_dpkg-checkbuilddeps.pl
new file mode 100644
index 000000000000..8eb20c1bfe99
--- /dev/null
+++ b/archivers/dpkg/files/patch-scripts_dpkg-checkbuilddeps.pl
@@ -0,0 +1,21 @@
+--- scripts/dpkg-checkbuilddeps.pl.orig Sun Jun 18 18:22:03 2006
++++ scripts/dpkg-checkbuilddeps.pl Fri Nov 10 16:23:44 2006
+@@ -4,7 +4,8 @@
+ #use strict;
+ use Getopt::Long;
+
+-my $dpkglibdir="/usr/lib/dpkg";
++my $dpkglibdir="/usr/lib/dpkg"; # This line modified by Makefile
++my $admindir="/var/lib/dpkg"; # This line modified by Makefile
+ push(@INC,$dpkglibdir);
+ #my $controlfile;
+ require 'controllib.pl';
+@@ -79,7 +80,7 @@
+ # thanks to Matt Zimmerman. Returns two hash references that
+ # are exactly what the other functions need...
+ sub parse_status {
+- my $status=shift || "/var/lib/dpkg/status";
++ my $status=shift || "$admindir/status";
+
+ my %providers;
+ my %version;