Bug 134512

Summary: package of lang/php5 does not include apache Module when compiled with "WITH_APACHE=1"
Product: Ports & Packages Reporter: Meyser+bugs.freebsd.org
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Meyser+bugs.freebsd.org 2009-05-13 15:00:10 UTC
when you do a

"cd /usr/ports/lang/php5;make package WITH_APACHE=1;"

then "/usr/ports/lang/php5/php5-5.29.tbz" does not include
"/usr/local/libexec/apache22/libphp5.so" (the apache Module)

Fix: 

In main Makefile "MODULENAME" and "SHORTMODULENAME" are defined AFTER
"bsd.apache.mk" ist include. I think tey must be defined befor inclusion or
plist substitution breaks.

If this ist true. lang/php4 has the same problem.
How-To-Repeat: cd /usr/ports/lang/php5;
make package WITH_APACHE=1;
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-05-13 15:00:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2009-05-13 15:43:57 UTC
State Changed
From-To: open->closed

make package calls pkg_create that includes all the installed files. 
So, if the module is missing from the package, it's also missing from your installation. 
Try with the following safe procedure: make config && make && make install && make package
Comment 3 Meyser+bugs.freebsd.org 2009-05-14 13:44:41 UTC
ale@FreeBSD.org schrieb:
> Synopsis: package of lang/php5 does not include apache Module when compiled with "WITH_APACHE=1"
> 
> State-Changed-From-To: open->closed
> State-Changed-By: ale
> State-Changed-When: Wed May 13 14:43:57 UTC 2009
> State-Changed-Why: 
> make package calls pkg_create that includes all the installed files.
> So, if the module is missing from the package, it's also missing from your installation.
> Try with the following safe procedure: make config && make && make install && make package

We do batched package building so we can`t use "make config".
Using "WITH_*=1" for that ist documentend ind the FreeBSD Handbook.

If we do "make package-recursive WITH_APACHE=1" the apache module IS builded 
and IS installed but the pkg does neither include the module nor the special 
initialisation (change http.conf).

If we do "make WITH_APACHE=1; make install WITH_APACHE=1; make 
package-recursive WITH_APACHE=1" everything is fine.

I dont think this is ok. Ill see if I can narrow this down.



-- 
Matthias Meyser          | XeNET Gesellschaft fuer Informations- und 
Kommunikationssysteme mbH
Telefon: +49-5323-94018  | 38678 Clausthal-Zellerfeld, Burgstaetter Strasse 6
Fax:     +49-5323-94014  | Registergericht:   Amtsgericht Goslar, AZ 17 HRB 2471
Email:   Meyser@xenet.de | Geschaeftsfuehrer: Matthias Meyser