Summary: | ASTERISK-15587: make install fails when GNU install missing | ||
Reporter: | Ben Klang (bklang) | Labels: | |
Date Opened: | 2010-02-05 18:46:20.000-0600 | Date Closed: | 2017-12-12 20:20:11.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/Portability |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I am marking this as a portability bug. Even though this problem could exist on Linux, the fact that the "install" binary is provided by GNU coreutils means that a Linux system would have to be pretty broken not to have it. So this problem will only manifest on systems where coreutils is not installed, or the "install" binary is otherwise missing. The build system creates an install-sh drop-in replacement if the "install" binary is missing. However, the path to the script is referenced as ./ which causes subdirectories to break when calling for the install-sh script. The variable for INSTALL is populated in makeopts so this might actually be a problem with menuselect. One workaround I used was to fully qualify the path to the install-sh script. ****** STEPS TO REPRODUCE ****** This is what you will see when running "make install" without a native install binary available: <snip lots of other make install output...> make[1]: Leaving directory `/home/admin/asterisk-1.6.2.svn/sounds' mkdir -p /opt/asterisk/lib/modules mkdir -p /opt/asterisk/sbin mkdir -p /var/etc/asterisk mkdir -p /opt/asterisk/bin mkdir -p /var/run/asterisk mkdir -p /var/spool/asterisk/voicemail mkdir -p /var/spool/asterisk/dictate mkdir -p /var/spool/asterisk/system # NOTE: Names of _INCLUDE and _LIB entries in this file must be mkdir -p /var/spool/asterisk/tmp mkdir -p /var/spool/asterisk/meetme mkdir -p /var/spool/asterisk/monitor # NOTE: Names of _INCLUDE and _LIB entries in this file must be /bin/sh[2]: ./install-sh: not found [No such file or directory] /bin/sh[2]: ./install-sh: not found [No such file or directory] /bin/sh[2]: ./install-sh: not found [No such file or directory] /bin/sh[2]: ./install-sh: not found [No such file or directory] /bin/sh[2]: ./install-sh: not found [No such file or directory] /bin/sh[2]: ./install-sh: not found [No such file or directory] /bin/sh[2]: ./install-sh: not found [No such file or directory] /bin/sh[2]: ./install-sh: not found [No such file or directory] make[1]: *** [install] Error 127 make: *** [utils-install] Error 2 | ||
Comments: | By: Corey Farrell (coreyfarrell) 2017-12-12 20:20:11.995-0600 It appears this was fixed by commit 1ca8b2d482529a38d934f0626a376f8f027dc61c svn r259847. |