From c86cb7fae1207544633b994fc9b0b3e380081d64 Mon Sep 17 00:00:00 2001 From: Anthony Iliopoulos Date: Sat, 25 Sep 2021 09:57:24 +0000 Subject: [PATCH] dateutils: update to 0.4.9. By Piraty: fix tests. - removing date wrapper to fix tests shouldn't interfere with package creation. it's only used in 90-set-timestamps and there it passes --date arg explicitly - strptime.003 fails on musl. disable Closes: #33103 [via git-merge-pr] --- srcpkgs/dateutils/template | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/srcpkgs/dateutils/template b/srcpkgs/dateutils/template index df3cd26ca6d..0f08283ec91 100644 --- a/srcpkgs/dateutils/template +++ b/srcpkgs/dateutils/template @@ -1,21 +1,37 @@ # Template file for 'dateutils' pkgname=dateutils -version=0.4.8 +version=0.4.9 revision=1 build_style=gnu-configure configure_args="ax_cv_zoneinfo_tzdir=/usr/share/zoneinfo" +checkdepends="tzdata" short_desc="Nifty command line date and time utilities" maintainer="Orphaned " license="BSD-3-Clause" homepage="http://www.fresse.org/dateutils/" changelog="http://www.fresse.org/dateutils/changelog.html" distfiles="https://bitbucket.org/hroptatyr/dateutils/downloads/${pkgname}-${version}.tar.xz" -checksum=3f7054a24cf3e3ea2c32a6b1f7474334c25b54e9c45c96b03f75eaaecc70c100 +checksum=790256d9949b96001fdcc3f7c42226dde4fcc87eb580717c7aabf51a1334c9c3 post_extract() { vsed -i '/sysctl\.h/d' build-aux/yuck.c } +pre_configure() { + # date wrapper / SOURCE_DATE_EPOCH interferes with some tests + rm "${XBPS_WRAPPERDIR}"/date + + if [ "$XBPS_TARGET_LIBC" != "glibc" ]; then + # disable failing test + # $ echo 1900-01-01 | strptime -i '%F' + # strptime: cannot make sense of `1900-01-01' using the given input formats + vsed -i test/Makefile.am \ + -e '/strptime.003.ctst/d' + vsed -i test/Makefile.in \ + -e 's/strptime.003.ctst//' + fi +} + post_install() { vlicense LICENSE rm ${DESTDIR}/usr/share/doc/${pkgname}/LICENSE