Use rm -f in gnulib-tests (gnulib-tests-rm-f patch)
Resolves: rhbz#716330
This commit is contained in:
parent
21e97bf94c
commit
15eccb8131
112
grep-2.9-gnulib-tests-rm-f.patch
Normal file
112
grep-2.9-gnulib-tests-rm-f.patch
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
diff -up grep-2.9/gnulib-tests/test-update-copyright.sh.orig grep-2.9/gnulib-tests/test-update-copyright.sh
|
||||||
|
--- grep-2.9/gnulib-tests/test-update-copyright.sh.orig 2011-01-03 21:57:35.000000000 +0100
|
||||||
|
+++ grep-2.9/gnulib-tests/test-update-copyright.sh 2011-07-11 11:39:18.000000000 +0200
|
||||||
|
@@ -231,7 +231,7 @@ Copyright (C) 1990-2005, 2007-2009 Acme,
|
||||||
|
# Software Foundation, Inc.
|
||||||
|
EOF
|
||||||
|
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## -------------- ##
|
||||||
|
## Current year. ##
|
||||||
|
@@ -257,7 +257,7 @@ compare /dev/null $TMP-stderr || exit 1
|
||||||
|
compare - $TMP <<EOF || exit 1
|
||||||
|
'\" Copyright (C) 2006, $YEAR Free Software Foundation, Inc.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## ------------------ ##
|
||||||
|
## Surrounding text. ##
|
||||||
|
@@ -281,7 +281,7 @@ dnl Undisturbed text.
|
||||||
|
dnl Copyright (C) 1989, 2010 Free Software Foundation, Inc.
|
||||||
|
dnl Undisturbed text.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## --------------- ##
|
||||||
|
## Widest prefix. ##
|
||||||
|
@@ -310,7 +310,7 @@ compare - $TMP <<EOF || exit 1
|
||||||
|
#### Copyright (C) 1976-1988, 1999-2008, 2010-2011 Free Software
|
||||||
|
#### Foundation, Inc.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## ------------------- ##
|
||||||
|
## Prefix too large. ##
|
||||||
|
@@ -333,7 +333,7 @@ compare - $TMP <<EOF || exit 1
|
||||||
|
#### 1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
||||||
|
#### 2008 Free Software Foundation, Inc.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## ------------- ##
|
||||||
|
## Blank lines. ##
|
||||||
|
@@ -368,7 +368,7 @@ Copyright (C) 1976, 1977, 1978, 1979, 19
|
||||||
|
1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
||||||
|
2008 Free Software Foundation, Inc.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## -------------- ##
|
||||||
|
## Leading tabs. ##
|
||||||
|
@@ -397,7 +397,7 @@ compare - $TMP <<EOF || exit 1
|
||||||
|
Copyright (C) 1987-1988, 1991-2011 Free Software Foundation,
|
||||||
|
Inc.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## -------------------- ##
|
||||||
|
## Unusual whitespace. ##
|
||||||
|
@@ -427,7 +427,7 @@ compare - $TMP <<EOF || exit 1
|
||||||
|
# Copyright (C) 1987-1988, 1991-2011 Free Software
|
||||||
|
# Foundation, Inc.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## --------- ##
|
||||||
|
## DOS EOL. ##
|
||||||
|
@@ -449,7 +449,7 @@ Rem 1998, 1999, 2000, 2001, 2002, 2003,
|
||||||
|
Rem 2009, 2010 Free Software Foundation, Inc.@
|
||||||
|
EOF
|
||||||
|
compare $TMP-exp $TMP || exit 1
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## --------------- ##
|
||||||
|
## Omitted "(C)". ##
|
||||||
|
@@ -470,7 +470,7 @@ compare - $TMP <<EOF || exit 1
|
||||||
|
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
## ------------------ ##
|
||||||
|
## C-style comments. ##
|
||||||
|
@@ -532,6 +532,6 @@ compare - $TMP.extra-text-space <<EOF ||
|
||||||
|
Inc. ***
|
||||||
|
* End of comments. */
|
||||||
|
EOF
|
||||||
|
-rm $TMP*
|
||||||
|
+rm -f $TMP*
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
diff -up grep-2.9/gnulib-tests/test-version-etc.sh.orig grep-2.9/gnulib-tests/test-version-etc.sh
|
||||||
|
--- grep-2.9/gnulib-tests/test-version-etc.sh.orig 2011-01-03 21:57:35.000000000 +0100
|
||||||
|
+++ grep-2.9/gnulib-tests/test-version-etc.sh 2011-07-11 11:40:12.706055333 +0200
|
||||||
|
@@ -38,6 +38,6 @@ EOT
|
||||||
|
tr -d '\015' |
|
||||||
|
diff -c $TMP - || ERR=1
|
||||||
|
|
||||||
|
-rm $TMP
|
||||||
|
+rm -f $TMP
|
||||||
|
|
||||||
|
exit $ERR
|
@ -3,13 +3,14 @@
|
|||||||
Summary: Pattern matching utilities
|
Summary: Pattern matching utilities
|
||||||
Name: grep
|
Name: grep
|
||||||
Version: 2.9
|
Version: 2.9
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz
|
Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz
|
||||||
Source1: colorgrep.sh
|
Source1: colorgrep.sh
|
||||||
Source2: colorgrep.csh
|
Source2: colorgrep.csh
|
||||||
Source3: GREP_COLORS
|
Source3: GREP_COLORS
|
||||||
|
Patch1: grep-2.9-gnulib-tests-rm-f.patch
|
||||||
URL: http://www.gnu.org/software/grep/
|
URL: http://www.gnu.org/software/grep/
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
@ -26,6 +27,7 @@ GNU grep is needed by many scripts, so it shall be installed on every system.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1 -b .gnulib-tests-rm-f
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global BUILD_FLAGS $RPM_OPT_FLAGS
|
%global BUILD_FLAGS $RPM_OPT_FLAGS
|
||||||
@ -77,6 +79,10 @@ fi
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 11 2011 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9-3
|
||||||
|
- Use rm -f in gnulib-tests (gnulib-tests-rm-f patch)
|
||||||
|
Resolves: rhbz#716330
|
||||||
|
|
||||||
* Mon Jul 04 2011 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9-2
|
* Mon Jul 04 2011 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9-2
|
||||||
- Fixed build failure on ppc - long double forced to double on ppc
|
- Fixed build failure on ppc - long double forced to double on ppc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user