aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-09-09 02:34:17 +0000
committerGlenn Morris2009-09-09 02:34:17 +0000
commit07cd41530f4ab95111a468ac6ed1453a3a430796 (patch)
treecafa6517f1bf06c7e49dfc9e7231d044e0687399
parenta82a8b75191d3696a075e6a27ee6331fce1b3580 (diff)
downloademacs-07cd41530f4ab95111a468ac6ed1453a3a430796.tar.gz
emacs-07cd41530f4ab95111a468ac6ed1453a3a430796.zip
(install-arch-indep): Don't recursively change perms of
site-lisp and infodir. There may be non-Emacs files in here, and the files supplied by Emacs are all handled explicitly already. (Bug#3800) (mkdir): Set umask to world-readable before creating directories. mkinstalldirs already checks if dirs exist, don't duplicate this test.
-rw-r--r--ChangeLog8
-rw-r--r--Makefile.in16
2 files changed, 16 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index ceddd01aa06..dae6e155d89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
12009-09-09 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (install-arch-indep): Don't recursively change perms of
4 site-lisp and infodir. There may be non-Emacs files in here, and the
5 files supplied by Emacs are all handled explicitly already. (Bug#3800)
6 (mkdir): Set umask to world-readable before creating directories.
7 mkinstalldirs already checks if dirs exist, don't duplicate this test.
8
12009-08-29 Glenn Morris <rgm@gnu.org> 92009-08-29 Glenn Morris <rgm@gnu.org>
2 10
3 * Makefile.in (info-real): Don't ignore errors from doc Makefiles. 11 * Makefile.in (info-real): Don't ignore errors from doc Makefiles.
diff --git a/Makefile.in b/Makefile.in
index 80995cd32a6..869411e43e7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -587,7 +587,7 @@ install-arch-indep: mkdir info install-etc
587 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ 587 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
588 done; \ 588 done; \
589 else true; fi 589 else true; fi
590 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} $(DESTDIR)${datadir}/emacs/site-lisp ${COPYDESTS} $(DESTDIR)${infodir} 590 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS}
591 thisdir=`/bin/pwd`; \ 591 thisdir=`/bin/pwd`; \
592 cd ${mansrcdir}; \ 592 cd ${mansrcdir}; \
593 for page in ${MAN_PAGES}; do \ 593 for page in ${MAN_PAGES}; do \
@@ -623,11 +623,10 @@ install-strip:
623### we may be creating several layers of directories (for example, 623### we may be creating several layers of directories (for example,
624### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs 624### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs
625### instead of mkdir. Not all systems' mkdir programs have the `-p' flag. 625### instead of mkdir. Not all systems' mkdir programs have the `-p' flag.
626### We set the umask so that any created directories are world-readable.
627### FIXME it would be good to warn about non-standard permissions of
628### pre-existing directories, but that does not seem easy.
626mkdir: FRC 629mkdir: FRC
627 if [ -d $(DESTDIR)${datadir} ]; then true; else \
628 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir}; \
629 chmod a+r $(DESTDIR)${datadir};\
630 fi
631 icondirs= ; \ 630 icondirs= ; \
632 for dir in $(iconsrcdir)/*/*/apps $(iconsrcdir)/*/*/mimetypes; do \ 631 for dir in $(iconsrcdir)/*/*/apps $(iconsrcdir)/*/*/mimetypes; do \
633 if [ -d $${dir} ]; then \ 632 if [ -d $${dir} ]; then \
@@ -635,7 +634,9 @@ mkdir: FRC
635 fi ; \ 634 fi ; \
636 done ; \ 635 done ; \
637 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \ 636 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \
638 $(srcdir)/mkinstalldirs ${COPYDESTS} $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ 637 umask 022 ; \
638 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir} ${COPYDESTS} \
639 $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \
639 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ 640 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \
640 $(DESTDIR)${datadir}/emacs/site-lisp \ 641 $(DESTDIR)${datadir}/emacs/site-lisp \
641 $(DESTDIR)${datadir}/emacs/${version}/site-lisp \ 642 $(DESTDIR)${datadir}/emacs/${version}/site-lisp \
@@ -643,8 +644,7 @@ mkdir: FRC
643 $(DESTDIR)${desktopdir} $${icondirs} 644 $(DESTDIR)${desktopdir} $${icondirs}
644 645
645### Delete all the installed files that the `install' target would 646### Delete all the installed files that the `install' target would
646### create (but not the noninstalled files such as `make all' would 647### create (but not the noninstalled files such as `make all' would create).
647### create).
648### 648###
649### Don't delete the lisp and etc directories if they're in the source tree. 649### Don't delete the lisp and etc directories if they're in the source tree.
650uninstall: 650uninstall: