fixed search runtest.exp after usrmove

Resolves: #788811
This commit is contained in:
Honza Horák 2012-03-15 14:10:42 +01:00
parent f1b264d35e
commit bcb4340d16
2 changed files with 19 additions and 1 deletions

12
dejagnu-1.5-usrmove.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up dejagnu-1.5/runtest.usrmove dejagnu-1.5/runtest
--- dejagnu-1.5/runtest.usrmove 2012-02-24 13:03:17.145409711 +0100
+++ dejagnu-1.5/runtest 2012-02-24 13:04:32.068473042 +0100
@@ -109,7 +109,7 @@ fi
#
# .. which is a very weak assumption
-for i in `echo ${execpath} | sed -e 's@/[^/]*$@/share/dejagnu@'` `echo ${execpath} | sed -e 's@/[^/]*/[^/]*$@/share/dejagnu@'` $execpath ; do
+for i in `echo ${execpath} | sed -e 's@/[^/]*$@/share/dejagnu@'` `echo ${execpath} | sed -e 's@/[^/]*/[^/]*$@/share/dejagnu@'` $execpath '/usr/share/dejagnu' '/usr/local/share/dejagnu' ; do
if expr $verbose \> 1 > /dev/null ; then
echo Looking for $i/runtest.exp.
fi

View File

@ -1,7 +1,7 @@
Summary: A front end for testing other programs
Name: dejagnu
Version: 1.5
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 1
License: GPLv3+
Source: ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz
@ -14,6 +14,7 @@ BuildArch: noarch
BuildRequires: expect screen texinfo
Patch1: dejagnu-1.5-smp-1.patch
Patch2: dejagnu-1.5-runtest.patch
Patch3: dejagnu-1.5-usrmove.patch
%description
DejaGnu is an Expect/Tcl based framework for testing other programs.
@ -27,6 +28,7 @@ into software development).
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%configure -v
@ -77,6 +79,10 @@ rm -rf $RPM_BUILD_ROOT
%{_infodir}/dejagnu*
%changelog
* Thu Mar 15 2012 Honza Horak <hhorak@redhat.com> 1:1.5-3
- fixed search runtest.exp after usrmove
Resolves: #788811
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild