Up to [cvs.NetBSD.org] / pkgsrc / archivers / zutils
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
zutils: fix whitespace, broken in previous
zutils: Fix for PKG_SYSCONFDIR
zutils: Add conflicts and fix configure_args
*: add LDFLAGS overide that was previously in mk This is a workaround and should be fixed properly per-package - they should use the pkgsrc LDFLAGS, but this restores what happened before the mk/ cleanup. Fixes relro build for packages that do not honor LDFLAGS. Package list provided by mef@, thanks! Workaround commit requested by bsiegert on tech-pkg.
zutils: Update to 1.16
2026-02-07 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.16 released.
* zcmp.cc (getnum): Accept underscore separators ('_').
Print large numbers with underscore separators ('_').
* zgrep.cc: Assign short option name '-?' to '--help'.
* *.cc: (show_help): Print "*Exit status*" for section in man page.
* Makefile.in (install-bin): Warn of changes in /etc/zutils.conf.
2025-05-27 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.15 released.
* zcat, ztest, zupdate: New option '-x, --exclude'.
* zgrep: New option '--exclude'.
* zgrep.cc: Exit with status 2 if write error on stdout.
2025-01-05 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.14 released.
* zupdate.cc: '-r -d' now keeps last component of dir arguments.
* zutils.texi: New chapter 'Syntax of command-line arguments'.
* check.sh: Use 'cp' instead of 'cat'.
2024-01-23 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.13 released.
* zutils.cc (test_format): Fix detection of bzip2 with no blocks.
* rc.h (format_order): Put fmt_gz before fmt_bz2.
* zcmpdiff.cc (open_other_instream): Try also other compressed formats.
* zcmp.cc (cmp): Report EOF on empty file like GNU cmp.
* zupdate.cc: Reformat file diagnostics as 'PROGRAM: FILE: MESSAGE'.
* Replace 'verify' with 'check'.
* configure, Makefile.in: New variable 'MAKEINFO'.
2023-01-07 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.12 released.
* zutilsrc: Rename to zutils.conf. Search for it in $XDG_CONFIG_HOME.
(Suggested by Adam Tuja).
* Allow '-O, --force-format' force also uncompressed format.
* zcmp.cc: New option '-H, --hexadecimal'.
Change long name of option '-s' to '--script'.
(Following a similar change made to GNU ed).
Assign short name '-q' to options '--quiet' and '--silent'.
Separate option '-l, --list' from '-v, --verbose'.
(cmp): Print byte and line in EOF message like GNU cmp.
* zgrep.cc: New options '-G, --basic-regexp', '--label=<label>',
'--line-buffered', '-P, --perl-regexp', '--silent',
'-T, --initial-tab', '-U, --binary'. (Reported by Chris Jamboretz).
New option '-Z, --null'. (Reported by Leah Neukirchen).
* ztest.cc: Exit with status 2 if a file has wrong extension.
* zupdate.cc: New options '-d, --destdir', '-e, --expand-extensions',
'-i, --ignore-errors'. ('-i' suggested by Antoni Sawicki).
(zupdate_file): Pass '-q -s' to zcmp if verbosity < 0.
* Support compress'd (.Z) files through gzip in all utilities.
* rc.cc (show_version): Print the versions of the compressors used.
(show_option_error): New function showing argument and option name.
* zutils.texi: Document that format is detected by its magic bytes.
* check.sh: Test tarlz (if available) as compressor for zupdate.
2022-01-25 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.11 released.
* zcmp.cc, zdiff.cc (main): Fix race returning 1 instead of 2 when a
compressor is not found or when the wrong format is forced.
* zcmp.cc (getnum): Show option name and valid range if error.
* All utilities: Show option name if error in option argument.
* Add support for zstd format to all utilities.
* 'zdiff -v -V' now prints the version of the diff program used.
* 'zgrep --verbose -V' now prints the version of the grep program used.
* zutils.texi: Document recompression of read-only files by linking.
* zutils.texi: Change GNU Texinfo category to 'Compression'.
(Reported by Alfred M. Szmidt).
zutils: Update to 1.10 Changes in version 1.10: A portability issue with Solaris 10 has been fixed. It has been documented in the manual that 'zgrep -L' fails with GNU grep versions 3.2 to 3.4 inclusive because of a wrong change reverted in GNU grep 3.5. 'make check' now tests empty input files with all tools except zupdate.
(archivers/zutils) Updated 1.6 to 1.8 Changes in version 1.8: A buffer overflow has been fixed in zcat which happened sometimes when the '-v, --show-nonprinting' option was used (or indirectly enabled). A canary byte has been added to the output buffer to prevent the buffer overflow from happening again. The option '-R, --dereference-recursive', which recursively follows symbolic links, has been added to zcat, zgrep, ztest and zupdate. The option '-r, --recursive' now skips symlinks that are encountered recursively. If no files are given to zcat, zgrep, ztest and zupdate, a recursive search will now examine the current working directory. Recursive directory loops are now detected. zcat and zgrep now ignore directories given in the command line if '--recursive' is not specified, instead of reporting an error. Extra trailing slashes are now removed from directories given in the command line before recursing into them. zcat and zgrep now show the right error when they can't open an input file instead of showing "No such file or directory". Killed decompressors are now waited for, preventing failure caused by too many open pipes. Test and document that if a file fails to decompress, zcat, zgrep and ztest continue processing the rest of the files. Test and document that if an error happens while recompressing a file, zupdate exits immediately without recompressing the rest of the files. The configure script now accepts appending options to CXXFLAGS using the syntax 'CXXFLAGS+=OPTIONS'.
all: migrate several HOMEPAGEs to https pkglint --only "https instead of http" -r -F With manual adjustments afterwards since pkglint 19.4.4 fixed a few indentations in unrelated lines. This mainly affects projects hosted at SourceForce, as well as freedesktop.org, CTAN and GNU.
archivers: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections.
*: Move SUBST_STAGE from post-patch to pre-configure Performing substitutions during post-patch breaks tools such as mkpatches, making it very difficult to regenerate correct patches after making changes, and often leading to substituted string replacements being committed.
Updated archivers/zutils to 1.6
-------------------------------
2017-04-05 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.6 released.
* zcmp.cc: Accept 'B' suffix in '--ignore-initial=1kB:1234B'.
* zutils.cc (feed_data): Show input filename in error messages.
Updated archivers/zutils 1.3 to 1.5 ---------------------------------- (From NEWS) Changes in version 1.5: zupdate now passes '-q' to zcmp if specified. zcat, zgrep and ztest no longer read from standard input more than once if '-' is specified multiple times. zdiff now uses '_' as separator if both temporary file names are otherwise different. For example 'xxx_file.lz' and 'xxx_file.gz'. ---------------------------------- (From ChangeLog) 2016-05-15 Antonio Diaz Diaz <antonio@gnu.org> * Version 1.5 released. * zupdate.cc (zupdate_file): Pass '-q' to zcmp if verbosity < 0. * zcat.cc zgrep.cc ztest.cc (main): Don't use stdin more than once. * zdiff.cc (set_fifonames): Use '_' if both names are different. * configure: Avoid warning on some shells when testing for g++. * Makefile.in: Detect the existence of install-info. * testsuite/check.sh: A POSIX shell is required to run the tests. (pkgsrc-changes) - Add TEST_TARGET = check (but make test fails for now)
(pkgsrc)
- (Makefile) Add following lines
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CONF_FILES= ${EGDIR}/zutilsrc ${PREFIX}/etc/zutilsrc
- (PLIST)
delete bin/zutils, see 2014-02-01 Changes Below.
(upstream)
- Update 0.9 to 1.3
----------
2014-08-30 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.3 released.
* testsuite/check.sh: Fixed two values of expected exit status.
* zutils.texi: Documented that '--format' does not verify format.
* Added two missing #includes.
* License changed to GPL version 2 or later.
2014-02-01 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.2 released.
* Added new utility; zupdate.
* Removed zutils executable. Utils are now independent executables.
* zgrep.cc: Fixed the exit status returned on error.
* zutils.texinfo: Renamed to zutils.texi.
2013-08-02 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.1 released.
* Added options '--bz2', '--gz', '--lz' and '--xz' to all utilities.
* Added runtime configuration file 'zutilsrc'.
* New function 'good_status' checks exit status of all children.
* Fixed all uses of decompressed/uncompressed in the documentation.
2013-05-31 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.0 released.
* Added new option '--format' to all utilities.
* main.cc (main): Make 'grep_show_name' tri-state so that file
name is no prefixed to output by default when searching one
file and '--recursive' has not been selected.
* Zgrep: Fixed output of option '-L' (it behaved like '-l').
* zcmp.cc: Fixed deadlock when '-n' option is used.
* zdiff.cc (set_data_feeder): Call compressor with option "-q"
only if verbosity < 0.
* zutils.cc (set_data_feeder): Likewise.
* Changed quote characters in messages as advised by GNU Standards.
* configure: Options now accept a separate argument.
* configure: 'datadir' renamed to 'datarootdir'.
* Makefile.in: Added new target 'install-bin'.
* Use 'setmode' instead of '_setmode' on Windows and OS/2.
* zcat.cc (Line_number): Fixed a portability issue with Solaris 9.
* INSTALL: Document installing zutils along with GNU gzip.
Fixes: COMMENT should not be longer than 70 characters. COMMENT should not begin with 'A'. COMMENT should not begin with 'An'. COMMENT should not begin with 'a'. COMMENT should not end with a period. COMMENT should start with a capital letter. pkglint warnings. Some files also got minor formatting, spelling, and style corrections.
"user-destdir" is default these days
Use ${PKGINFODIR}
Conflict with lzip<1.12
Import zutils-0.9 as archivers/zutils Zutils is a collection of utilities able to deal with any combination of compressed and non-compressed files transparently. If any given file, including standard input, is compressed, its decompressed content is used. Compressed files are decompressed on the fly; no temporary files are created. These utilities are not wrapper scripts but safer and more efficient C++ programs. In particular the "--recursive" option is very efficient in those utilities supporting it. The provided utilities are: Zcat - Decompresses and copies files to standard output. Zcmp - Decompresses and compares two files byte by byte. Zdiff - Decompresses and compares two files line by line. Zgrep - Decompresses and searches files for a regular expression. Ztest - Tests integrity of compressed files.
Initial revision