[arch-commits] Commit in ksh/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Sun Sep 15 22:47:16 UTC 2019


    Date: Sunday, September 15, 2019 @ 22:47:16
  Author: eschwartz
Revision: 510802

upgpkg: ksh 2020.0.0beta1-1

- upstream release: we are now moved from alpha to beta
- backport a couple fixes for testsuite errors/flakiness
- add a couple new checkdepends, also "which" (this might be deliberately
  uninstalled as it is on my live system, due to the fact that this is horribly
  inferior to POSIX command -v and I don't believe it should be installed by
  default anywhere ever)
- make meson test print failing errorlogs instead of just logging them; it's
  annoying to have to keep chrooting in and inspecting logs to see what
  happened

Modified:
  ksh/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++--------
 1 file changed, 25 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-15 22:37:02 UTC (rev 510801)
+++ PKGBUILD	2019-09-15 22:47:16 UTC (rev 510802)
@@ -1,7 +1,7 @@
 # Maintainer: Eli Schwartz <eschwartz at archlinux.org>
 
 pkgname=ksh
-_pkgver=2020.0.0-alpha1
+_pkgver=2020.0.0-beta1
 pkgver=${_pkgver//-/}
 pkgrel=1
 pkgdesc="The Original AT&T Korn Shell"
@@ -9,18 +9,35 @@
 url="http://kornshell.org/"
 license=('EPL')
 makedepends=('meson' 'samurai')
-checkdepends=('ed' 'vi' 'expect' 'openbsd-netcat')
+checkdepends=('ed' 'expect' 'openbsd-netcat' 'procps-ng' 'which' 'vi')
 provides=('ksh93')
 install=ksh.install
-source=("https://github.com/att/ast/releases/download/${_pkgver}/ksh-${_pkgver}.tar.xz"{,.asc})
-sha256sums=('f383f375902557561340372eca0d3fd5076d310de563e18271e406e7f42ff25b'
-            'SKIP')
-b2sums=('a6e030bdcde2561b97cb25e7914413f6133c49795be36ee57704f996a5592c0b05e21e4bf71b2abfeccd7107033a207bf62ba1b3919ebaaef113c1a9b91a87ec'
-        'SKIP')
+source=("https://github.com/att/ast/releases/download/${_pkgver}/ksh-${_pkgver}.tar.xz"{,.asc}
+        "https://github.com/att/ast/commit/d89753b5d38482f4a3f17ba3b7d09ab07cfe7419.patch"
+        "https://github.com/att/ast/commit/44463c0255b7e80d3ace9a0a27e543f2232ca409.patch")
+sha256sums=('ebcc55b352d40e1c5329615224d1b76c7b9f7755d07e0b828a6db02ac9c77f52'
+            'SKIP'
+            '8d10ac086727ef9d1b967e2e973be29792e9a4a8c5f915087aa3a2c44d87403f'
+            'e99e2ca533c61005e3dd7947dfcdccef9c70719a109cb2474997105453846870')
+b2sums=('9d45b6ecdb182363156bd33a984addfae8281a6498beb675456700e4ce5aea346f7720e033b8e83b6f0832b020b502cce6f8407400de1ec4b4232f7d9323f615'
+        'SKIP'
+        'bcf521012bb197d234b119dc56ddc068f8ec3e46b6f4c6d82e1043629368bfcabd1a5d360bae702777e5b01914ac70c9edbdce5ee0bba7e9f69916a3c38b1820'
+        '9409982ecb7f2d0c4748debcd211b6879bea26e4b1f9c90e6d9e620fcde5d3b8a9d02b034813bea7cb2298a136e911dfcf3f6f303b4fd1f1a5e6c16e0a758f3a')
 validpgpkeys=('4BF045ACC726FE4E9DFC1D7762213CE2D3CB82EA') # Siteshwar Vashisht <svashisht at redhat.com>
 
 export NINJA=/usr/bin/samu
 
+prepare() {
+    cd "${srcdir}"/ksh-${_pkgver}
+
+    # ignore test error on non-debug builds: https://github.com/att/ast/issues/1390
+    patch -p1 -i ../d89753b5d38482f4a3f17ba3b7d09ab07cfe7419.patch
+    # be less flaky inside systemd-nspawn containers with seccomp:
+    # https://github.com/att/ast/issues/1398
+    patch -p1 -i ../44463c0255b7e80d3ace9a0a27e543f2232ca409.patch
+
+}
+
 build() {
     mkdir -p "${srcdir}"/ksh-${_pkgver}/build
     cd "${srcdir}"/ksh-${_pkgver}/build
@@ -35,7 +52,7 @@
     cd "${srcdir}"/ksh-${_pkgver}/build
 
     # a couple tests are flaky and may time out
-    meson test -t 3
+    meson test -t 3 --print-errorlogs
 }
 
 package() {



More information about the arch-commits mailing list