summary refs log tree commit diff
path: root/pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-04-22 21:44:33 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-04-22 21:44:33 +0000
commit6f2fac6466cbc684f01093364e60bb96b79c120f (patch)
tree2b0ee90e26a0d6ed8a081351299a66daf35ef9f9 /pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch
parent6d62947d71342aa29441a720d4eeb2f003126c76 (diff)
parent93d2b4b7bfe5c78e36c93f94a0c057cde04b580f (diff)
downloadnixpkgs-6f2fac6466cbc684f01093364e60bb96b79c120f.tar
nixpkgs-6f2fac6466cbc684f01093364e60bb96b79c120f.tar.gz
nixpkgs-6f2fac6466cbc684f01093364e60bb96b79c120f.tar.bz2
nixpkgs-6f2fac6466cbc684f01093364e60bb96b79c120f.tar.lz
nixpkgs-6f2fac6466cbc684f01093364e60bb96b79c120f.tar.xz
nixpkgs-6f2fac6466cbc684f01093364e60bb96b79c120f.tar.zst
nixpkgs-6f2fac6466cbc684f01093364e60bb96b79c120f.zip
Merging from trunk.
I hope I resolved the conflicts well (gmp and gccCross)


svn path=/nixpkgs/branches/stdenv-updates/; revision=21251
Diffstat (limited to 'pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch')
-rw-r--r--pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch b/pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch
new file mode 100644
index 00000000000..d745bc65cbb
--- /dev/null
+++ b/pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch
@@ -0,0 +1,15 @@
+This patch gives `runtest' a `$0' that contains `runtest' instead
+of `.runtest-wrapped'.  This is required because `runtest' checks
+what `$0' looks like to determine the target.
+
+--- dejagnu-1.4.4/runtest	2003-08-17 03:27:59.000000000 +0200
++++ dejagnu-1.4.4/runtest	2010-03-18 15:57:58.000000000 +0100
+@@ -10,6 +10,7 @@
+ # Get the execution path to this script and the current directory.
+ #
+ mypath=${0-.}
++mypath="`echo $mypath | sed -'es|\.runtest-wrapped|runtest|g'`"
+ if expr ${mypath} : '.*/.*' > /dev/null
+ then
+     :
+