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

Jelle van der Waa jelle at archlinux.org
Tue Jan 14 09:45:59 UTC 2020


    Date: Tuesday, January 14, 2020 @ 09:45:59
  Author: jelle
Revision: 373457

Fix $date is undefined and fallback when S_D_E is not set

Modified:
  perl/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-14 07:16:13 UTC (rev 373456)
+++ PKGBUILD	2020-01-14 09:45:59 UTC (rev 373457)
@@ -175,14 +175,14 @@
     -Dlddlflags="-shared ${LDFLAGS}" -Dldflags="${LDFLAGS}" \
     -Dmyuname="archlinux" \
     -Dmyhostname="archlinux" \
-    -Dcf_time="`LC_ALL=C LANGUAGE=C $date -u -d@$SOURCE_DATE_EPOCH`"
+    -Dcf_time="`date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}"`"
   make
 }
 
 check() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  TEST_JOBS=$(echo "$MAKEFLAGS" | sed 's/.*-j\([0-9][0-9]*\).*/\1/') make test_harness
-#  make test
+#  TEST_JOBS=$(echo "$MAKEFLAGS" | sed 's/.*-j\([0-9][0-9]*\).*/\1/') make test_harness
+  make test
 }
 
 package() {



More information about the arch-commits mailing list