From 17ec63b20bb0b9e211737fc2348e7c2d0740ee5f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 17 Jun 2004 10:27:33 +0000 Subject: [PATCH] Clifford Wolf: Fixed 'head -1' in tibit/dpkg package. [2004052110370015247] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3235 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/tibit/dpkg/head1.patch | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 package/tibit/dpkg/head1.patch diff --git a/package/tibit/dpkg/head1.patch b/package/tibit/dpkg/head1.patch new file mode 100644 index 000000000..91afd25f0 --- /dev/null +++ b/package/tibit/dpkg/head1.patch @@ -0,0 +1,42 @@ +--- ./config.guess 2001-04-15 22:37:33.000000000 +0200 ++++ /tmp/tmp.kINzFP2545 2004-05-21 10:36:10.000000000 +0200 +@@ -314,7 +314,7 @@ + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + sun*:*:4.2BSD:*) +- UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` ++ UNAME_RELEASE=`(head -n 1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) +@@ -493,7 +493,7 @@ + fi + exit 0 ;; + *:AIX:*:[45]) +- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` ++ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -n 1 | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else +--- ./dselect/Makefile.in 2001-04-24 13:02:50.000000000 +0200 ++++ /tmp/tmp.SHaCDd2558 2004-05-21 10:36:11.000000000 +0200 +@@ -57,7 +57,7 @@ + + curkeys.h: keyoverride $(srcdir)/mkcurkeys.pl + cursesfile=`echo '#include ' | \ +- $(CC) -E - | grep 'curses.h' | head -1 | \ ++ $(CC) -E - | grep 'curses.h' | head -n 1 | \ + $(SED) -e 's/^[^"]*"//; s/".*$$//'`; \ + if [ "$$cursesfile" = "" ]; then echo "can't find curses file"; exit 1; fi; \ + perl $(srcdir)/mkcurkeys.pl $< $$cursesfile > $@ +--- ./methods/disk.setup 2000-12-24 09:41:48.000000000 +0100 ++++ /tmp/tmp.fKYzOF2566 2004-05-21 10:36:11.000000000 +0200 +@@ -422,7 +422,7 @@ + fi + + if ! ( find "$mountpoint$2/" -follow -name '*.deb' -print \ +- | head -1 ) 2>/dev/null | grep . >/dev/null ++ | head -n 1 ) 2>/dev/null | grep . >/dev/null + then + echo "\`$2' does not contain any *.deb packages. Hmmpf." + return