Mantis - apache2
Viewing Issue Advanced Details
4788 packaging minor always 2011-06-20 18:33 2011-09-07 02:26
igalic  
bwalton  
normal  
closed  
fixed  
none    
none  
0004788: apache2 is missing perl as dependency
When trying to install a2_modphp5 on a fresh system I'd get the following error:

Do you want to continue with the installation of <CSWap2-modphp5> [y,n,?] y

Installing ap2_modphp5 - The apache 2.2.x php5 module as <CSWap2-modphp5>

## Installing part 1 of 1.
/opt/csw/apache2/etc/httpd.conf.bak
/opt/csw/apache2/libexec/libphp5.so
/opt/csw/share/doc/ap2_modphp5/license
[ verifying class <none> ]
Modifying /opt/csw/apache2/ap2mod/php5
chroot: exec failed: No such file or directory
pkgadd: ERROR: class action script did not complete successfully
[ verifying class <build> ]
Copying sample config to /opt/csw/apache2/etc/extra/httpd-php5.conf

[ verifying class <cswpreserveconf> ]
## Executing postinstall script.
Adding Include for extra/http-php5.conf to httpd.conf

NOTICE: mod_php5 is enabled in httpd.conf but the server was not restarted.
Please examine your php5 configuration and restart apache.


Installation of <CSWap2-modphp5> partially failed.

pkgadd failed with exit code: 2
Exit from pkgutil and fix this issue first (recommended)? ([y],n)


I've tracked this down to:

root@atvp1uwamp021:~# chroot / /bin/bash
root@atvp1uwamp021:/# cd /
root@atvp1uwamp021:/# exec /opt/csw/apache2/sbin/apxs
bash: /opt/csw/apache2/sbin/apxs: /opt/csw/bin/perl: bad interpreter: No such file or directory
bash: /opt/csw/apache2/sbin/apxs: Error 0
root@atvp1uwamp021:/# ls -lahrt /opt/csw/bin/perl
/opt/csw/bin/perl: No such file or directory
root@atvp1uwamp021:/#
Issue History
2011-06-20 18:33 igalic New Issue
2011-06-21 01:53 bwalton Status new => assigned
2011-06-21 01:53 bwalton Assigned To => bwalton
2011-06-21 01:53 bwalton Note Added: 0009126
2011-06-21 01:53 bwalton Status assigned => confirmed
2011-07-04 04:01 bwalton Note Added: 0009180
2011-09-07 02:26 bwalton Note Added: 0009250
2011-09-07 02:26 bwalton Status confirmed => closed
2011-09-07 02:26 bwalton Resolution open => fixed

Notes
(0009126)
bwalton   
2011-06-21 01:53   
Adding missing dependency.
(0009180)
bwalton   
2011-07-04 04:01   
Packages for testing at: http://buildfarm.opencsw.org/experimental.html#apache2 [^]
(0009250)
bwalton   
2011-09-07 02:26   
Dependencies updated in the release that was just pushed.