drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/gawkapi.h
drwxr-xr-x root/root usr/lib/
-drwxr-xr-x root/root usr/lib/awk/
--rwxr-xr-x root/root usr/lib/awk/grcat
--rwxr-xr-x root/root usr/lib/awk/pwcat
drwxr-xr-x root/root usr/lib/gawk/
-rwxr-xr-x root/root usr/lib/gawk/filefuncs.so
-rwxr-xr-x root/root usr/lib/gawk/fnmatch.so
-rwxr-xr-x root/root usr/lib/gawk/rwarray.so
-rwxr-xr-x root/root usr/lib/gawk/testext.so
-rwxr-xr-x root/root usr/lib/gawk/time.so
-drwxr-xr-x root/root usr/man/
-drwxr-xr-x root/root usr/man/man1/
--rw-r--r-- root/root usr/man/man1/gawk.1.gz
--rw-r--r-- root/root usr/man/man1/igawk.1.gz
-drwxr-xr-x root/root usr/man/man3/
--rw-r--r-- root/root usr/man/man3/filefuncs.3am.gz
--rw-r--r-- root/root usr/man/man3/fnmatch.3am.gz
--rw-r--r-- root/root usr/man/man3/fork.3am.gz
--rw-r--r-- root/root usr/man/man3/inplace.3am.gz
--rw-r--r-- root/root usr/man/man3/ordchr.3am.gz
--rw-r--r-- root/root usr/man/man3/readdir.3am.gz
--rw-r--r-- root/root usr/man/man3/readfile.3am.gz
--rw-r--r-- root/root usr/man/man3/revoutput.3am.gz
--rw-r--r-- root/root usr/man/man3/revtwoway.3am.gz
--rw-r--r-- root/root usr/man/man3/rwarray.3am.gz
--rw-r--r-- root/root usr/man/man3/time.3am.gz
+drwxr-xr-x root/root usr/libexec/
+drwxr-xr-x root/root usr/libexec/awk/
+-rwxr-xr-x root/root usr/libexec/awk/grcat
+-rwxr-xr-x root/root usr/libexec/awk/pwcat
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/awk/
-rw-r--r-- root/root usr/share/awk/assert.awk
-rw-r--r-- root/root usr/share/awk/noassign.awk
-rw-r--r-- root/root usr/share/awk/ord.awk
-rw-r--r-- root/root usr/share/awk/passwd.awk
+-rw-r--r-- root/root usr/share/awk/processarray.awk
-rw-r--r-- root/root usr/share/awk/quicksort.awk
-rw-r--r-- root/root usr/share/awk/readable.awk
-rw-r--r-- root/root usr/share/awk/readfile.awk
-rw-r--r-- root/root usr/share/awk/rewind.awk
-rw-r--r-- root/root usr/share/awk/round.awk
+-rw-r--r-- root/root usr/share/awk/shellquote.awk
-rw-r--r-- root/root usr/share/awk/strtonum.awk
-rw-r--r-- root/root usr/share/awk/walkarray.awk
-rw-r--r-- root/root usr/share/awk/zerofile.awk
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/gawk.1.gz
+-rw-r--r-- root/root usr/share/man/man1/igawk.1.gz
+drwxr-xr-x root/root usr/share/man/man3/
+-rw-r--r-- root/root usr/share/man/man3/filefuncs.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/fnmatch.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/fork.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/inplace.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/ordchr.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/readdir.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/readfile.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/revoutput.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/revtwoway.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/rwarray.3am.gz
+-rw-r--r-- root/root usr/share/man/man3/time.3am.gz
-# Description: A pattern scanning and processing language
+#1 Description: A pattern scanning and processing language
# URL: http://www.gnu.org/software/gawk/gawk.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
-# Depends on:
+# Depends on: readline libmpfr
name=gawk
-version=4.1.1
+version=4.1.3
release=2
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz pipe.patch)
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
- patch -p1 -i $SRC/pipe.patch
+
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
- --libexecdir=/usr/lib \
- --mandir=/usr/man \
- --enable-switch \
--disable-nls
make
rm -r $PKG/usr/share/info
rm $PKG/usr/bin/gawk-$version
- rm $PKG/usr/lib/gawk/*.la
}
+++ /dev/null
-diff --git a/io.c b/io.c
-index a6e786f..2bb8f28 100644
---- a/io.c
-+++ b/io.c
-@@ -2078,6 +2078,7 @@ use_pipes:
- || close(ctop[0]) == -1 || close(ctop[1]) == -1)
- fatal(_("close of pipe failed (%s)"), strerror(errno));
- /* stderr does NOT get dup'ed onto child's stdout */
-+ signal(SIGPIPE, SIG_DFL);
- execl("/bin/sh", "sh", "-c", str, NULL);
- _exit(errno == ENOENT ? 127 : 126);
- }
-@@ -2271,6 +2272,7 @@ gawk_popen(const char *cmd, struct redirect *rp)
- fatal(_("moving pipe to stdout in child failed (dup: %s)"), strerror(errno));
- if (close(p[0]) == -1 || close(p[1]) == -1)
- fatal(_("close of pipe failed (%s)"), strerror(errno));
-+ signal(SIGPIPE, SIG_DFL);
- execl("/bin/sh", "sh", "-c", cmd, NULL);
- _exit(errno == ENOENT ? 127 : 126);
- }