Mailing List Archive

[Bug 9316] New: - apxs wrong path to config_vars.mk with custom layout.config installbuilddir
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9316>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9316

apxs wrong path to config_vars.mk with custom layout.config installbuilddir

Summary: apxs wrong path to config_vars.mk with custom
layout.config installbuilddir
Product: Apache httpd-2.0
Version: 2.0.36
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Build
AssignedTo: bugs@httpd.apache.org
ReportedBy: smileyjonathan@yahoo.com.au


If I build apache 2.0.36 with a custom config.layout entry, the
apxs script doesn't use it. The layout I'm using specifies:

prefix: /opt/apache-httpd-2_0_36
#...
datadir: /var${prefix}/share
installbuilddir: ${datadir}/build

The apxs script ends up with this in it:

my $prefix = "/opt/apache-httpd-2_0_36";
my $CFG_PREFIX = $prefix;

# read the configuration variables once
my %config_vars = ();
get_config_vars("$prefix/build/config_vars.mk",\%config_vars);

The first parameter to "get_config_vars" should be the
installbuilddir from the "config.layout" entry.

Here's the full config.layout entry I'm using in case you need to
run some more tests on it, but note my remarks afterwards.

# According to the Linux Filesystem Hierarchy Standard 2.2 (FHS) with
# the full product name and version in the directory names. For more
# information see the specification at http://www.pathname.com/fhs/.
#
<Layout LinuxFHSFullName>
prefix: /opt/apache-httpd-2_0_36
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/libexec
mandir: ${prefix}/man
sysconfdir: /etc${prefix}
datadir: /var${prefix}/share
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/htdocs
manualdir: ${prefix}/manual
cgidir: ${datadir}/cgi-bin
includedir: ${prefix}/include
localstatedir: /var${prefix}
runtimedir: /var/run/apache-httpd-2_0_36
logfiledir: /var/log/apache-httpd-2_0_36
proxycachedir: /var/cache/www/apache-httpd-2_0_36/proxy
</Layout>

Here's the configure command line I used:

$ ./configure --enable-layout=LinuxFHSFullName \
--enable-modules="rewrite auth-dbm so ssl"

Unless you're working with a later version than 2.0.36, you'll need
to create "runtimedir" by hand after installing (bug #9233).

Hope that helps,
Jonathan Knispel

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org