With clisp-2.47 and clisp-2.48 (probably also with older releases),
configure fails to install on MacOSX (and probably other BSD systems) when
root is needed:
Test passed.
su: illegal option -- c
usage: su [-] [-flm] [login [args]]
Modifying configure tail to something like the following should work
better:
if test -n "$do_install"; then
dosu=0
# check whether the destination is writable
if touch ${prefix}/abazonk 2>/dev/null ; then
rm -f ${prefix}/abazonk
if touch ${exec_prefix}/abazonk 2>/dev/null ; then
rm -f ${prefix}/abazonk
else
dosu=1
fi
else
dosu=1
fi
my_su(){
if [ $dosu -eq 0 ] ; then
"$@"
else
case "$(uname)" in
Darwin) su root -c "$@" ;;
*) su -c "$@" root ;;
esac
fi
}
cd "$ABS_DIRNAME"
my_su make install
fi
Sam Steingold
clisp
build problems
Public
|
Date: 2009-08-24 02:20 This Tracker item was closed automatically by the system. It was |
|
Date: 2009-08-09 05:20 I removed --install altogether; this closes the issue |
|
Date: 2009-08-07 21:46 I agree that that detail of the installation phase is better left up to the |
|
Date: 2009-08-07 20:54 yeah, sounds like the best solution is to remove the "install" command |
|
Date: 2009-08-07 20:49 'root' does not need to exist or have a password. On the MacOS X 10.5 box I |
|
Date: 2009-08-07 20:47 At least su root -c "make install" works both on Darwin and Linux. |
|
Date: 2009-08-07 20:37 I think "su root -c foo" would work on other platforms too. |
|
Date: 2009-08-07 20:11 Notice the syntax of su on Darwin. Anything following the login name is |
|
Date: 2009-08-07 19:45 your version also uses "-c". |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2009-08-09 05:20 | 2009-08-24 02:20 | sf-robot |
| allow_comments | 1 | 2009-08-24 02:20 | sf-robot |
| status_id | Pending | 2009-08-24 02:20 | sf-robot |
| close_date | - | 2009-08-09 05:20 | sds |
| resolution_id | None | 2009-08-09 05:20 | sds |
| status_id | Open | 2009-08-09 05:20 | sds |
| assigned_to | haible | 2009-08-07 19:45 | sds |