From 5f5b6682bbea6b783aad98f344a636fffa561c93 Mon Sep 17 00:00:00 2001 From: Mat Boehlke Date: Wed, 24 Aug 2022 20:23:44 -0500 Subject: [PATCH] New package: tarlz-0.24 --- srcpkgs/tarlz/patches/skip-mtime-checks.patch | 74 +++++++++++++++++++ srcpkgs/tarlz/template | 20 +++++ 2 files changed, 94 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..b67b2b0808ce4 --- /dev/null +++ b/srcpkgs/tarlz/patches/skip-mtime-checks.patch @@ -0,0 +1,74 @@ +diff --git a/testsuite/check.sh b/testsuite/check.sh +index 66c525b..e22fc82 100755 +--- a/testsuite/check.sh ++++ b/testsuite/check.sh +@@ -728,19 +728,13 @@ 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 ++ 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 ++ @8589934591 @8589934592 ++ @9223372036854775807' + 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' \ + '2017-10-01 09:00' '2017-10-01 09' 2017-10-01 ./bar ; do +@@ -766,45 +760,6 @@ is_uncompressed out.tar || test_failed $LINENO + "${TARLZ}" -df out.tar || test_failed $LINENO + rm -rf out.tar dir || framework_failure + +-printf "\ntesting --diff..." +- +-# test --diff +-"${TARLZ}" -xf "${test3_lz}" || test_failed $LINENO +-"${TARLZ}" -cf out.tar foo || test_failed $LINENO +-"${TARLZ}" -cf aout.tar foo --anonymous || test_failed $LINENO +-is_uncompressed out.tar || test_failed $LINENO +-is_uncompressed aout.tar || test_failed $LINENO +-if cmp out.tar aout.tar > /dev/null ; then +- printf "\nwarning: '--diff' test can't be run as root.\n" +-else +- for i in 0 2 6 ; do +- "${TARLZ}" -n$i -xf "${test3_lz}" || test_failed $LINENO $i +- "${TARLZ}" -n$i -df "${test3_lz}" > out$i +- [ $? = 1 ] || test_failed $LINENO $i +- "${TARLZ}" -n$i -df "${test3_lz}" --ignore-ids || test_failed $LINENO $i +- "${TARLZ}" -n$i -df "${test3_lz}" --exclude '*' || test_failed $LINENO $i +- "${TARLZ}" -n$i -df "${in_tar_lz}" --exclude '*' || test_failed $LINENO $i +- rm -f bar || framework_failure +- "${TARLZ}" -n$i -df "${test3_lz}" --ignore-ids foo baz || +- test_failed $LINENO $i +- "${TARLZ}" -n$i -df "${test3_lz}" --exclude bar --ignore-ids || +- test_failed $LINENO $i +- rm -f foo baz || framework_failure +- "${TARLZ}" -q -n$i -xf "${test3dir_lz}" || test_failed $LINENO $i +- "${TARLZ}" -q -n$i -df "${test3dir_lz}" --ignore-ids || +- test_failed $LINENO $i +- "${TARLZ}" -q -n$i -df "${test3dir_lz}" dir --ignore-ids || +- test_failed $LINENO $i +- "${TARLZ}" -n$i -df "${test3_lz}" --ignore-ids -C dir || +- test_failed $LINENO $i +- rm -rf dir || framework_failure +- done +- cmp out0 out2 || test_failed $LINENO +- cmp out0 out6 || test_failed $LINENO +- rm -f out0 out2 out6 || framework_failure +-fi +-rm -f out.tar aout.tar foo bar baz || framework_failure +- + printf "\ntesting --delete..." + + # test --delete diff --git a/srcpkgs/tarlz/template b/srcpkgs/tarlz/template new file mode 100644 index 0000000000000..3d5c8deafd1db --- /dev/null +++ b/srcpkgs/tarlz/template @@ -0,0 +1,20 @@ +# Template file for 'tarlz' +pkgname=tarlz +version=0.24 +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=49838effe95acb29d548b7ef2ddbb4b63face40536df0d9a80a62900c7170576 + +do_configure() { + ./configure --prefix=/usr \ + CXX="${CXX}" \ + CPPFLAGS="${CPPFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + LDFLAGS="${LDFLAGS}" +}