[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] build: avoid racy failure of "make -jN install"
From: |
Bernhard Voelker |
Subject: |
Re: [PATCH] build: avoid racy failure of "make -jN install" |
Date: |
Wed, 23 Nov 2016 09:03:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 11/23/2016 06:36 AM, Jim Meyering wrote:
> Subject: [PATCH] build: avoid racy failure of "make -jN install"
>
> Installing with -j2 or greater could result in a failure like
> /bin/sh: line 29: /P/bin/install: Permission denied
> when /P/bin/install specifies your PATH-selected install program.
> This would arise because we're using "install" to install all
> man/*.1 files, and that command would run concurrently with the one
> that installs "/P/bin/install" itself. We would run this command:
> "src/ginstall src/ginstall /P/bin/install", and it would result
> in intervals during which the destination file does not exist,
> is empty or incomplete and not executable. We addressed this
> problem long ago for installation of actual binaries by telling the
> installation rules ot use our just-built bin/ginstall (only when not
s/ot/to/
otherwise +1
Thanks & have a nice day,
Berny