[MacPorts] #21315: Apache2 install location does not seem to conform as well as it could to MacPorts installation directory guideline

MacPorts noreply at macports.org
Tue Mar 9 02:01:38 PST 2010


#21315: Apache2 install location does not seem to conform as well as it could to
MacPorts installation directory guideline
------------------------------+---------------------------------------------
 Reporter:  scott@…           |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  ports             |     Version:  1.8.0                                
 Keywords:                    |        Port:  apache2                              
------------------------------+---------------------------------------------

Comment(by sebastien.elet@…):

 I know, this was an exemple and i use this setup to avoid mess between my
 compiled binary and macport. (i'm also able to switch between different
 versions of apache/php/mysql while using this layout).

 But actually, the apache2 port break also the layout conventions as this
 prefix is /opt/local/apache2 ...

 Then it should be :

 {{{
 <Layout MacPort>
   prefix: /opt/local
   exec_prefix: ${prefix}
   bindir: ${exec_prefix}/bin
   sbindir: ${exec_prefix}/sbin
   libdir: ${exec_prefix}/lib
   libexecdir: ${exec_prefix}/libexec+
   mandir: ${prefix}/share/man
   sysconfdir: ${prefix}/etc+
   datadir: ${prefix}/data
   installbuilddir: ${prefix}/share/httpd/build
   errordir: ${prefix}/share/httpd/error
   iconsdir: ${prefix}/share/httpd/icons
   htdocsdir: ${datadir}/www
   manualdir: ${prefix}/share/httpd/manual
   cgidir: ${datadir}/CGI-Executables
   includedir: ${prefix}/include+
   localstatedir: ${prefix}/var
   runtimedir: ${localstatedir}/run
   logfiledir: ${localstatedir}/log+
   proxycachedir: ${runtimedir}/proxy
 </Layout>
 }}}

 According to the source, the mistake is just in
 trunk/dports/www/apache2/Portfile line 67 "configure.pre_args
 --prefix=${prefix}/${name}" should be "configure.pre_args
 --prefix=${prefix}"

 I think the maintainer did this to keep apache1.3 working along apache2,
 but actually i doubt there will many people using apache1.3 :/

-- 
Ticket URL: <http://trac.macports.org/ticket/21315#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list