strerror replacement problems on all BSDs

2016-03-23 Thread coypu
Hello, I've come across a problem with code using gnulib. it attempts to replace strerror with strerror_rpl, resulting in errors like the following: undefined reference to `rpl_strerror' https://lists.gnupg.org/pipermail/gnutls-devel/2013-November/006594.html This occurs for two reasons:

Re: strerror replacement problems on all BSDs

2016-03-24 Thread coypu
On Wed, Mar 23, 2016 at 03:48:00PM -0600, Eric Blake wrote: > On 03/23/2016 03:16 PM, co...@sdf.org wrote: > > Hello, > > I've come across a problem with code using gnulib. > > We'll need a bit more context: what program are you trying to build, and > what gnulib commit is it using? > I was

Re: install-sh and $RANDOM

2016-10-18 Thread coypu
On Tue, Oct 18, 2016 at 06:24:03AM -0500, Eric Blake wrote: > On 10/17/2016 11:46 PM, co...@sdf.org wrote: > > On Mon, Oct 17, 2016 at 04:56:05PM -0500, Eric Blake wrote: > >> Second, your claim that things are "spuriously bad if $RANDOM does not > >> exist" is false. Look at the full context: >

Re: install-sh and $RANDOM

2016-10-17 Thread coypu
On Mon, Oct 17, 2016 at 04:56:05PM -0500, Eric Blake wrote: > Second, your claim that things are "spuriously bad if $RANDOM does not > exist" is false. Look at the full context: > > tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ > trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir"

install-sh and $RANDOM

2016-10-17 Thread coypu
Hi, in build-aux/install-sh scriptversion=2016-01-11.22 line 327 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ ... things which are spuriously bad if $RANDOM does not exist ... Please use something like: tmpdir=$(mktemp -d -p ${TMPDIR:-/tmp}) Note also : NetBSD /bin/sh does not have $RANDOM. I don't