diff options
-rw-r--r-- | user/checkbashisms/APKBUILD | 43 | ||||
-rw-r--r-- | user/clang/APKBUILD | 3 | ||||
-rw-r--r-- | user/shunit2/APKBUILD | 33 | ||||
-rw-r--r-- | user/shunit2/dash-negative-lineno.patch | 197 | ||||
-rw-r--r-- | user/xf86-video-ati/APKBUILD | 6 | ||||
-rw-r--r-- | user/xorriso/APKBUILD | 4 |
6 files changed, 280 insertions, 6 deletions
diff --git a/user/checkbashisms/APKBUILD b/user/checkbashisms/APKBUILD new file mode 100644 index 000000000..c85d7cc54 --- /dev/null +++ b/user/checkbashisms/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Max Rees <maxcrees@me.com> +pkgname=checkbashisms +pkgver=2.18.4 +pkgrel=0 +pkgdesc="Check shell scripts for POSIX compliance" +url="https://tracker.debian.org/pkg/devscripts" +arch="noarch" +license="GPL-2.0+" +makedepends="" +depends="perl" +checkdepends="shunit2" +subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" +source="http://cdn.debian.net/debian/pool/main/d/devscripts/devscripts_$pkgver.tar.xz" +builddir="$srcdir/devscripts-$pkgver" + +prepare() { + default_prepare + sed -i "s/###VERSION###/$pkgver/" "scripts/$pkgname.pl" +} + +check() { + cd "$builddir" + ./test/test_checkbashisms +} + +package() { + cd "$builddir" + install -Dm755 "scripts/$pkgname.pl" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "scripts/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1" +} + +bashcomp() { + pkgdesc="Bash completions for $pkgname" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + cd "$builddir" + install -Dm644 "scripts/$pkgname.bash_completion" \ + "$subpkgdir/usr/share/bash-completion/completions/$pkgname" +} + +sha512sums="91a0ab2fa1f8d884d79f62d5cc8170c885c24af51de321a41f2111fe0fbc0fd8394e5fb3825eeee14d8090968be35761080a40cb55339b09522219d974f63897 devscripts_2.18.4.tar.xz" diff --git a/user/clang/APKBUILD b/user/clang/APKBUILD index 8bcb9c2dd..826ca3373 100644 --- a/user/clang/APKBUILD +++ b/user/clang/APKBUILD @@ -50,7 +50,7 @@ build() { check() { cd "$builddir"/build - ln -s /usr/bin/lit bin/llvm-lit + [ -f bin/llvm-lit ] || ln -s /usr/bin/lit bin/llvm-lit make check-clang } @@ -66,6 +66,7 @@ static() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ + strip -d "$subpkgdir"/usr/lib/*.a } analyzer() { diff --git a/user/shunit2/APKBUILD b/user/shunit2/APKBUILD new file mode 100644 index 000000000..8a110ff6d --- /dev/null +++ b/user/shunit2/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Max Rees <maxcrees@me.com> +# Maintainer: Max Rees <maxcrees@me.com> +pkgname=shunit2 +pkgver=2.1.7 +pkgrel=0 +pkgdesc="xUnit-based unit test framework for Bourne shell scripts" +url="https://github.com/kward/shunit2" +arch="noarch" +license="Apache-2.0" +depends="/bin/sh" +makedepends="" +checkdepends="debianutils-which bash dash zsh" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/kward/shunit2/archive/v$pkgver.tar.gz + dash-negative-lineno.patch" + +build() { + cd "$builddir" +} + +check() { + cd "$builddir" + ./test_runner +} + +package() { + cd "$builddir" + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "doc/$pkgname.txt" "$pkgdir/usr/share/doc/$pkgname/$pkgname.rst" +} + +sha512sums="35453cf2c469eb1bab2fff0624b8037a09d405c377fec0938875a6339749d5934fe246eec5691a121290ae9e4ee5cbf7768b740c5f0010a5345c4e111c50fbbd shunit2-2.1.7.tar.gz +af2d3c65e9f3c86796b12832c403a869767b70da819f3cf6f69f0e2cf8445e85ec63db20c4b39430e35b7c2105e439abf6bbbd3fc3d880d23ee11d54339c61fd dash-negative-lineno.patch" diff --git a/user/shunit2/dash-negative-lineno.patch b/user/shunit2/dash-negative-lineno.patch new file mode 100644 index 000000000..2508be856 --- /dev/null +++ b/user/shunit2/dash-negative-lineno.patch @@ -0,0 +1,197 @@ +dash reports a negative $LINENO when using shunit2's macros - this isn't +shunit2's fault, so allow for it in the test cases + +--- shunit2-2.1.7/shunit2_macros_test.sh ++++ shunit2-2.1.7/shunit2_macros_test.sh +@@ -27,13 +27,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_EQUALS_} 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_EQUALS_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_EQUALS_} '"some msg"' 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_EQUALS_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -44,13 +44,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_NOT_EQUALS_} 'x' 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NOT_EQUALS_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_NOT_EQUALS_} '"some msg"' 'x' 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NOT_EQUALS_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -61,13 +61,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_SAME_} 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_SAME_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_SAME_} '"some msg"' 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_SAME_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -78,13 +78,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_NOT_SAME_} 'x' 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NOT_SAME_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_NOT_SAME_} '"some msg"' 'x' 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NOT_SAME_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -95,13 +95,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_NULL_} 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NULL_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_NULL_} '"some msg"' 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NULL_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -113,13 +113,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_NOT_NULL_} '' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NOT_NULL_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_NOT_NULL_} '"some msg"' '""' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_NOT_NULL_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stdoutF}" "${stderrF}" >&2 +@@ -130,13 +130,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_TRUE_} "${SHUNIT_FALSE}" >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_TRUE_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_TRUE_} '"some msg"' "${SHUNIT_FALSE}" >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_TRUE_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -147,13 +147,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_ASSERT_FALSE_} "${SHUNIT_TRUE}" >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_FALSE_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_ASSERT_FALSE_} '"some msg"' "${SHUNIT_TRUE}" >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_ASSERT_FALSE_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -164,13 +164,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_FAIL_} >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_FAIL_} '"some msg"' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -182,13 +182,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_FAIL_NOT_EQUALS_} 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_NOT_EQUALS_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_FAIL_NOT_EQUALS_} '"some msg"' 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_NOT_EQUALS_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -199,13 +199,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_FAIL_SAME_} 'x' 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_SAME_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_FAIL_SAME_} '"some msg"' 'x' 'x' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_SAME_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 +@@ -216,13 +216,13 @@ + [ -z "${LINENO:-}" ] && startSkipping + + ( ${_FAIL_NOT_SAME_} 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_NOT_SAME_ failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 + + ( ${_FAIL_NOT_SAME_} '"some msg"' 'x' 'y' >"${stdoutF}" 2>"${stderrF}" ) +- grep '^ASSERT:\[[0-9]*\] *' "${stdoutF}" >/dev/null ++ grep '^ASSERT:\[[0-9-]*\] *' "${stdoutF}" >/dev/null + rtrn=$? + assertTrue '_FAIL_NOT_SAME_ w/ msg failure' ${rtrn} + [ "${rtrn}" -ne "${SHUNIT_TRUE}" ] && cat "${stderrF}" >&2 diff --git a/user/xf86-video-ati/APKBUILD b/user/xf86-video-ati/APKBUILD index e5fd1de9a..647ae8776 100644 --- a/user/xf86-video-ati/APKBUILD +++ b/user/xf86-video-ati/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=xf86-video-ati -pkgver=18.0.1 -pkgrel=1 +pkgver=18.1.0 +pkgrel=0 pkgdesc="ATI video driver for X11" url="https://www.X.Org/" arch="all" @@ -31,4 +31,4 @@ package() { install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } -sha512sums="b468a78503a596bbf71a1b91b231ce1fa32908f619ff2dfe249352d046696a3641f2a9ff065e32545fff77100134b4b237591215e78ef885b6509d6b16112d14 xf86-video-ati-18.0.1.tar.bz2" +sha512sums="7a58c9a6cb4876bd2ff37d837372b4e360e81fec7de6a6c7a48d70a5338d62745f734f5d4207f30aa368ff2d9ef44f5f1ef36afd73802a618998c16fe395ed53 xf86-video-ati-18.1.0.tar.bz2" diff --git a/user/xorriso/APKBUILD b/user/xorriso/APKBUILD index 7e79453c6..ebaff2e24 100644 --- a/user/xorriso/APKBUILD +++ b/user/xorriso/APKBUILD @@ -1,7 +1,7 @@ # Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=xorriso -pkgver=1.4.9 +pkgver=1.5.0 pkgrel=0 pkgdesc="ISO 9660 Rock Ridge filesystem manipulator" url="https://www.gnu.org/software/xorriso/" @@ -34,4 +34,4 @@ package() { make DESTDIR="$pkgdir" install } -sha512sums="ca22e40f56e7ab61a6f4ac4a8d4189f68cce427a10d63e3b26af88b64bbd1c76ec6e3fa21818b7c2b6de5ce482caccc8b9de0fc16d8bfd7c9681fccfc8c8dd83 xorriso-1.4.9.tar.gz" +sha512sums="39d74cff30532fba8ac3851245802323babbd2877129ab5bb14d0cab830ee3f2f678f41d922f3c12cb2c642f66f22006bc4ca457e6c1f766f3d1dbce37d29d31 xorriso-1.5.0.tar.gz" |