[asterisk-bugs] [Asterisk 0013093]: ./configure --prefix=/usr/local fails to set sysconfdir properly.
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jul 30 16:12:45 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13093
======================================================================
Reported By: pabelanger
Assigned To: svnbot
======================================================================
Project: Asterisk
Issue ID: 13093
Category: Core/BuildSystem
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 131570
Disclaimer on File?: N/A
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2008-07-16 19:20 CDT
Last Modified: 2008-07-30 16:12 CDT
======================================================================
Summary: ./configure --prefix=/usr/local fails to set
sysconfdir properly.
Description:
According to './configure --help'
---
...
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
...
...
---
The sysconfdir should take [PREFIX/etc] by default. So, I can assume if
prefix is not set, sysconfdir=/etc
but if we run './configure --prefix=/usr/local', it should be
sysconfdir=/usr/local/etc.
In makeopts we see:
sysconfdir = /etc
I believe it should be:
sysconfdir = ${prefix}/etc
======================================================================
----------------------------------------------------------------------
(0090870) qwell (administrator) - 2008-07-30 16:12
http://bugs.digium.com/view.php?id=13093#c90870
----------------------------------------------------------------------
This is not correct.
At the point where it does this checking, ${prefix} evaluates to NONE if
you did not specify --prefix, which means that ${sysconfdir} will still be
${prefix}/etc (which would be /usr/etc, which is a bit silly)
How about something like: test ${prefix} = ${ac_default_prefix} -o
${prefix} = 'NONE' ?
Also, what about ${localstatedir}? Should that always be /var?
Issue History
Date Modified Username Field Change
======================================================================
2008-07-30 16:12 qwell Note Added: 0090870
======================================================================
More information about the asterisk-bugs
mailing list