Skip to content
Commits on Source (5)
libzstd (1.3.4+dfsg-3) unstable; urgency=medium
* Add patch making build reproducible, Closes: #897904
* Update patch skipping heavy tests on mips(el) and hurd
* Add patch fixing tests on GNU/Hurd
* Drop not needed override_dh_auto_test
-- Alexandre Mestiashvili <mestia@debian.org> Wed, 09 May 2018 13:08:47 +0200
libzstd (1.3.4+dfsg-2) unstable; urgency=medium
* Add liblzma-dev and liblz4-dev to build-depends to enable xz and lz4 support
......
Subject: Skip memory heavy tests causing FTBFS on mips and mipsel buildds
Subject: Skip memory heavy tests causing FTBFS on mips(el) and hurd buildds
From: Alex Mestiashvili <mestia@debian.org>
--- libzstd.orig/tests/playTests.sh
+++ libzstd/tests/playTests.sh
@@ -761,9 +761,15 @@
@@ -743,8 +743,13 @@
roundTripTest -g5000000000 -P99 1
roundTripTest -g1700000000 -P0 "1 --zstd=strategy=6" # ensure btlazy2 can survive an overflow rescale
+DEBARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
+if [ "$DEBARCH" != 'hurd-i386' ]
+then
fileRoundTripTest -g4193M -P99 1
-
+else
+ $ECHO "\n**** skip memory greedy tests on $DEBARCH **** "
+fi
$ECHO "\n===> zstd long, long distance matching round-trip tests "
roundTripTest -g270000000 "1 --single-thread --long"
@@ -761,9 +766,14 @@
$ECHO "\n===> zstdmt long round-trip tests "
roundTripTest -g80000000 -P99 "19 -T2" " "
roundTripTest -g5000000000 -P99 "1 -T2" " "
- roundTripTest -g500000000 -P97 "1 -T999" " "
- fileRoundTripTest -g4103M -P98 " -T0" " "
- roundTripTest -g400000000 -P97 "1 --long=24 -T2" " "
+ DEBARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
+ if [ "$DEBARCH" != 'mips' -a "$DEBARCH" != 'mipsel' ]
+ if [ "$DEBARCH" != 'mips' -a "$DEBARCH" != 'mipsel' -a "$DEBARCH" != 'hurd-i386' ]
+ then
+ roundTripTest -g500000000 -P97 "1 -T999" " "
+ fileRoundTripTest -g4103M -P98 " -T0" " "
......
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2018-05-04
Applied-Upstream: https://github.com/facebook/zstd/commit/ef1abd3c071ce42a457404ee2bca6d5bebb87f62
--- libzstd.orig/contrib/pzstd/Options.cpp
+++ libzstd/contrib/pzstd/Options.cpp
@@ -88,7 +88,7 @@
std::fprintf(stderr, " -p, --processes # : number of threads to use for (de)compression (default:%d)\n", defaultNumThreads());
std::fprintf(stderr, "ZSTD options:\n");
- std::fprintf(stderr, " -# : # compression level (1-%d, default:%d)\n", kMaxNonUltraCompressionLevel, kDefaultCompressionLevel);
+ std::fprintf(stderr, " -# : # compression level (1-%d, default:<numcpus>)\n", kMaxNonUltraCompressionLevel);
std::fprintf(stderr, " -d, --decompress : decompression\n");
std::fprintf(stderr, " -o file : result stored into `file` (only if 1 input file)\n");
std::fprintf(stderr, " -f, --force : overwrite output without prompting, (de)compress links\n");
Description: Use /dev/random instead of /dev/zero as non-regular file,
because /dev/zero isn't writable on GNU/Hurd.
Fix a typo in tests s/INTONULL/INTOVOID/
Author: Alex Mestiashvili <mestia@debian.org>
Applied-Upstream: https://github.com/facebook/zstd/pull/1124/commits/2dde9d5abaade164329bf698aa938f1a5b0526d1
--- libzstd.orig/tests/playTests.sh
+++ libzstd/tests/playTests.sh
@@ -56,7 +56,7 @@
isWindows=false
INTOVOID="/dev/null"
-DEVDEVICE="/dev/zero"
+DEVDEVICE="/dev/random"
case "$OS" in
Windows*)
isWindows=true
@@ -175,7 +175,7 @@
$ZSTD tmp -f -o "$DEVDEVICE" 2>tmplog > "$INTOVOID"
grep -v "Refusing to remove non-regular file" tmplog
rm -f tmplog
-$ZSTD tmp -f -o "$INTONULL" 2>&1 | grep -v "Refusing to remove non-regular file"
+$ZSTD tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file"
$ECHO "test : --rm on stdin"
$ECHO a | $ZSTD --rm > $INTOVOID # --rm should remain silent
rm tmp
......@@ -3,3 +3,5 @@
0012-typos.patch
pthread.patch
0013-skip-memory-greedy-tests.patch
0014-Reproducible-build.patch
0015-Non-regular-file-test.patch
......@@ -43,10 +43,3 @@ override_dh_installman:
dh_installman
mkdir -p $(mandir)
$(HELP2MAN) --name='parallelised Zstandard compression, al la pigz' contrib/pzstd/pzstd >$(mandir)/pzstd.1
override_dh_auto_test:
ifeq ($(DEB_HOST_ARCH),hurd-i386)
make shortest
else
dh_auto_test
endif