Parallel release failed on pwd_mkdb

2015-07-06 Thread Oliver Pinter
Hi All!

We got this build failure, when two release make release running in parallel:

10-STABLE:
-

--
 stage 4.4: building everything
--
pwd_mkdb: /var/tmp/temproot/etc/pwd.db.tmp to
/var/tmp/temproot/etc/pwd.db: No such file or directory
*** Error code 1

Stop.
make[4]: stopped in /jenkins/workspace/HardenedBSD-10-STABLE-amd64/etc
*** Error code 1

Stop.
make[3]: stopped in /jenkins/workspace/HardenedBSD-10-STABLE-amd64
*** Error code 1

Stop.
make[2]: stopped in /jenkins/workspace/HardenedBSD-10-STABLE-amd64

  *** FATAL ERROR: Cannot 'cd' to
/jenkins/workspace/HardenedBSD-10-STABLE-amd64/release/.. and install
files to
  the temproot environment

*** Error code 1

Stop.
make[1]: stopped in /jenkins/workspace/HardenedBSD-10-STABLE-amd64/release
*** Error code 1


11-CURRENT:


pwd_mkdb -i -p -d /var/tmp/temproot/etc /var/tmp/temproot/etc/master.passwd
pwd_mkdb: /var/tmp/temproot/etc/pwd.db.tmp: File exists
*** Error code 1

Stop.
make[4]: stopped in /jenkins/workspace/HardenedBSD-master-amd64/etc
*** Error code 1

Stop.
make[3]: stopped in /jenkins/workspace/HardenedBSD-master-amd64
*** Error code 1

Stop.
make[2]: stopped in /jenkins/workspace/HardenedBSD-master-amd64

  *** FATAL ERROR: Cannot 'cd' to
/jenkins/workspace/HardenedBSD-master-amd64/release/.. and install
files to
  the temproot environment

*** Error code 1

Stop.
make[1]: stopped in /jenkins/workspace/HardenedBSD-master-amd64/release
*** Error code 1

I could work it around with build order dependency or with chrooted builds...

Thanks,
Oliver
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Parallel release failed on pwd_mkdb

2015-07-06 Thread Simon J. Gerraty
Oliver Pinter oliver.pin...@hardenedbsd.org wrote:
 We got this build failure, when two release make release running in parallel:

Can you elaborate what you mean by two release make release ?
Do you mean two separate builds running in the same tree at the same
time using the same DESTDIR?

  stage 4.4: building everything
 --
 pwd_mkdb: /var/tmp/temproot/etc/pwd.db.tmp to
 /var/tmp/temproot/etc/pwd.db: No such file or directory
 *** Error code 1

The pwd_mkdb command in etc uses $DESTDIR/etc - it obviously assumes
that is unique.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Parallel release failed on pwd_mkdb

2015-07-06 Thread Oliver Pinter
On Mon, Jul 6, 2015 at 10:26 PM, Simon J. Gerraty s...@juniper.net wrote:
 Oliver Pinter oliver.pin...@hardenedbsd.org wrote:
 We got this build failure, when two release make release running in parallel:

 Can you elaborate what you mean by two release make release ?

Two concurrent make release would be the previous statement.

 Do you mean two separate builds running in the same tree at the same
 time using the same DESTDIR?

We building from separated git repos. Every target has an it's own,
and we don't specify custom DESTDIR, just issue a simple make
real-release in the ${SRCTOP}/release directory.


  stage 4.4: building everything
 --
 pwd_mkdb: /var/tmp/temproot/etc/pwd.db.tmp to
 /var/tmp/temproot/etc/pwd.db: No such file or directory
 *** Error code 1

 The pwd_mkdb command in etc uses $DESTDIR/etc - it obviously assumes
 that is unique.


I tracked down the issue to the ${SRCTOP}/release/scripts/mm-mtree.sh
file, which called without release specific temproot argument.

https://reviews.freebsd.org/D3002
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org