Skip to content

Commit

Permalink
Update install-sh to version 2016-01-11.22
Browse files Browse the repository at this point in the history
Copied (https://www.gnu.org/software/gnulib/’s recommendation) from
http://git.savannah.gnu.org/cgit/gnulib.git/plain/build-aux/install-sh

This fixes an issue with running e.g. `make -j8 install`, where make
would run e.g. the following two rules in parallel:

  1. raddb/mods-config/sql/ippool
  2. raddb/mods-config/sql/ippool/sqlite

make would run install-sh for each of these rules, and install-sh would
try to run mkdir for each path component. When the concurrently running
install-sh processes would interleave in such a way that line 182¹ was
executed in both processes before line 184² was executed, both processes
would try to run mkdir, and one of them would fail, effectively failing
the build with an error like this:
  mkdir: cannot create directory 'debian/tmp/etc/freeradius/mods-config/sql/ippool': File exists

① https://github.com/FreeRADIUS/freeradius-server/blob/d17d160f319f22143911c033d207c8909775a4da/install-sh#L182https://github.com/FreeRADIUS/freeradius-server/blob/d17d160f319f22143911c033d207c8909775a4da/install-sh#L184
  • Loading branch information
stapelberg committed Sep 17, 2016
1 parent d17d160 commit 175a70c
Showing 1 changed file with 455 additions and 205 deletions.
Loading

0 comments on commit 175a70c

Please sign in to comment.