bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make install using "-j"


From: David Everly
Subject: Re: make install using "-j"
Date: Mon, 26 Jun 2006 16:58:28 -0600

I'm attaching the output (which failed) when using gnu make -j5 using
install-sh 2006-05-11.20.

I've also opened a bug on mkdir -p against ia64-hp-hpux11.23, and I
want to confirm this bug (I'm not an expert on posix, especially
relating to umask and mkdir).  Here are the three tests, including the
actual results and the expected results (please help me review that my
expected results are correct):

## Test one:

address@hidden:~/mkdirtest$ /usr/bin/umask 002
address@hidden:~/mkdirtest$ /usr/bin/mkdir -m u=rwx,g=rx,o=rx -p -- foo/bar
address@hidden:~/mkdirtest$ echo $?
0
address@hidden:~/mkdirtest$ ls -l
total 0
drwxr-xr-x 3 deverly users 96 Jun 26 15:22 foo

Result should have been:
drwxrwxr-x 3 deverly users 96 Jun 26 15:22 foo

###  Test two:

address@hidden:~/mkdirtest$ /usr/bin/umask
022
address@hidden:~/mkdirtest$ /usr/bin/mkdir -m u=rwx,g=rx,o=rx,u+wx -p
-- foo/bar
address@hidden:~/mkdirtest$ echo $?
0
address@hidden:~/mkdirtest$ ls -l
total 0
d-wx-w--w- 3 deverly users 96 Jun 26 15:29 foo

Result should have been:
drwxr-xr-x 3 deverly users 96 Jun 26 15:29 foo

### Test three:

address@hidden:~/mkdirtest$ /usr/bin/umask
022
address@hidden:~/mkdirtest$ /usr/bin/mkdir -m 775,u+wx -p -- foo/bar
address@hidden:~/mkdirtest$ echo $?
0
address@hidden:~/mkdirtest$ ls -l
total 0
d-wx------ 3 deverly users 96 Jun 26 15:33 foo

Result should have been:
drwxrwxr-x 3 deverly users 96 Jun 26 15:33 foo


On 6/24/06, David Everly <address@hidden> wrote:
Thanks for looking into this and sorry for the late response:

On Wed, Jun 21, 2006 at 09:32:16PM +0200, Ralf Wildenhues wrote:
> [ http://lists.gnu.org/archive/html/bug-automake/2006-06/msg00018.html ]
>
> Hello David, everyone,
>
> Summary of this post:
>
> 1) I think I can reproduce the bug you reported with a small test, but
>    would like confirmation that this is indeed the same issue.

It looks like the same issue to me.

> 2) IMHO the bug has since been fixed "accidentally" in install-sh.

I will try the install-sh from CVS on Monday (I only have gnu/linux at
home).

> * David Everly wrote on Tue, Jun 20, 2006 at 09:37:56PM CEST:
> >
> [...]
> >mkdir: cannot create /tmp/am-dc-7581//home/deverly: File exists
> >mkdir: cannot create /tmp/am-dc-7581//home/deverly: File exists
> >mkdir: cannot create /tmp/am-dc-7581//home/deverly/trunk-nightly: File exists
> >mkdir: cannot create /tmp/am-dc-7581//home/deverly/trunk-nightly: File exists
>
> 0) Above output isn't enough information.  It is important to also post
> the command that 'make' issued that caused the failures, and, in this
> case, also a couple of commands that happened earlier.  Please do so to
> confirm the following analysis.

I'll send more on Monday.

> 1) An interesting and tricky issue.  I can reproduce the failure on:
>
> > ia64-hp-hpux11.23
>
> with this version of the script (from Automake-1.9.6):
>
> > ./install-sh 2005-05-14.22
>
> with this example package:
>
> - snip -
> cat >configure.ac <<EOF
> AC_INIT([j4], [2], [devnull])
> AM_INIT_AUTOMAKE([foreign])
> AC_CONFIG_FILES([Makefile])
> AC_OUTPUT
> EOF
> cat >Makefile.am <<EOF
> # the subdir names are harmless and not relevant for the first test.
> dist_sysconf_DATA = \
>       a/b/c/d/e/file1
> dist_pkgdata_DATA = \
>       a/b/c/d/e/file2
> dist_data_DATA = \
>       a/b/c/d/e/file3 \
>       a/b/c/d/e/file4
> EOF
> mkdir -p a/b/c/d/e
> cd a/b/c/d/e
> touch file1 file2 file3 file4
> cd -
> autoreconf -vi
> ./configure
> make -j4 distcheck
> - snip -
>
> The error output looks like this for me:
>
> [...]
> | gmake[2]: Entering directory `/home/rwild/j4/build/j4-2/_build'
> | test -z "/home/rwild/j4/build/j4-2/_inst/etc" || /home/rwild/j4/build/j4-2/install-sh 
-d "/tmp/am-dc-27562//home/rwild/j4/build/j4-2/_inst/etc"
> | test -z "/home/rwild/j4/build/j4-2/_inst/share/j4" || 
/home/rwild/j4/build/j4-2/install-sh -d 
"/tmp/am-dc-27562//home/rwild/j4/build/j4-2/_inst/share/j4"
> | test -z "/home/rwild/j4/build/j4-2/_inst/share" || 
/home/rwild/j4/build/j4-2/install-sh -d 
"/tmp/am-dc-27562//home/rwild/j4/build/j4-2/_inst/share"
> | mkdir: cannot create /tmp/am-dc-27562//home/rwild/j4: File exists
> | mkdir: cannot create /tmp/am-dc-27562//home/rwild/j4/build/j4-2/_inst: File 
exists
> | mkdir: cannot create 
/tmp/am-dc-27562//home/rwild/j4/build/j4-2/_inst/share: File exists
> | gmake[2]: *** [install-dist_dataDATA] Error 1

From memory, this looks very much like the errors I've seen.

> 2) AFAICS, this problem has been fixed in the current install-sh
> (instead of the one that ships with Automake-1.9.6).
> David, could you try the script?  You can get it with
>
>   cvs -d :pserver:anoncvs:address@hidden:/cvs/automake \
>       co -p automake/lib/install-sh > install-sh

I will try this on Monday.




--
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
   Information:  http://www.expita.com/nomime.html

Attachment: build.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]