all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* local.mk and SUDO
@ 2012-04-27 12:35 Martyn Jago
  2012-04-27 18:11 ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: Martyn Jago @ 2012-04-27 12:35 UTC (permalink / raw)
  To: emacs-orgmode


I have a local.mk set up with my particular settings, and with SUDO
set to blank, as per the comment in default.mk:

,----[default.mk]
| # How to obtain administrative privileges
| # SUDO	= 	# leave blank if you don't need this
| SUDO	= sudo
`----

...since my org-mode files location doesn't require supervisor access
(typically I have 4 org-mode installs, and 4 Emacs versions for testing,
although currently I'm just running my working system).

However, when I've just gone to run `make up2' (awesome command by the
way), I get the error:

--8<---------------cut here---------------start------------->8---
> make up2
git remote update
Fetching origin
git pull
Updating abd49c8..0233eb9
error: Your local changes to the following files would be overwritten by merge:
	contrib/lisp/org-export.el
	lisp/ob-R.el
	lisp/ob-python.el
	lisp/ob.el
	lisp/org-agenda.el
	lisp/org-beamer.el
	lisp/org-bibtex.el
	lisp/org-capture.el
	lisp/org-clock.el
	lisp/org-colview-xemacs.el
	lisp/org-colview.el
	lisp/org-ctags.el
	lisp/org-exp.el
	lisp/org-faces.el
	lisp/org-footnote.el
	lisp/org-gnus.el
	lisp/org-latex.el
	lisp/org-mouse.el
	lisp/org-odt.el
	lisp/org-publish.el
	lisp/org-table.el
	lisp/org.el
--8<---------------cut here---------------end--------------->8---

After investigation it turns out the problem is a permissions issue:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
old mode 100644
new mode 100755
--8<---------------cut here---------------end--------------->8---

After further investigation, I have modified git config to overide the
core.filemode setting which works for me:

,----
| core.fileMode
|        If false, the executable bit differences between the index and the
|        working copy are ignored; useful on broken filesystems like FAT.
|        See git-update-index(1). True by default.
`----

--8<---------------cut here---------------start------------->8---
git config core.filemode false
--8<---------------cut here---------------end--------------->8---


So really - this is just a heads-up of my experience setting SUDO to
blank, but it would be nice to know if this is expected behavior? If it
turns out that it is, then perhaps I can supply a documentation patch
(an extra comment in default.mk).

HTH

Best, Martyn

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

end of thread, other threads:[~2012-04-29 21:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27 12:35 local.mk and SUDO Martyn Jago
2012-04-27 18:11 ` Achim Gratz
2012-04-27 20:02   ` Martyn Jago
2012-04-27 22:57     ` Achim Gratz
2012-04-29 12:59       ` Martyn Jago
2012-04-29 21:57         ` Achim Gratz

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.