unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
@ 2009-07-09 20:12 Nelson H. F. Beebe
  0 siblings, 0 replies; 8+ messages in thread
From: Nelson H. F. Beebe @ 2009-07-09 20:12 UTC (permalink / raw)
  To: emacs-pretest-bug; +Cc: beebe

I'm doing "make install" for several builds of emacs-23.0.96, and I
just noticed this output (with the GNU default of prefix=/usr/local):

chmod -R a+r \
	/usr/local/share/emacs/23.0.96 \
	/usr/local/share/emacs/site-lisp \
	/usr/local/share/emacs/23.0.96/etc \
	/usr/local/share/emacs/23.0.96/lisp \
	/usr/local/share/info

While it is appropriate to run chmod at installation time for a
package's own files, it is HIGHLY INAPPROPRIATE to run chmod on
directories and files belonging to other packages.  The directories

	/usr/local/share/emacs/site-lisp
	/usr/local/share/info

need to be removed from the install command chmod processing.

Their contents, and file permissions, are not the business of
emacs-x.y.z release installations.  A given site, including ours, may
have local reasons for nondefault permissions in those directories.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------





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

* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
@ 2009-07-12 18:50 Chong Yidong
  2009-07-13  0:31 ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2009-07-12 18:50 UTC (permalink / raw)
  To: Nelson H. F. Beebe; +Cc: 3800

> chmod -R a+r \
> 	/usr/local/share/emacs/23.0.96 \
> 	/usr/local/share/emacs/site-lisp \
> 	/usr/local/share/emacs/23.0.96/etc \
> 	/usr/local/share/emacs/23.0.96/lisp \
> 	/usr/local/share/info
>
> While it is appropriate to run chmod at installation time for a
> package's own files, it is HIGHLY INAPPROPRIATE to run chmod on
> directories and files belonging to other packages.  The directories
>
> 	/usr/local/share/emacs/site-lisp
> 	/usr/local/share/info
>
> need to be removed from the install command chmod processing.

Fair enough.  But the installation process needs to read the contents of
/usr/local/share/emacs/site-lisp and /usr/local/share/info in order to
function properly.

How about doing `u+r' instead of `a+r' for those directories?





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

* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
  2009-07-12 18:50 bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior Chong Yidong
@ 2009-07-13  0:31 ` Glenn Morris
  2009-07-13  2:44   ` Chong Yidong
  2009-07-13 19:03   ` Nelson H. F. Beebe
  0 siblings, 2 replies; 8+ messages in thread
From: Glenn Morris @ 2009-07-13  0:31 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 3800, Nelson H. F. Beebe

Chong Yidong wrote:

>> chmod -R a+r \
[...]
> Fair enough.  But the installation process needs to read the contents of
> /usr/local/share/emacs/site-lisp and /usr/local/share/info in order to
> function properly.
>
> How about doing `u+r' instead of `a+r' for those directories?

("u" is probably root when installing)

I imagine it is the "-R" that is the problem. I guess the install
should make sure the directories themselves, and those files we
install in them, are readable, but leave other things under these
directories alone.





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

* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
  2009-07-13  0:31 ` Glenn Morris
@ 2009-07-13  2:44   ` Chong Yidong
  2009-07-13  6:30     ` Glenn Morris
  2009-07-13 19:03   ` Nelson H. F. Beebe
  1 sibling, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2009-07-13  2:44 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 3800, Nelson H. F. Beebe

Glenn Morris <rgm@gnu.org> writes:

> I imagine it is the "-R" that is the problem. I guess the install
> should make sure the directories themselves, and those files we
> install in them, are readable, but leave other things under these
> directories alone.

No, the reporter specifically complained about making these readable:

	/usr/local/share/emacs/site-lisp
	/usr/local/share/info





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

* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
  2009-07-13  2:44   ` Chong Yidong
@ 2009-07-13  6:30     ` Glenn Morris
  2009-07-13  6:44       ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2009-07-13  6:30 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 3800, Nelson H. F. Beebe

Chong Yidong wrote:

> No, the reporter specifically complained about making these readable:
>
> 	/usr/local/share/emacs/site-lisp
> 	/usr/local/share/info

That I can't understand.

Super-top-secret info files can be installed in a non-standard
location, and added to the INFOPATH of those who need them.
Ditto with site-lisp-files-that-aren't-really-site-lisp-files.

Or emacs can be installed somewhere else than /usr/local.






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

* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
  2009-07-13  6:30     ` Glenn Morris
@ 2009-07-13  6:44       ` Glenn Morris
  2009-07-13 19:04         ` Nelson H. F. Beebe
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2009-07-13  6:44 UTC (permalink / raw)
  To: 3800; +Cc: Chong Yidong, Nelson H. F. Beebe

Glenn Morris wrote:

> Chong Yidong wrote:
>
>> No, the reporter specifically complained about making these readable:
>>
>> 	/usr/local/share/emacs/site-lisp
>> 	/usr/local/share/info
>
> That I can't understand.

But if that is the issue, how about only setting the permissions if we
create those directories?






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

* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
  2009-07-13  0:31 ` Glenn Morris
  2009-07-13  2:44   ` Chong Yidong
@ 2009-07-13 19:03   ` Nelson H. F. Beebe
  1 sibling, 0 replies; 8+ messages in thread
From: Nelson H. F. Beebe @ 2009-07-13 19:03 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Chong Yidong, beebe

>> I imagine it is the "-R" that is the problem. I guess the install
>> should make sure the directories themselves, and those files we
>> install in them, are readable ...

The permissions of directories not owned by the package must not
be touched.  If a specific permission mode is needed, and an
existing file or directory lacks that permission, then "make install"
should warn about the problem.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------





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

* bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior
  2009-07-13  6:44       ` Glenn Morris
@ 2009-07-13 19:04         ` Nelson H. F. Beebe
  0 siblings, 0 replies; 8+ messages in thread
From: Nelson H. F. Beebe @ 2009-07-13 19:04 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 3800, Chong Yidong, Nelson H. F. Beebe

>> how about only setting the permissions if we create those directories?

That is fine, because there is no change to the permissions of
existing files and subdirectories.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------





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

end of thread, other threads:[~2009-07-13 19:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-12 18:50 bug#3800: [emacs-devel] emacs-23.0.96 make install misbehavior Chong Yidong
2009-07-13  0:31 ` Glenn Morris
2009-07-13  2:44   ` Chong Yidong
2009-07-13  6:30     ` Glenn Morris
2009-07-13  6:44       ` Glenn Morris
2009-07-13 19:04         ` Nelson H. F. Beebe
2009-07-13 19:03   ` Nelson H. F. Beebe
  -- strict thread matches above, loose matches on Subject: below --
2009-07-09 20:12 Nelson H. F. Beebe

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).