[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:34:11 CDT 2008


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

---------------------------------------------------------------------- 
 (0090871) pabelanger (reporter) - 2008-07-30 16:34
 http://bugs.digium.com/view.php?id=13093#c90871 
---------------------------------------------------------------------- 
qwell: According to --help it should also have the {prefix} ability.

---
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]
  --sharedstatedir=DIR   modifiable architecture-independent data
[PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --datarootdir=DIR      read-only arch.-independent data root
[PREFIX/share]
  --datadir=DIR          read-only architecture-independent data
[DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/asterisk]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR] 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-07-30 16:34 pabelanger     Note Added: 0090871                          
======================================================================




More information about the asterisk-bugs mailing list