FS#50874 - [emacs] use --with-gameuser configure option

Attached to Project: Arch Linux
Opened by Jonathan Kotta (jpkotta) - Thursday, 22 September 2016, 20:49 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 19 June 2018, 06:20 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Emacs 25 has a new configure option --with-gameuser, which will set the owner/group of /var/games/emacs/. This will simplify the package() function.

Add `--with-gameuser=:games` to the configure command.

Remove
```
chmod 775 "$pkgdir"/var/games/emacs
chmod 664 "$pkgdir"/var/games/emacs/*
chown -R root:games "$pkgdir"/var/games
```
from the package() function (but keep the `chmod 775 /var/games`).

See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=emacs-lucid.

The blank score files are still owned by root:root, but the update script is SETGID so it can still update the score files.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 19 June 2018, 06:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  see last comment
Comment by Davor Rotim (drot) - Sunday, 20 November 2016, 14:36 GMT
We can also add `--program-transform-name='s/^ctags$/ctags.emacs/'` to the configure command to delete the ctags workaround:

```
# remove conflict with ctags package
mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
```

Source:
https://www.topbug.net/blog/2016/11/10/installing-emacs-from-source-avoid-the-conflict-of-ctags/
Comment by Jonathan Kotta (jpkotta) - Monday, 18 June 2018, 15:47 GMT
The default value of this option is now `no` (in emacs 26), which makes it not create anything in /var/games in the first place.

Loading...