php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52037 Concurrent builds fail in install-programs
Submitted: 2010-06-09 20:58 UTC Modified: 2010-07-13 19:28 UTC
From: seanius at debian dot org Assigned: kalle
Status: Closed Package: Compile Failure
PHP Version: 5.3.2 OS: Debian GNU/Linux
Private report: No CVE-ID:
 [2010-06-09 20:58 UTC] seanius at debian dot org
Description:
------------
originally reported as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584348 

which was assumed to be a problem in the build environment of the bug reporter, but after his persistence i investigated further and found that there is indeed a problem with parallel builds.  

namely, the install-programs target assumes that INSTALL_ROOT/bindir exists and doesn't check/create it iself. if executed serially after the install-build target, the directory does exist since it is created by that target, but if called in parallel (or before calling install-build), the error mentioned in the above debian bug will be seen:

> make[1]: Entering directory `/build/user-php5_5.3.2-1-amd64-JiIO8n/php5-5.3.2/apache2-build'
> Installing build environment:     /build/user-php5_5.3.2-1-amd64-JiIO8n/php5-5.3.2/debian/libapache2-mod-php5/usr/lib/php5/build/
> Installing helper programs:       /build/user-php5_5.3.2-1-amd64-JiIO8n/php5-5.3.2/debian/libapache2-mod-php5/usr/bin/
>   program: phpize
> cp: cannot create regular file `/build/user-php5_5.3.2-1-amd64-JiIO8n/php5-5.3.2/debian/libapache2-mod-php5/usr/bin/#INST@31393#': No such file or directory
>   program: php-config

(the strange filename is a shtool temp file, but the error is that the directory does not exist)

the patch for this is very simple, attached.


Patches

install-programs_parallel_FTBFS.patch (last revision 2010-06-09 18:59 UTC) by seanius at debian dot org)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-21 07:52 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-06-21 07:52 UTC] kalle@php.net
Does this apply to 5.2 aswell?
 [2010-07-01 18:07 UTC] seanius at debian dot org
hi,

yes, i believe so.  at least from a quick visual review it looks like it has the same problem.
 [2010-07-13 19:21 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=301242
Log: Fixed bug #52037 (Concurrent builds fail in install-programs) -- Patch by Seanius at debian dot org
 [2010-07-13 19:24 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=301243
Log: MFT: Fixed bug #52037 (Concurrent builds fail in install-programs) -- Patch by Seanius at debian dot org

# Sorry for the non sparse commit, due to a broken co
 [2010-07-13 19:24 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=301244
Log: MFT: Fixed bug #52037 (Concurrent builds fail in install-programs) -- Patch by Seanius at debian dot org

# Sorry for the non sparse commit, due to a broken co
 [2010-07-13 19:28 UTC] kalle@php.net
-Status: Assigned +Status: Closed
 [2010-07-13 19:28 UTC] kalle@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

The fix will be included in the next RC's or be that final releases for both 5.2 and 5.3
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 23 18:01:55 2014 UTC