diff --git a/frysk-0.4-bash-dollar-star.patch b/frysk-0.4-bash-dollar-star.patch new file mode 100644 index 0000000..b2cfcdd --- /dev/null +++ b/frysk-0.4-bash-dollar-star.patch @@ -0,0 +1,19 @@ +--- frysk-0.4/common/Makefile.gen.sh.orig 2008-06-09 14:03:07.000000000 -0400 ++++ frysk-0.4/common/Makefile.gen.sh 2009-02-09 07:56:30.000000000 -0500 +@@ -191,8 +191,14 @@ + fi + else + local variable=variable_${name}_set +- eval $variable=\'$name $op "$*"\' +- echo "$name" = "$@" ++ # bash 4 gets an error when "$*" is empty ++ if [ $# -eq 0 ] ; then ++ eval $variable=\'$name $op\' ++ echo "$name" = ++ else ++ eval $variable=\'$name $op "$*"\' ++ echo "$name" = "$@" ++ fi + fi + } + diff --git a/frysk.spec b/frysk.spec index d1309de..736c554 100644 --- a/frysk.spec +++ b/frysk.spec @@ -1,7 +1,7 @@ Summary: Execution analysis and debugging tool-suite. Name: frysk Version: 0.4 -Release: 5%{?dist} +Release: 6%{?dist} # antlrv2 is Public Domain; antlrv3 is BSD. # getopt is GPLv2 with exception @@ -15,7 +15,7 @@ License: GPLv2 with exceptions and BSD and CPL and Public Domain Group: Development/System URL: http://sourceware.org/frysk Source: ftp://sourceware.org/pub/frysk/%{name}-%{version}.tar.bz2 - +Patch1: frysk-0.4-bash-dollar-star.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) @@ -106,6 +106,7 @@ This package contains the GNOME front end for Frysk. %setup -q -n %{name}-%{version} pwd +%patch1 -p1 ./bootstrap.sh %build @@ -268,6 +269,10 @@ rm -rf %{buildroot} %{_mandir}/man1/frysk.1.gz %changelog +* Sun Feb 08 2009 Andrew Cagney - 0.4-6 +- Add frysk-0.4-batch-dollar-star.patch; avoid empty "$*" and "$@" in + shell scripts (bash bug?). + * Sun Feb 08 2009 Alex Lancaster - 0.4-5 - Rebuild for new GCC 4.4 to fix broken deps