From 6566ed31c7b2ab84d71c0cb48685f494fe776547 Mon Sep 17 00:00:00 2001 From: Mat Boehlke Date: Sun, 7 Jan 2024 11:06:39 -0600 Subject: [PATCH] New package: tarlz-0.25 --- srcpkgs/tarlz/patches/skip-mtime-checks.patch | 36 +++++++++++++++++++ srcpkgs/tarlz/template | 20 +++++++++++ 2 files changed, 56 insertions(+) create mode 100644 srcpkgs/tarlz/patches/skip-mtime-checks.patch create mode 100644 srcpkgs/tarlz/template diff --git a/srcpkgs/tarlz/patches/skip-mtime-checks.patch b/srcpkgs/tarlz/patches/skip-mtime-checks.patch new file mode 100644 index 0000000000000..4969c7e4fa5d7 --- /dev/null +++ b/srcpkgs/tarlz/patches/skip-mtime-checks.patch @@ -0,0 +1,36 @@ +Skip testing problematic dates in the test suite. +These dates result in 'out of limits' for the --mtime option on i686. + +A couple of these dates show up as 'mod time differs' on x86_64, +I am presuming because they are even at the limits of 64-bit time_t. + +diff --git a/testsuite/check.sh b/testsuite/check.sh +index 66c525b..a3ae6f1 100755 +--- a/testsuite/check.sh ++++ b/testsuite/check.sh +@@ -727,22 +727,13 @@ cmp cfoo foo || test_failed $LINENO + rm -f out.tar foo bar baz || framework_failure + + # test --create --mtime +-dates='@-9223372036854775808 @-9223372036854775807 +- -2147481748-12-31T23:59:59 -1970-01-01T00:00:00 +- 0000-01-01T00:00:00 0000-01-01T00:00:01 0000-01-02T00:00:00 +- 1697-10-17T11:03:27 1697-10-17T11:03:28 1697-10-17T11:03:29 +- 1833-11-24T17:31:43 1833-11-24T17:31:44 1833-11-24T17:31:45 +- 1901-12-13T20:45:51 1901-12-13T20:45:52 1901-12-13T20:45:53 ++dates='1901-12-13T20:45:52 1901-12-13T20:45:53 + 1901-12-14T20:45:51 + 1969-12-31T23:59:58 1969-12-31T23:59:59 + 1970-01-01T00:00:00 1970-01-01T00:00:01 @0 +- 2038-01-18T03:14:07 2038-01-19T03:14:07 2038-01-19T03:14:08 +- 2106-02-07T06:28:15 2106-02-07T06:28:16 +- 2242-03-16T12:56:31 2242-03-16T12:56:32 @8589934591 @8589934592 +- 9999-12-31T23:59:58 9999-12-31T23:59:59 +- 2147483647-12-31T23:59:59 @9223372036854775807' ++ 2038-01-18T03:14:07' + touch -d 2022-01-05T12:22:13 bar || framework_failure +-for i in ${dates} @-8Ei '2017-10-01 09:00:00' '2017-10-1 9:0:0' \ ++for i in ${dates} '2017-10-01 09:00:00' '2017-10-1 9:0:0' \ + '2017-10-01 09:00' '2017-10-01 09' 2017-10-01 ./bar ; do + touch foo || framework_failure + "${TARLZ}" -cf out.tar --mtime="$i" foo || test_failed $LINENO "$i" diff --git a/srcpkgs/tarlz/template b/srcpkgs/tarlz/template new file mode 100644 index 0000000000000..3904fcb55ae40 --- /dev/null +++ b/srcpkgs/tarlz/template @@ -0,0 +1,20 @@ +# Template file for 'tarlz' +pkgname=tarlz +version=0.25 +revision=1 +build_style=configure +makedepends="lzlib-devel" +short_desc="Archiver with multimember lzip compression" +maintainer="Matt Boehlke " +license="GPL-2.0-or-later" +homepage="https://www.nongnu.org/lzip/tarlz.html" +distfiles="${NONGNU_SITE}/lzip/tarlz/tarlz-${version}.tar.lz" +checksum=7d0bbe9c3a137bb93a10be56988fcf7362e4dbc65490639edc4255b704105fce + +do_configure() { + ./configure --prefix=/usr \ + CXX="${CXX}" \ + CPPFLAGS="${CPPFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + LDFLAGS="${LDFLAGS}" +}