diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-14 02:22:19 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-14 02:22:56 -0500 |
commit | b1eb50599e4db7eb4501af75cbbfa22007081ea5 (patch) | |
tree | c94a34c882cc17adedd781e8c5f34349b2a62416 /system/grep | |
parent | b9e85bbdcf38547ef2ca4e5c2a6e6293bbcd2752 (diff) | |
download | packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.gz packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.bz2 packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.xz packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.zip |
The New Plan
all pkgs needed to bootstrap -> system
others -> user
Diffstat (limited to 'system/grep')
-rw-r--r-- | system/grep/APKBUILD | 52 | ||||
-rw-r--r-- | system/grep/fix-tests.patch | 23 |
2 files changed, 75 insertions, 0 deletions
diff --git a/system/grep/APKBUILD b/system/grep/APKBUILD new file mode 100644 index 000000000..fc9ed5baf --- /dev/null +++ b/system/grep/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=grep +pkgver=3.1 +pkgrel=2 +pkgdesc="Searches input files for lines containing a match to a specified pattern" +url="https://www.gnu.org/software/grep/grep.html" +arch="all" +license="GPL-3.0+" +makedepends="pcre-dev autoconf automake" +checkdepends="coreutils bash diffutils" +subpackages="$pkgname-doc" +source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz + fix-tests.patch" +builddir="$srcdir/$pkgname-$pkgver" +# for whatever reason, all the builders locked up in the testsuite. investigate later. +options="!check" + +prepare() { + default_prepare + sed -i '/test-localename$(EXEEXT)/d' \ + "$builddir"/gnulib-tests/Makefile.in +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --bindir=/bin \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-nls + make +} + +check() { + make -C "$builddir" check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true +} + +sha512sums="05494381c7dd8aad7e2ee4c17450de8d7b969a99dcfe17747db60df3475bf02d5323d091e896e8343e4f3251c29dc7f0b7a9f93c575c9d58ee2a57014c2c9d26 grep-3.1.tar.xz +9ba6b01c0c74933299afb469dadd2ea0c7e24befa34c691671a576063e32a1f0c735541e5e2bb0073d8afd814790909f7f895827aa8a2fbacdfcae380a7bcb11 fix-tests.patch" diff --git a/system/grep/fix-tests.patch b/system/grep/fix-tests.patch new file mode 100644 index 000000000..cb2945714 --- /dev/null +++ b/system/grep/fix-tests.patch @@ -0,0 +1,23 @@ +diff -upr grep-3.1.orig/tests/pcre-jitstack grep-3.1/tests/pcre-jitstack +--- grep-3.1.orig/tests/pcre-jitstack 2017-11-29 01:48:08.772121987 +0100 ++++ grep-3.1/tests/pcre-jitstack 2017-11-29 01:49:37.763570125 +0100 +@@ -25,7 +25,7 @@ foo=$( (echo foo | gzip | gzip -d) 2>/de + + fail=0 + +-b64_decode >pcrejit.txt.gz <<'EOF' || framework_failure_ ++cat <<EOF + H4sIAAAAAAACA+2bUU4DMQxE/7mMz5T7XwKE+IBKVLue58yk0B9EtX6xJxN7t4VaH69a6+tHrW+/ + r4e3n75KARWShSOFTtiumE3FPVyo79ATIJ0Ry0No/yXe99UIUqTGKKUzYHFJHJoaCONQDCnDSCDS + IPAvGCVeXNsZ7lpbWFfdaZtgPos5LeK2C1TBKzD09V3HFlCOsbFT/hNbz4HzJaRjnjdam9FXw/o6 +@@ -36,7 +36,9 @@ uSHRnTkzIdZMmZ5kYX/iJFtTwu9cFvr3aDWcUx4p + dkcKkYUglER2Q4L4gnmOiNGzSBATwGQgwihs5/QffIhyfg4hJvM2r4Rp6L+1ibCCd4jYZ6jCiBlc + 2+y4fl4yTGIwcWXNAUEeXmu8iCMV96DNTnmRNICDk2N5qaXGbsF91OX/0hlcYTjrMfy02p9Xv70D + mv3RZCFOAAA= +-EOF ++EOF > pcrejit.tmp.txt ++ ++b64_decode < pcrejit.tmp.txt > pcrejit.txt.gz || framework_failure_ + + gzip -d pcrejit.txt || framework_failure_ + |