unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* abbrev file and -batch
@ 2007-02-23 17:36 Dan Nicolaescu
  2007-02-24  8:28 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Nicolaescu @ 2007-02-23 17:36 UTC (permalink / raw)
  To: emacs-devel



I got an error when using "sudo" to build an emacs rpm. (i.e. "sudo root")
The error looks like this:

../src/bootstrap-emacs -batch --no-site-file --multibyte -l autoload --eval '(setq generated-autoload-file "/usr/src/redhat/BUILD/emacs-22.0.93/lisp/loaddefs.el")' -f batch-update-autoloads $wins
Directories: /usr/src/redhat/BUILD/emacs-22.0.93/lisp/. /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./net /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./mh-e /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./calendar /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./progmodes /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./eshell /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./erc /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./mail /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./language /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./emacs-lisp /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./calc /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./gnus /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./textmodes /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./international /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./emulation /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./url /usr/src/redhat/BUILD/emacs-22.0.93/lisp/./play
Cannot open load file: ~/.abbrev_defs
make[2]: *** [autoloads] Error 255
make[2]: Leaving directory `/usr/src/redhat/BUILD/emacs-22.0.93/lisp'
make[1]: *** [bootstrap-build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/emacs-22.0.93'
make: *** [bootstrap] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.82722 (%build)

The problem is that the permissions for ~/.abbrev_defs (which is ~dann/.abbrev_defs) are -rw------- 
~ is NFS mounted, so ~/.abbrev_defs is not readable when using "sudo"

The test for abbrev-file-name in startup.el can be changed from:
  (if (file-exists-p abbrev-file-name)
to
  (if (and (file-exists-p abbrev-file-name) (file-readable-p abbrev-file-name))

But also, should the abbrev file even be loaded when using -batch ? 

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

* Re: abbrev file and -batch
  2007-02-23 17:36 abbrev file and -batch Dan Nicolaescu
@ 2007-02-24  8:28 ` Richard Stallman
  2007-02-24 18:30   ` Dan Nicolaescu
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2007-02-24  8:28 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

    The test for abbrev-file-name in startup.el can be changed from:
      (if (file-exists-p abbrev-file-name)
    to
      (if (and (file-exists-p abbrev-file-name) (file-readable-p abbrev-file-name))

    But also, should the abbrev file even be loaded when using -batch ? 

I think it should not be.  But maybe we should not risk changing that now.
Let's install your patch instead, and make a note to turn it off
entirely in the -batch case after the release.

Can you install that?

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

* Re: abbrev file and -batch
  2007-02-24  8:28 ` Richard Stallman
@ 2007-02-24 18:30   ` Dan Nicolaescu
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Nicolaescu @ 2007-02-24 18:30 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

  >     The test for abbrev-file-name in startup.el can be changed from:
  >       (if (file-exists-p abbrev-file-name)
  >     to
  >       (if (and (file-exists-p abbrev-file-name) (file-readable-p abbrev-file-name))
  > 
  >     But also, should the abbrev file even be loaded when using -batch ? 
  > 
  > I think it should not be.  But maybe we should not risk changing that now.
  > Let's install your patch instead, and make a note to turn it off
  > entirely in the -batch case after the release.
  > 
  > Can you install that?

Done.

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

end of thread, other threads:[~2007-02-24 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-23 17:36 abbrev file and -batch Dan Nicolaescu
2007-02-24  8:28 ` Richard Stallman
2007-02-24 18:30   ` Dan Nicolaescu

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).