Package: emacs
Version: 1:30.2+1-3
Severity: wishlist

As GCC now defaults to version 15 in Forky, it would be great that Emacs
also builds against GCC 15 to avoid having to keep 2 versions of GCC.

A tentative patch is attached.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.10+deb14-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages emacs depends on:
ii  emacs-gtk  1:30.2+1-3

emacs recommends no packages.

emacs suggests no packages.

-- no debconf information

-- 
Regards,
Xiyue Deng
From b9f5c85eed5b2c156258e2328a5081c98f1edd99 Mon Sep 17 00:00:00 2001
From: Xiyue Deng <[email protected]>
Date: Mon, 8 Jun 2026 21:18:44 -0700
Subject: [PATCH] Update to GCC 15

---
 debian/control | 4 ++--
 debian/rules   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index f42b206a103..1626387da7e 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Build-Depends:
  bsd-mailx | mailx,
  ca-certificates,
  dbus-x11,
- gcc-14,
+ gcc-15,
  debhelper-compat (= 13),
  dpkg-dev (>> 1.10.0),
  git,
@@ -18,7 +18,7 @@ Build-Depends:
  libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64],
  libcairo-dev,
  libdbus-1-dev,
- libgccjit-14-dev,
+ libgccjit-15-dev,
  libgif-dev,
  libgmp-dev,
  libgnutls28-dev,
diff --git a/debian/rules b/debian/rules
index 86f8074a038..644aae4149f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -319,7 +319,7 @@ confflags_lucid += --without-gsettings
 define cfg_tree
   cd $(1) && \
     CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
-    CC=gcc-14 \
+    CC=gcc-15 \
     REL_ALLOC=no \
       $(CURDIR)/debian/build-src/configure $(confflags) $(2)
 endef
-- 
2.53.0

Attachment: signature.asc
Description: PGP signature

Reply via email to