Adrian.Aichner(a)t-online.de (Adrian Aichner) writes:
what does
xemacs -vanilla -debug-paths
give you?
Thanks, this helped me find out the cause -- for some weird reason KDE
2.1 seem to set umask to 077 (failsafe X logins are 022), so when I
install xemacs, /usr/local/lib/xemacs-21.2-b46 will be unreadable for
everyone else. Sigh. Attached patch makes sure we run "umask 022"
for all directories (earlier it was only done for some directories).
Index: Makefile.in.in
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/Attic/Makefile.in.in,v
retrieving revision 1.1.2.28
diff -u -r1.1.2.28 Makefile.in.in
--- Makefile.in.in 2001/02/06 13:34:57 1.1.2.28
+++ Makefile.in.in 2001/03/25 12:01:10
@@ -439,7 +439,7 @@
# endif /* CYGWIN */
#endif /* WIN32_NATIVE */
if test "${prefix}" != "${exec_prefix}"; then \
- $(MAKEPATH) ${exec_prefix}/lib/${instvardir}; \
+ umask 022 && $(MAKEPATH) ${exec_prefix}/lib/${instvardir}; \
for dir in \
lib/${inststaticdir} \
lib/${instvardir}/etc \
@@ -461,7 +461,7 @@
done
-set ${COPYDESTS} ; \
for dir in ${COPYDESTS} ; do \
- if test ! -d $${dir} ; then mkdir $${dir} ; fi ; \
+ if test ! -d $${dir} ; then umask 022 && mkdir $${dir} ; fi ; \
done ; \
for dir in ${COPYDIR} ; do \
dest=$$1 ; shift ; \
@@ -506,8 +506,8 @@
## (e.g. /usr/local/lib/${PROGNAME}-20.5/sparc-sun-solaris2.6), we use
## make-path instead of mkdir. Not all mkdirs have the `-p' flag.
mkdir: FRC.mkdir
- ${MAKEPATH} ${COPYDESTS} ${docdir} ${infodir} ${archlibdir} \
- ${mandir} ${bindir} ${datadir} ${libdir} ${pkgdir} \
+ umask 022 && ${MAKEPATH} ${COPYDESTS} ${docdir} ${infodir} \
+ ${archlibdir} ${mandir} ${bindir} ${datadir} ${libdir} ${pkgdir} \
${sitelispdir} ${moduledir} ${sitemoduledir}
## Delete all the installed files that the `install' target would