httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: [PATCH] Make install for relative install paths
Date Wed, 28 Apr 1999 09:12:06 GMT

In article <199904280831.KAA36422@vmax.unix-ag.uni-siegen.de> you wrote:
> According to Ralf S. Engelschall:
> 
>> I still don't understand why BinaryDistribution uses such paths.  It's at
> 
> Because we don't know in which directory the user installs the
> binary distribution. He can do "install-bindist.sh /usr/local/apache"
> or "install-bindist.sh /foo/bar/home/joe/httpd".
> Therefore I had to use relative pathnames. Absolute path names suck.
> IMHO it was always a misfeature of configure to use absolute path names.

Ah, that's the reason. Ok, sounds very reasonable. 
I've totally forgot this point.

>> That's why I personally would appreciate BinaryDistribution is changed.
> 
> How??

I see not much difference in the final results between a normal layout and the
BinaryDistribution layout regarding the absolute paths: 

$ ./configure --show-layout --with-layout=BinaryDistribution

               :
           HTTPD_ROOT: /usr/local/apache
      SHARED_CORE_DIR: libexec
       DEFAULT_PIDLOG: logs/httpd.pid
   DEFAULT_SCOREBOARD: logs/httpd.scoreboard
     DEFAULT_LOCKFILE: logs/httpd.lock
      DEFAULT_XFERLOG: logs/access_log
     DEFAULT_ERRORLOG: logs/error_log
    TYPES_CONFIG_FILE: conf/mime.types
   SERVER_CONFIG_FILE: conf/httpd.conf
   ACCESS_CONFIG_FILE: conf/access.conf
 RESOURCE_CONFIG_FILE: conf/srm.conf
               :

$ ./configure --show-layout
               :
           HTTPD_ROOT: /usr/local/apache
      SHARED_CORE_DIR: /usr/local/apache/libexec
       DEFAULT_PIDLOG: logs/httpd.pid
   DEFAULT_SCOREBOARD: logs/httpd.scoreboard
     DEFAULT_LOCKFILE: logs/httpd.lock
      DEFAULT_XFERLOG: logs/access_log
     DEFAULT_ERRORLOG: logs/error_log
    TYPES_CONFIG_FILE: conf/mime.types
   SERVER_CONFIG_FILE: conf/httpd.conf
   ACCESS_CONFIG_FILE: conf/access.conf
 RESOURCE_CONFIG_FILE: conf/srm.conf
               :

As you can see the only differnece is SHARED_CORE_DIR.  So when we fix this it
should be totally acceptable to compile binaries with the default layout and
just use the root=./tmp feature for rolling the binary tarball.  So I conclude
that we don't need to fix a lot, because APACI's built-in absolute-to-relative
apping facility _IS_ already fine, even for binary distributions...

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message