[med-svn] [Git][med-team/libzstd][master] 2 commits: Update symbols file

Balint Reczey gitlab at salsa.debian.org
Wed Aug 1 19:59:16 BST 2018


Balint Reczey pushed to branch master at Debian Med / libzstd


Commits:
e442a231 by Balint Reczey at 2018-08-01T18:21:44Z
Update symbols file

- - - - -
f545f901 by Balint Reczey at 2018-08-01T18:47:15Z
Allow Invoking `zstd --list` When `stdin` is not a `tty`

- - - - -


3 changed files:

- debian/libzstd1.symbols
- + debian/patches/0001-Allow-Invoking-zstd-list-When-stdin-is-not-a-tty.patch
- debian/patches/series


Changes:

=====================================
debian/libzstd1.symbols
=====================================
--- a/debian/libzstd1.symbols
+++ b/debian/libzstd1.symbols
@@ -38,16 +38,19 @@ libzstd.so.1 libzstd1 #MINVER#
  ZSTDMT_endStream at Base 1.3.2
  ZSTDMT_flushStream at Base 1.3.2
  ZSTDMT_freeCCtx at Base 1.3.2
+ ZSTDMT_getMTCtxParameter at Base 1.3.5
  ZSTDMT_initCStream at Base 1.3.2
  ZSTDMT_initCStream_advanced at Base 1.3.2
  ZSTDMT_initCStream_usingCDict at Base 1.3.2
  ZSTDMT_resetCStream at Base 1.3.2
  ZSTDMT_setMTCtxParameter at Base 1.3.2
  ZSTDMT_sizeof_CCtx at Base 1.3.2
+ ZSTD_CCtxParam_getParameter at Base 1.3.5
  ZSTD_CCtxParam_setParameter at Base 1.3.2
  (should only be used when static linking)ZSTD_CCtxParams_init at Base 1.3.4
  (should only be used when static linking)ZSTD_CCtxParams_init_advanced at Base 1.3.4
  (should only be used when static linking)ZSTD_CCtxParams_reset at Base 1.3.4
+ ZSTD_CCtx_getParameter at Base 1.3.5
  ZSTD_CCtx_loadDictionary at Base 1.3.2
  ZSTD_CCtx_loadDictionary_advanced at Base 1.3.2
  ZSTD_CCtx_loadDictionary_byReference at Base 1.3.2
@@ -55,6 +58,7 @@ libzstd.so.1 libzstd1 #MINVER#
  ZSTD_CCtx_refPrefix at Base 1.3.2
  ZSTD_CCtx_refPrefix_advanced at Base 1.3.2
  ZSTD_CCtx_reset at Base 1.3.2
+ ZSTD_CCtx_resetParameters at Base 1.3.5
  ZSTD_CCtx_setParameter at Base 1.3.2
  ZSTD_CCtx_setParametersUsingCCtxParams at Base 1.3.2
  ZSTD_CCtx_setPledgedSrcSize at Base 1.3.2
@@ -156,6 +160,7 @@ libzstd.so.1 libzstd1 #MINVER#
  ZSTD_getErrorString at Base 1.3.2
  ZSTD_getFrameContentSize at Base 1.3.2
  ZSTD_getFrameHeader at Base 1.3.2
+ ZSTD_getFrameHeader_advanced at Base 1.3.5
  ZSTD_getParams at Base 1.3.2
  ZSTD_initCStream at Base 1.3.2
  ZSTD_initCStream_advanced at Base 1.3.2


=====================================
debian/patches/0001-Allow-Invoking-zstd-list-When-stdin-is-not-a-tty.patch
=====================================
--- /dev/null
+++ b/debian/patches/0001-Allow-Invoking-zstd-list-When-stdin-is-not-a-tty.patch
@@ -0,0 +1,70 @@
+From 712a9fd9721c314f4b0238577d803b012845f6d2 Mon Sep 17 00:00:00 2001
+From: "W. Felix Handte" <w at felixhandte.com>
+Date: Fri, 29 Jun 2018 15:33:44 -0400
+Subject: [PATCH] Allow Invoking `zstd --list` When `stdin` is not a `tty`
+
+Also now returns an error when no inputs are given.
+
+New proposed behavior:
+
+```
+felix at odin:~/prog/zstd (list-stdin-check)$ ./zstd -l; echo $?
+No files given
+1
+felix at odin:~/prog/zstd (list-stdin-check)$ ./zstd -l Makefile.zst; echo $?
+Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename
+     1      0     3.08 KB      10.92 KB  3.544  XXH64  Makefile.zst
+0
+felix at odin:~/prog/zstd (list-stdin-check)$ ./zstd -l <Makefile.zst; echo $?
+zstd: --list does not support reading from standard input
+No files given
+1
+felix at odin:~/prog/zstd (list-stdin-check)$ ./zstd -l Makefile.zst <Makefile.zst; echo $?
+Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename
+     1      0     3.08 KB      10.92 KB  3.544  XXH64  Makefile.zst
+0
+felix at odin:~/prog/zstd (list-stdin-check)$
+```
+---
+ programs/fileio.c | 16 ++++++++++------
+ 1 file changed, 10 insertions(+), 6 deletions(-)
+
+diff --git a/programs/fileio.c b/programs/fileio.c
+index 0175b316..b4eed28d 100644
+--- a/programs/fileio.c
++++ b/programs/fileio.c
+@@ -2017,21 +2017,25 @@ static int FIO_listFile(fileInfo_t* total, const char* inFileName, int displayLe
+ }
+ 
+ int FIO_listMultipleFiles(unsigned numFiles, const char** filenameTable, int displayLevel){
+-
+-    if (!IS_CONSOLE(stdin)) {
+-        DISPLAYOUT("zstd: --list does not support reading from standard input\n");
+-        return 1;
++    unsigned u;
++    for (u=0; u<numFiles;u++) {
++        if (!strcmp (filenameTable[u], stdinmark)) {
++            DISPLAYOUT("zstd: --list does not support reading from standard input\n");
++            return 1;
++        }
+     }
+ 
+     if (numFiles == 0) {
++        if (!IS_CONSOLE(stdin)) {
++            DISPLAYOUT("zstd: --list does not support reading from standard input\n");
++        }
+         DISPLAYOUT("No files given\n");
+-        return 0;
++        return 1;
+     }
+     if (displayLevel <= 2) {
+         DISPLAYOUT("Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename\n");
+     }
+     {   int error = 0;
+-        unsigned u;
+         fileInfo_t total;
+         memset(&total, 0, sizeof(total));
+         total.usesCheck = 1;
+-- 
+2.17.1
+


=====================================
debian/patches/series
=====================================
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+0001-Allow-Invoking-zstd-list-When-stdin-is-not-a-tty.patch
 0006-Use-bash-for-test-script-portablitity.patch
 0008-Address-embedded-zlib.patch
 0013-skip-memory-greedy-tests.patch



View it on GitLab: https://salsa.debian.org/med-team/libzstd/compare/8894944251aa4fa65780d0a82b55a43264ce1a98...f545f901c924bde43fc19059c9006f713f557a1d

-- 
View it on GitLab: https://salsa.debian.org/med-team/libzstd/compare/8894944251aa4fa65780d0a82b55a43264ce1a98...f545f901c924bde43fc19059c9006f713f557a1d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180801/5fa3582d/attachment-0001.html>


More information about the debian-med-commit mailing list