summaryrefslogtreecommitdiff
path: root/modules/ACE/debian/patches/91-patch-dg-basedir.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ACE/debian/patches/91-patch-dg-basedir.dpatch')
-rw-r--r--modules/ACE/debian/patches/91-patch-dg-basedir.dpatch24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/ACE/debian/patches/91-patch-dg-basedir.dpatch b/modules/ACE/debian/patches/91-patch-dg-basedir.dpatch
new file mode 100644
index 00000000000..0703e3e6a38
--- /dev/null
+++ b/modules/ACE/debian/patches/91-patch-dg-basedir.dpatch
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 91-patch-dg-basedir.dpatch by Thomas Girard <thomas.g.girard@free.fr>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix path to DependencyGenerator.
+
+@DPATCH@
+--- ACE_wrappers.orig/bin/depgen.pl
++++ ACE_wrappers/bin/depgen.pl
+@@ -19,12 +19,8 @@
+ use File::Spec;
+ use File::Basename;
+
+-my($basePath) = $FindBin::RealBin;
+-if ($^O eq 'VMS') {
+- $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
+- $basePath = VMS::Filespec::unixify($basePath);
+-}
+-unshift(@INC, $basePath . '/DependencyGenerator');
++my($basePath) = '/usr/share/ace/bin/DependencyGenerator';
++unshift(@INC, $basePath);
+
+ require DependencyEditor;
+