[Swan-dev] error "make check UPDATE=1"

Paul Wouters paul at nohats.ca
Thu Jul 23 10:17:36 EEST 2015


On Thu, 23 Jul 2015, D. Hugh Redelmeier wrote:

> | cd . && bison -g --verbose -v -d ../../../lib/libipsecconf/$(basename ../../../lib/libipsecconf/parser.y)
> | cd . && sed -i 's/if YYENABLE_NLS/if defined YYENABLE_NLS \&\& YYENABLE_NLS/g' parser.tab.c
> | sed: couldn't open temporary file ./sedQsryD3: Permission denied
>
> | make[3]: Leaving directory `/source/OBJ.linux.x86_64/lib/libipsecconf'
>
> It looks as if sed is trying to create a temp file in
> 	/source/OBJ.linux.x86_64/lib/libipsecconf
> Or perhaps reopening that file (less likely)
>
> Why would that fail?
>
> It seems unlikely that a file with the same name was created by another
> run since the suffix of the tempfile name is supposed to be randomized.
>
> sed -i could reasonably want to create the updated file in the current
> directory and once it succeeds, delete parser.tab.c and rename the
> temp file parser.tab.c
>
> Perhaps you could try to replicate this by hand to figure out why it
> is going wrong.

We ran it by hand on the same machine and it works.

The tmp file created has mode 0000000, so I'm thinking perhaps something
with Antony's setup and umask?

Paul


More information about the Swan-dev mailing list