[asterisk-dev] DESTDIR vs INSTALL_PATH ?

Simon Perreault simon.perreault at viagenie.ca
Sun Dec 9 08:59:50 CST 2007


On Sunday 09 December 2007 09:16:18 Luigi Rizzo wrote:
>    PROPOSED FIX: prepend ${DESTDIR} to all the entries in [directories]
>    in the code that creates asterisk.conf . This should not break anything.

I violently disagree. This is not the common use of DESTDIR (by common I mean 
what people using ./configure expect it to do). It is commonly used to 
temporarily install to another directory. DESTDIR should only affect the 
commands used for installing files, not the content of the files themselves.

For example, when building an RPM file, DESTDIR is used to install to a 
temporary directory so that you don't overwrite your system files. Then the 
files are packaged into a .rpm which will later get installed in the right 
place. You don't want asterisk.conf to reflect this temporary directory.

What should be prepended in the asterisk.conf directories section is the 
prefix. This is what gets passed to the --prefix configure option.



More information about the asterisk-dev mailing list