Opened 21 years ago

Closed 20 years ago

Last modified 9 years ago

#1639 closed defect (fixed)

PHP4 path error for apache2

Reported by: contact1@… Owned by: bchesneau@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: php4

Description (last modified by ryandesign (Ryan Carsten Schmidt))

There is an unknown variable, ${apache2_path}, for the apache2 variant of php4. I am building on MacOS X 10.3.3. Correcting that to ${prefix}/apache2 fixes the issue. Attached is a patch for the issue.

-albert

--- Portfile.orig       Wed Mar 17 09:01:21 2004
+++ Portfile    Wed Mar 17 09:01:58 2004
@@ -86,7 +86,7 @@
 
 variant apache2 {
        depends_lib-append      path:${prefix}/apache2/bin/apxs:apache2
-       configure.args-append   --with-apxs2=${apache2_path}/bin/apxs
+       configure.args-append   --with-apxs2=${prefix}/apache2/bin/apxs
 }
 
 variant crypt {

Attachments (1)

patch_php4.txt (790 bytes) - added by contact1@… 21 years ago.
patch to fix apache2 path issues

Download all attachments as: .zip

Change History (6)

Changed 21 years ago by contact1@…

Attachment: patch_php4.txt added

patch to fix apache2 path issues

comment:1 Changed 21 years ago by contact1@…

I'd like to propose a different solution, as there are multiple ${apache2_path} variables within the file. Rather, this variable could be set at the beginning of the file. Also, there is an ${apache_path} which should be ${apache2_path}. Attached is a patch.

-albert

--- ../../../../darwinports/dports/www/php4/Portfile    Wed Mar 17 10:09:53 2004
+++ Portfile Wed Mar 17 10:10:50 2004
@@ -29,6 +29,8 @@
 
 patchfiles  patch-configure
 
+set apache2_path ${prefix}/apache2
+
 depends_lib lib:libiconv.2:libiconv \
        lib:libexpat.0.4:expat  \
        lib:libintl:gettext \
@@ -184,7 +186,7 @@
 
      if { [variant_isset apache2] } {
        file mkdir ${destroot}${apache2_path}/modules
-       xinstall -m 755 ${worksrcpath}/libs/libphp4.so ${destroot}${apache_path}/modules/
+       xinstall -m 755 ${worksrcpath}/libs/libphp4.so ${destroot}${apache2_path}/modules/
        file mkdir ${destroot}${apache2_path}/conf/extras-conf
        xinstall -o root -m 755 -c  ${portpath}/files/mod_php.conf ${destroot}${apache2_path}/conf/extras-conf
      } 
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 21 years ago by toby@…

Owner: changed from darwinports-bugs@… to bchesneau@…

comment:3 Changed 21 years ago by toby@…

This is actually bit different now, since I changed apache2 to install into a sane directory structure (FreeBSD layout, prefix=${prefix}). So apache just goes into $prefix/bin/apachectl (etc).

comment:4 Changed 20 years ago by bchesneau@…

Resolution: fixed
Status: newclosed

Just committed new php4 port. Thanks :)

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: php4 added
Note: See TracTickets for help on using tickets.