Bug 168099

Summary: lang/php53 make package fails on libphp53.so
Product: Ports & Packages Reporter: Bernard Spil <brnrd>
Component: Individual Port(s)Assignee: Florian Smeets <flo>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Bernard Spil freebsd_committer freebsd_triage 2012-05-18 10:20:01 UTC
Package creation of lang/php53 fails when WITH_APACHE is enabled.
===>>> Creating a package for new version php53-5.3.13
tar: libexec/apache22/libphp53.so: Cannot stat: No such file or directory

The module is installed as /usr/local/libexec/apache22/libphp5.so as shown in logs below.

Log:
===>  Installing for php53-5.3.13
===>   Generating temporary packing list
===>  Checking if lang/php53 already installed
"Makefile", line 629: warning: duplicate script for target "main/internal_functions.lo" ignored
Installing PHP SAPI module:       apache2handler
/usr/local/share/apache22/build/instdso.sh SH_LIBTOOL='/usr/local/share/apr/build-1/libtool' libphp5.la /usr/local/libexec/apache22
/usr/local/share/apr/build-1/libtool --mode=install cp libphp5.la /usr/local/libexec/apache22/
libtool: install: cp .libs/libphp5.so /usr/local/libexec/apache22/libphp5.so
libtool: install: cp .libs/libphp5.lai /usr/local/libexec/apache22/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/ports/lang/php53/work/php-5.3.13/libs'
chmod 755 /usr/local/libexec/apache22/libphp5.so
[activating module `php5' in /usr/local/etc/apache22/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP CGI binary: /usr/local/bin/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
***************************************************************

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

***************************************************************
===>   Compressing manual pages for php53-5.3.13
===>   Registering installation for php53-5.3.13
===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/bin/php
/usr/local/bin/php-cgi

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://www.php.net/

===>>> Creating a package for new version php53-5.3.13
tar: libexec/apache22/libphp53.so: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256

===>>> Package creation of php53-5.3.13 failed
===>>> Aborting update

How-To-Repeat: cd /usr/ports/lang/php53
make clean
make -DWITH_APACHE=YES
make package
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-05-18 10:20:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->flo

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-05-18 10:33:53 UTC
flo         2012-05-18 09:33:39 UTC

  FreeBSD ports repository

  Modified files:
    lang/php53           Makefile 
  Log:
  Fix the name of the apache module, it should be libphp5.so. This also fixes
  packaging if WITH_APACHE is defined
  
  PR:             ports/168099
  Reported by:    brd, Spil <spil.oss@gmail.com>
  
  Revision  Changes    Path
  1.172     +2 -2      ports/lang/php53/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Florian Smeets freebsd_committer freebsd_triage 2012-05-18 10:34:36 UTC
State Changed
From-To: open->closed

A fix has been committed.