[Home]

Summary:ASTERISK-15796: ./configure -help describes wrong default behavior
Reporter:klaus3000 (klaus3000)Labels:
Date Opened:2010-03-12 04:34:53.000-0600Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:{noformat}
./configure --help reports:
{noformat}

Installation directories:
{noformat}
 --prefix=PREFIX         install architecture-independent files in PREFIX
                         [/usr/local]
 --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                         [PREFIX]
{noformat}

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.


*ADDITIONAL INFORMATION*

This is wrong as Asterisk will be installed by default into /usr/sbin, not /usr/local/sbin
Comments:By: Leif Madsen (lmadsen) 2010-03-15 10:35:18

I tried looking through the configure file to see how I might change this so it'd still be dynamic, but I wasn't use where all the values were being set.

It seems like the documentation there should say something like:

Installation directories:
 --prefix=PREFIX install architecture-independent files in PREFIX
                         [/usr]
 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
                         [PREFIX]

By default, `make install' will install all the files in
`/usr/sbin', `/var/lib/asterisk' etc. You can specify
an installation prefix other than `/usr' using `--prefix',
for instance `--prefix=$HOME'.


Not sure if that is entirely right, so I'll leave it for someone better equipped than myself.

By: Digium Subversion (svnbot) 2010-06-03 20:17:11

Repository: asterisk
Revision: 267759

U   branches/1.4/configure
U   branches/1.4/configure.ac
U   branches/1.4/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r267759 | tilghman | 2010-06-03 20:16:26 -0500 (Thu, 03 Jun 2010) | 7 lines

Make the default install path appear to be /usr on Linux, instead of /usr/local.

Also, reorganize the options, so that they're more alphabetical.

(closes issue ASTERISK-15796)
Reported by: klaus3000

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=267759

By: Digium Subversion (svnbot) 2010-06-03 20:20:17

Repository: asterisk
Revision: 267775

_U  trunk/
U   trunk/configure
U   trunk/configure.ac
U   trunk/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r267775 | tilghman | 2010-06-03 20:20:17 -0500 (Thu, 03 Jun 2010) | 14 lines

Merged revisions 267759 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r267759 | tilghman | 2010-06-03 20:16:26 -0500 (Thu, 03 Jun 2010) | 7 lines
 
 Make the default install path appear to be /usr on Linux, instead of /usr/local.
 
 Also, reorganize the options, so that they're more alphabetical.
 
 (closes issue ASTERISK-15796)
  Reported by: klaus3000
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=267775

By: Digium Subversion (svnbot) 2010-06-03 20:22:45

Repository: asterisk
Revision: 267787

_U  branches/1.6.2/
U   branches/1.6.2/configure
U   branches/1.6.2/configure.ac
U   branches/1.6.2/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r267787 | tilghman | 2010-06-03 20:22:45 -0500 (Thu, 03 Jun 2010) | 21 lines

Merged revisions 267775 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r267775 | tilghman | 2010-06-03 20:20:17 -0500 (Thu, 03 Jun 2010) | 14 lines
 
 Merged revisions 267759 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r267759 | tilghman | 2010-06-03 20:16:26 -0500 (Thu, 03 Jun 2010) | 7 lines
   
   Make the default install path appear to be /usr on Linux, instead of /usr/local.
   
   Also, reorganize the options, so that they're more alphabetical.
   
   (closes issue ASTERISK-15796)
    Reported by: klaus3000
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=267787

By: Digium Subversion (svnbot) 2011-01-27 10:57:47.000-0600

Repository: asterisk
Revision: 304464

U   branches/1.4/configure
U   branches/1.4/configure.ac

------------------------------------------------------------------------
r304464 | qwell | 2011-01-27 10:57:47 -0600 (Thu, 27 Jan 2011) | 9 lines

Fix default prefix=/usr regression on non-Linux systems.

This partially reverts a change made in branches/1.4/ r267759, which will
cause issue ASTERISK-15796 to be reopened.  This issue was pointed out by a user
on #asterisk, who helpfully discovered that paths were being set incorrectly.

To truly understand what was wrong, one should run:
   svn diff --force -c<this revision> configure

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=304464

By: Jason Parker (jparker) 2011-01-27 10:59:40.000-0600

See r304464.  There's some m4_divert_text magic going on when you use AC_PREFIX_DEFAULT.  I don't know if there's a way to fix this properly.  This code isn't executed until much after the --help text would be displayed.

By: Digium Subversion (svnbot) 2011-01-27 11:01:26.000-0600

Repository: asterisk
Revision: 304465

_U  branches/1.6.2/
U   branches/1.6.2/configure
U   branches/1.6.2/configure.ac

------------------------------------------------------------------------
r304465 | qwell | 2011-01-27 11:01:25 -0600 (Thu, 27 Jan 2011) | 16 lines

Merged revisions 304464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r304464 | qwell | 2011-01-27 10:57:46 -0600 (Thu, 27 Jan 2011) | 9 lines
 
 Fix default prefix=/usr regression on non-Linux systems.
 
 This partially reverts a change made in branches/1.4/ r267759, which will
 cause issue ASTERISK-15796 to be reopened.  This issue was pointed out by a user
 on #asterisk, who helpfully discovered that paths were being set incorrectly.
 
 To truly understand what was wrong, one should run:
     svn diff --force -c<this revision> configure
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=304465

By: Digium Subversion (svnbot) 2011-01-27 11:03:03.000-0600

Repository: asterisk
Revision: 304466

_U  branches/1.8/
U   branches/1.8/configure
U   branches/1.8/configure.ac

------------------------------------------------------------------------
r304466 | qwell | 2011-01-27 11:03:02 -0600 (Thu, 27 Jan 2011) | 23 lines

Merged revisions 304465 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
 r304465 | qwell | 2011-01-27 11:01:24 -0600 (Thu, 27 Jan 2011) | 16 lines
 
 Merged revisions 304464 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r304464 | qwell | 2011-01-27 10:57:46 -0600 (Thu, 27 Jan 2011) | 9 lines
   
   Fix default prefix=/usr regression on non-Linux systems.
   
   This partially reverts a change made in branches/1.4/ r267759, which will
   cause issue ASTERISK-15796 to be reopened.  This issue was pointed out by a user
   on #asterisk, who helpfully discovered that paths were being set incorrectly.
   
   To truly understand what was wrong, one should run:
       svn diff --force -c<this revision> configure
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=304466

By: Digium Subversion (svnbot) 2011-01-27 11:03:45.000-0600

Repository: asterisk
Revision: 304467

_U  trunk/
U   trunk/configure
U   trunk/configure.ac

------------------------------------------------------------------------
r304467 | qwell | 2011-01-27 11:03:45 -0600 (Thu, 27 Jan 2011) | 30 lines

Merged revisions 304466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
 r304466 | qwell | 2011-01-27 11:03:01 -0600 (Thu, 27 Jan 2011) | 23 lines
 
 Merged revisions 304465 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.6.2
 
 ................
   r304465 | qwell | 2011-01-27 11:01:24 -0600 (Thu, 27 Jan 2011) | 16 lines
   
   Merged revisions 304464 via svnmerge from
   https://origsvn.digium.com/svn/asterisk/branches/1.4
   
   ........
     r304464 | qwell | 2011-01-27 10:57:46 -0600 (Thu, 27 Jan 2011) | 9 lines
     
     Fix default prefix=/usr regression on non-Linux systems.
     
     This partially reverts a change made in branches/1.4/ r267759, which will
     cause issue ASTERISK-15796 to be reopened.  This issue was pointed out by a user
     on #asterisk, who helpfully discovered that paths were being set incorrectly.
     
     To truly understand what was wrong, one should run:
         svn diff --force -c<this revision> configure
   ........
 ................
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=304467