From fde7fac5812beb776ca6d3ab9fc65ced2b8328f2 Mon Sep 17 00:00:00 2001 From: Piraty Date: Tue, 28 May 2024 22:54:00 +0200 Subject: [PATCH] tar: proberly check y2k38 restrictions for musl1.1 --- srcpkgs/tar/template | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/srcpkgs/tar/template b/srcpkgs/tar/template index 3f30bdb0a43..a0e25d66c5e 100644 --- a/srcpkgs/tar/template +++ b/srcpkgs/tar/template @@ -12,11 +12,10 @@ homepage="https://www.gnu.org/software/tar/" distfiles="${GNU_SITE}/tar/${pkgname}-${version}.tar.xz" checksum=4d62ff37342ec7aed748535323930c7cf94acf71c3591882b26a7ea50f3edc16 -case "$XBPS_TARGET_MACHINE" in -arm*-musl) - # musl 1.1.x - configure_args+=" --disable-year2038";; -esac +# (y2k38) This can be removed once musl is updated to 1.2.x +if [ "$XBPS_TARGET_LIBC" = "musl" ] && [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then + configure_args+=" --disable-year2038" +fi pre_configure() { # chroot-style=ethereal