all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: emacs-devel@gnu.org
Subject: abbrev file and -batch
Date: Fri, 23 Feb 2007 09:36:54 -0800	[thread overview]
Message-ID: <200702231736.l1NHasRS001140@oogie-boogie.ics.uci.edu> (raw)



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 ? 

             reply	other threads:[~2007-02-23 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-23 17:36 Dan Nicolaescu [this message]
2007-02-24  8:28 ` abbrev file and -batch Richard Stallman
2007-02-24 18:30   ` Dan Nicolaescu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200702231736.l1NHasRS001140@oogie-boogie.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.