DejaGNU: Fix the default target found by `runtest'.

svn path=/nixpkgs/trunk/; revision=20744

+17
+2
pkgs/development/tools/misc/dejagnu/default.nix
··· 8 8 sha256 = "13841q6pfwd9d1sdw48yxdyb4xhiccii0mb0ilql627v43pyvyyh"; 9 9 }; 10 10 11 + patches = [ ./wrapped-runtest-program-name.patch ]; 12 + 11 13 buildInputs = [ expect makeWrapper ]; 12 14 13 15 # FIXME: Enable when the "spawn id" problem is fixed.
+15
pkgs/development/tools/misc/dejagnu/wrapped-runtest-program-name.patch
··· 1 + This patch gives `runtest' a `$0' that contains `runtest' instead 2 + of `.runtest-wrapped'. This is required because `runtest' checks 3 + what `$0' looks like to determine the target. 4 + 5 + --- dejagnu-1.4.4/runtest 2003-08-17 03:27:59.000000000 +0200 6 + +++ dejagnu-1.4.4/runtest 2010-03-18 15:57:58.000000000 +0100 7 + @@ -10,6 +10,7 @@ 8 + # Get the execution path to this script and the current directory. 9 + # 10 + mypath=${0-.} 11 + +mypath="`echo $mypath | sed -'es|\.runtest-wrapped|runtest|g'`" 12 + if expr ${mypath} : '.*/.*' > /dev/null 13 + then 14 + : 15 +