#1042902 emacs-gtk: system-package-package-manager should be "apt"

Package:
emacs-gtk
Source:
emacs-gtk
Description:
GNU Emacs editor (with GTK+ GUI support)
Submitter:
Barak A. Pearlmutter
Date:
2023-08-10 09:54:03 UTC
Severity:
normal
Tags:
#1042902#5
Date:
2023-08-02 14:14:47 UTC
From:
To:
The global variable system-packages-package-manager (introduced in 29.x)
defaults to "pacman" instead of the more debian-appropriate "apt".

#1042902#10
Date:
2023-08-04 10:57:00 UTC
From:
To:
control: tag -1 + moreinfo

Hello,

Are you sure this is not coming from an addon package?  I can't find it
anywhere...

#1042902#17
Date:
2023-08-04 14:24:43 UTC
From:
To:
reassign 1042902 elpa-system-packages 1.0.11-2
thanks

The variable system-packages-package-manager gets set to "pacman"
because the executable path is searched for appropriate programs, and
"pacman" is searched for before "apt", and so if the game pacman is
installed (package pacman) and "/usr/games" is on $path because the
user is just a fun loving bloke...

I'd suggest just hard-coding it to "/usr/bin/apt" in a Debian patch.

#1042902#30
Date:
2023-08-10 04:05:44 UTC
From:
To:
Hi,

As reported in #1042902 system-packages-el in some configurations sets
its system-packages-package-manager variable to a wrong value. The
upstream documentation says that

  The package attempts to guess which package manager you use. If it
  guesses wrong (or you'd like to set it manually), you may modify the
  variable =system-packages-package-manager=.

Typically one uses apt/apt-get in Debian, so I think it is justified to
set the variable to apt by default. I can imagine someone who uses other
package managers in Debian, but guess these users are not our primary
target audience so to say.

What the team thinks about the issue? Should the variable be set to apt
by default in Debian? If yes, where would you suggest to set it?

Regards,
Lev

#1042902#35
Date:
2023-08-10 09:51:09 UTC
From:
To:
Hello,

Yes, I think it should be set.  I would do it with a quilt patch.