[asterisk-bugs] [Asterisk 0013093]: ./configure --prefix=/usr/local fails to set sysconfdir properly.

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jul 16 19:22:55 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13093 
====================================================================== 
Reported By:                pabelanger
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13093
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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:              
====================================================================== 
Date Submitted:             07-16-2008 19:20 CDT
Last Modified:              07-16-2008 19:22 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
====================================================================== 

---------------------------------------------------------------------- 
 pabelanger - 07-16-08 19:22  
---------------------------------------------------------------------- 
This ofcourse causes a problem when --prefix is not set.  As the default
value it '--prefix=/usr'.  And we don't want sysconfdir in /usr by
default.

Of course, this could just be a typo from './configure --help' 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-16-08 19:22  pabelanger     Note Added: 0090373                          
======================================================================




More information about the asterisk-bugs mailing list