Bug 1227737 - Emacs bring some unneeded packages
Summary: Emacs bring some unneeded packages
Status: RESOLVED INVALID
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-13 02:47 UTC by Walddys Emmanuel Dorrejo Céspedes
Modified: 2024-07-16 06:44 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walddys Emmanuel Dorrejo Céspedes 2024-07-13 02:47:59 UTC
Today installing emacs, found that it brings system-user-games

zypper install emacs
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: 1: the to be installed emacs-29.4-3.1.x86_64 requires 'group(games)', but this requirement cannot be provided
not installable providers: system-user-games-20170617-25.4.noarch[repo-oss]

 Solution 1: do not install emacs-29.4-3.1.x86_64
 Solution 2: remove lock to allow installation of system-user-games-20170617-25.4.noarch[repo-oss]
 Solution 3: break emacs-29.4-3.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/c/d/?] (c): 3
Comment 1 Andreas Stieger 2024-07-13 06:53:49 UTC
Emacs requires group(games) and user(games), which is provided by said package. This is intentional, emacs contains some games.

From 2018: https://build.opensuse.org/request/show/619898

> +- Re-enable games with GNU Emacs which requires system-user-games 
> [...]
> + BuildRequires:  system-user-games
> [...]
> +         --with-gameuser=:games \

Closing as invalid as the package is not, in fact, unneeded.
Comment 2 Dr. Werner Fink 2024-07-15 06:33:36 UTC
(In reply to Andreas Stieger from comment #1)
> Emacs requires group(games) and user(games), which is provided by said
> package. This is intentional, emacs contains some games.

Indeed https://www.emacswiki.org/emacs/CategoryGames ... also there are ELPA/MELPA games like chess
Comment 3 Walddys Emmanuel Dorrejo Céspedes 2024-07-15 11:03:23 UTC
I understand, but like a IDE, bring too much package. looks like I will have to compile my own emacs for a more dev focus.

A good way would put games in a independent package  and only setup the IDE and let the user setup what it need.

Because I use emacs for servers and bring a lot of unneeded packages.
Comment 4 Walddys Emmanuel Dorrejo Céspedes 2024-07-15 15:40:21 UTC
I think, removing at least for leap 15.6 in server, it's valid change:

The following 6 NEW packages are going to be installed:
emacs emacs-info emacs-nox etags liblcms2-2 system-user-games
Comment 5 Andreas Stieger 2024-07-15 15:54:58 UTC
Well, emacs isn't really suitable for servers. :-)
Any such change would need to go through Tumbleweed first.

I am sure that Wolfgang would review any well made proposed changes to the package spec that cleanly separates the emacs games, and the system user requirement, into a subpackage to more cleanly separate run-time requirements.
Comment 6 Dr. Werner Fink 2024-07-16 06:44:59 UTC
(In reply to Andreas Stieger from comment #5)
> Well, emacs isn't really suitable for servers. :-)
> Any such change would need to go through Tumbleweed first.
> 
> I am sure that Wolfgang would review any well made proposed changes to the
> package spec that cleanly separates the emacs games, and the system user
> requirement, into a subpackage to more cleanly separate run-time
> requirements.

My forename is Werner ... nevertheless what advantage would have a futher emacs version beside emacs-nox, emacs-x11, and emacs-gtk ... and this for a package system-user-games with the content:

 > rpm -ql system-user-games
 /usr/lib/sysusers.d/system-user-games.conf
 /var/games

which in fact triggers the creation of group and user games:

 > cat /usr/lib/sysusers.d/system-user-games.conf
 # Type Name ID GECOS [HOME]
 g games -
 u games - "Games account" /var/games

and even if you do skip the configure option --with-gameuser or choose
--without-gameuser ... the games are there and I'll not go and strip those
and make Tools->Games disapear as well as the Emacs Psychotherapist.
Nor will I close the ELPA/MELPA chanel builtin in emacs to forbid users
to load games from elpa (compare with C-h C-e) ...

In fact what is your problem with /var/games and user:group games on a server?

Beside this etags is a tool for emacs to set/use tags within source coodes:

 > rpm -qi etags | sed -rn '/^Description/,/^Description/p'
 Description :
 ETags generates tag files from source code in Pascal, Cobol, Ada, Perl,
 LaTeX, Scheme, Emacs Lisp/Common Lisp, Postscript, Erlang, Python, Prolog,
 and most assembler-like syntaxes.
 Distribution: openSUSE Tumbleweed

and liblcms2-2 is triggered by

 > ldd /usr/bin/emacs-nox | grep liblcms2
        liblcms2.so.2 => /lib64/liblcms2.so.2 (0x00007fcfe7599000)
 > rpm -qf /lib64/liblcms2.so.2
 liblcms2-2-2.16-1.2.x86_64