aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2017-03-24 10:09:25 -0500
committerPaul Eggert2017-03-24 10:09:54 -0500
commit211d41a6fe23fefef0e29d036d8599716e484657 (patch)
tree08874165118af2ed30b9d98d0a6d9974f778ba92 /lib-src
parente69a5f5e456b39ad37f7d622386063548bea8208 (diff)
downloademacs-211d41a6fe23fefef0e29d036d8599716e484657.tar.gz
emacs-211d41a6fe23fefef0e29d036d8599716e484657.zip
Don’t require chown/chgrp for game installation
Problem reported by Joseph Mingrone in: http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00622.html * lib-src/Makefile.in (exp_archlibdir): Don’t fail if chown or chgrp fails with update-game-score and the game directory. Instead, expect the installer to fix this up afterwards.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/Makefile.in24
1 files changed, 15 insertions, 9 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index b2cd66c0498..086d0dc9efc 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -266,7 +266,9 @@ need-blessmail: blessmail
266maybe-blessmail: $(BLESSMAIL_TARGET) 266maybe-blessmail: $(BLESSMAIL_TARGET)
267 267
268## Install the internal utilities. Until they are installed, we can 268## Install the internal utilities. Until they are installed, we can
269## just run them directly from lib-src. 269## just run them directly from lib-src. When installing, do not give
270## up if chown or chgrp fails, as the package responsible for
271## installing Emacs can fix this problem later.
270$(DESTDIR)${archlibdir}: all 272$(DESTDIR)${archlibdir}: all
271 @echo 273 @echo
272 @echo "Installing utilities run internally by Emacs." 274 @echo "Installing utilities run internally by Emacs."
@@ -283,15 +285,19 @@ $(DESTDIR)${archlibdir}: all
283 touch "$(DESTDIR)${gamedir}/snake-scores" \ 285 touch "$(DESTDIR)${gamedir}/snake-scores" \
284 "$(DESTDIR)${gamedir}/tetris-scores" 286 "$(DESTDIR)${gamedir}/tetris-scores"
285 ifneq (,$(gameuser)) 287 ifneq (,$(gameuser))
286 chown ${gameuser} "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" 288 -chown ${gameuser} \
287 chmod u+s,go-r "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" 289 "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" \
288 chown ${gameuser} "$(DESTDIR)${gamedir}" 290 "$(DESTDIR)${gamedir}" && \
289 chmod u=rwx,g=rx,o=rx "$(DESTDIR)${gamedir}" 291 chmod u+s,go-r \
292 "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && \
293 chmod u=rwx,g=rx,o=rx "$(DESTDIR)${gamedir}"
290 else 294 else
291 chgrp ${gamegroup} "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" 295 -chgrp ${gamegroup} \
292 chmod g+s,o-r "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" 296 "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && \
293 chgrp ${gamegroup} "$(DESTDIR)${gamedir}" 297 "$(DESTDIR)${gamedir}" && \
294 chmod u=rwx,g=rwx,o=rx "$(DESTDIR)${gamedir}" 298 chmod g+s,o-r \
299 "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && \
300 chmod u=rwx,g=rwx,o=rx "$(DESTDIR)${gamedir}"
295 endif 301 endif
296 endif 302 endif
297 exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd` && \ 303 exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd` && \