all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Makefile.in: $LOGNAME and $USERNAME not always set
@ 2007-10-26  7:24 William Xu
  2007-10-26 18:34 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: William Xu @ 2007-10-26  7:24 UTC (permalink / raw)
  To: emacs-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-27  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26  7:24 Makefile.in: $LOGNAME and $USERNAME not always set William Xu
2007-10-26 18:34 ` Stefan Monnier
2007-10-27  2:13   ` CHENG Gao

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.