emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Makefile.in: $LOGNAME and $USERNAME not always set


From: William Xu
Subject: Makefile.in: $LOGNAME and $USERNAME not always set
Date: Fri, 26 Oct 2007 16:24:56 +0900
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (darwin)

There are some lines in Makefile.in running `chown' like this: 

,----
| find $${dest} -exec chown $${LOGNAME:-$$USERNAME} {} ';' ;\
`----

While in macosx, both LOGNAME and USERNAME is unset, thus I got lots of
chown errors while `make install': 

,----
| usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
|        chown [-fhv] [-R [-H | -L | -P]] :group file ...
`----

I checked gnu/linux, solaris, they have set $LOGNAME, $USER; macosx has
only set $USER. None of them have set $USERNAME. So it's problematic
here, expecially on macosx. When $LOGNAME is empty, can we fall down to
$USER instead?

-- 
William





reply via email to

[Prev in Thread] Current Thread [Next in Thread]