php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36168 5.1.2 "make install" locks up with INSTALL_ROOT (5.1.1 works perfectly)
Submitted: 2006-01-26 16:36 UTC Modified: 2006-01-26 16:50 UTC
From: bero at arklinux dot org Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.2 OS: Linux (Ark Linux 2005.2)
Private report: No CVE-ID: None
 [2006-01-26 16:36 UTC] bero at arklinux dot org
Description:
------------
Running     
     
make install install-su INSTALL_ROOT=/var/tmp/php-root     
     
in 5.1.2 after building it locks up after saying     
Installing PEAR     
environment:      /var/tmp/php-root/usr/share/pear/     
     
The command being run by make install is     
/usr/src/ark/BUILD/php-5.1.2/build-cgi/sapi/cli/php -n     
-dshort_open_tag 0 -dsafe_mode 0 -derror_reporting E_ALL     
-ddetect_unicode 0 pear/install-pear-nozlib.phar     
-d /usr/share/pear -b /usr/bin     
     
strace shows it's waiting for a lock it never gets:     
$ strace -p 5294     
Process 5294 attached - interrupt to quit     
flock(4, LOCK_SH     
[No progress being made]    
$ ls -l /proc/5294/fd/4    
lr-x------ 1 root root 64 Jan 26 16:29 /proc/5294/fd/4    
-> /var/tmp/php-root/usr/share/pear/.lock    
$ lsof |grep pear/.lock  
php        5294     root    3wW  REG        8,2          0     
9159776 /var/tmp/php-root/usr/share/pear/.lock  
php        5294     root    4rW  REG        8,2          0     
9159776 /var/tmp/php-root/usr/share/pear/.lock  
 
 
It works perfectly in 5.1.1, and in 5.1.2 if I leave out 
the INSTALL_ROOT part (First guess: Something is locking 
$INSTALL_ROOT/usr/share/pear/.lock and 
unlocking /usr/share/pear/.lock) 

Reproduce code:
---------------
./configure --enable-pear --with-pear=/usr/share/pear
make
make install install-su INSTALL_ROOT=/var/tmp/php-root


Expected result:
----------------
php is installed properly to /var/tmp/php-root for 
packaging 

Actual result:
--------------
make install hangs until I Ctrl-C it 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-26 16:50 UTC] tony2001@php.net
Please report PEAR bugs using PEAR bug system: http://pear.php.net/bugs/
Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 14:01:34 2024 UTC