Re: egrep, fgrep, and install-info

2020-12-26 Thread Alfred M. Szmidt
2) For 'install-info', what would be the replacement? Even though Automake knows how to handle its absence [1], it would be good to know. On systems where install-info is lacking, we simply don't install a node entry in the dir file and continue with the post-install. This is a slightly

Re: cmp/diff

2020-12-26 Thread Alfred M. Szmidt
On 12/26/20 4:07 PM, Alfred M. Szmidt wrote: > install-info does not have an replacement, like say egrep/fgrep -- > this is how we install a dir entry for a info manual. Removing > install-info would be a regression. In practice, GNU installation procedures use install-info in

Re: egrep, fgrep, and install-info

2020-12-26 Thread Bruno Haible
Paul Eggert wrote: > *** > *** 174,179 > --- 174,182 > for parallel execution. For a list of known incompatibilities, see > @ref{Portable Shell, Portable Shell Programming,, autoconf, Autoconf}. > > + Programs like @code{egrep} and @code{install-info} can be used in >

Re: cmp/diff

2020-12-26 Thread Paul Eggert
On 12/26/20 4:07 PM, Alfred M. Szmidt wrote: install-info does not have an replacement, like say egrep/fgrep -- this is how we install a dir entry for a info manual. Removing install-info would be a regression. In practice, GNU installation procedures use install-info in the way that's

Re: gnulib-tool --conditional-dependencies --test problem

2020-12-26 Thread Bruno Haible
Hi Paul, > When I run this command: > > ./gnulib-tool --conditional-dependencies --test regex > > on Fedora 33, it fails as shown in the attached file. Fixed through the patch below. > The problem occurs > because --test brings in binary-io for some reason, but doesn't bring in > the

Re: cmp/diff

2020-12-26 Thread Alfred M. Szmidt
>> Looking at that list now, the only obvious tool to remove is egrep, >> since 'grep -E' subsumes it nowadays. > Yes, I think that should be dropped. Maybe from usage in scripts or Makefile, but from a users point these do not replace "grep -E" or "grep -F" which are far more annoying

Re: cmp/diff

2020-12-26 Thread Alfred M. Szmidt
> What about 'install-info'? It is quite GNU-specific. Nothing in > gnulib appears to refer to it (except for the make-stds manual..). install-info is specific to GNU yes, the GNU standards are for the GNU system and GNU project after all. install-info does not have an replacement, like

Re: cmp/diff

2020-12-26 Thread Paul Eggert
On 12/26/20 1:55 PM, Simon Josefsson wrote: Looking at that list now, the only obvious tool to remove is egrep, since 'grep -E' subsumes it nowadays. Yes, I think that should be dropped. What about 'install-info'? It is quite GNU-specific. Nothing in gnulib appears to refer to it (except for

Re: cmp/diff

2020-12-26 Thread Simon Josefsson via Gnulib discussion list
lör 2020-12-26 klockan 11:12 -0800 skrev Paul Eggert: > On 12/26/20 10:49 AM, Bruno Haible wrote: > > > It would be nice to reduce that set of tools. > > Well, both 'cmp' and 'diff' are part of POSIX: > > Even awk is on that list, and it's much fancier than cmp or diff. And > I wouldn't support

gnulib-tool --conditional-dependencies --test problem

2020-12-26 Thread Paul Eggert
When I run this command: ./gnulib-tool --conditional-dependencies --test regex on Fedora 33, it fails as shown in the attached file. The problem occurs because --test brings in binary-io for some reason, but doesn't bring in the fcntl-h module that binary-io depends on. A simple workaround

Re: cmp/diff

2020-12-26 Thread Paul Smith
On Sat, 2020-12-26 at 19:49 +0100, Bruno Haible wrote: > Makefile rules are written both for automated execution and for the > developers of a package. While for the automated execution of a unit > test, "cmp expected.out actual.out" is sufficient, for a developer, > "diff expected.out actual.out"

Re: cmp/diff

2020-12-26 Thread Paul Eggert
On 12/26/20 10:49 AM, Bruno Haible wrote: It would be nice to reduce that set of tools. Well, both 'cmp' and 'diff' are part of POSIX: Even awk is on that list, and it's much fancier than cmp or diff. And I wouldn't support removing awk either, as it's a handy tool in Makefiles when the

Re: cmp/diff

2020-12-26 Thread Bruno Haible
Hi Simon, > > 'cmp' and 'diff' are among the programs that a 'configure' script and a > > Makefile > > can assume to be present, see the GNU Coding Standards > > . > > Hi Bruno. Thanks for the pointer! I believe this

Re: cmp/diff

2020-12-26 Thread Simon Josefsson via Gnulib discussion list
Bruno Haible writes: > Hi Simon, > >> Essentialy it boils down to: >> >> ../../gltests/test-binary-io.sh: line 8: cmp: command not found >> test-init.sh: failed test: err not empty: ../../gltests/init.sh: >> line 648: cmp: command not found >> ../../gltests/test-perror.sh: line 14: diff:

Re: cmp/diff

2020-12-26 Thread Bruno Haible
Hi Simon, > Essentialy it boils down to: > > ../../gltests/test-binary-io.sh: line 8: cmp: command not found > test-init.sh: failed test: err not empty: ../../gltests/init.sh: line 648: > cmp: command not found > ../../gltests/test-perror.sh: line 14: diff: command not found 'cmp' and 'diff'

cmp/diff

2020-12-26 Thread Simon Josefsson via Gnulib discussion list
Hi! I have noticed self-check failures of libidn on ArchLinux: https://gitlab.com/libidn/libidn/-/jobs/932649011 The gnulib self-tests that fail are: test-binary-io.sh test-perror.sh test-init.sh

new modules execve, execvpe, execvp, execv, execl, execle, execlp

2020-12-26 Thread Bruno Haible
Eli Zaretskii wrote in : ... found that the implementation of the exec* family did the following: it started the process that runs the child program, and then immediately exited without waiting for the child to finish. ...

stack: Fix typo in comments

2020-12-26 Thread Bruno Haible
A trivial typo. 2020-12-26 Bruno Haible stack: Fix typo in comments. * lib/stack.h: Fix typo in comments. diff --git a/lib/stack.h b/lib/stack.h index 5d80390..7f19d26 100644 --- a/lib/stack.h +++ b/lib/stack.h @@ -53,8 +53,8 @@ After including this file, these names

bitset: Fix conflict with 'free-posix' module

2020-12-26 Thread Bruno Haible
The continuous integration uncovered this problem: A testdir with modules 'bitset' and 'free-posix' fails to build. In file included from ../../gllib/bitset.h:31:0, from ../../gllib/bitset.c:22: ../../gllib/bitset.c: In function ‘bitset_free’: ../../gllib/bitset/base.h:200:18: