Dear Maintenars,

Now that emacs 29.1 reached Debian testing (huge thanks for that!), I have attempted a simple backport to bookworm. To my delight, with a minimal set of changes, one can successfully build and use emacs 29.1 on bookworm.

I hope that the initial patch what I have attached could help you create a proper backport in the main Debian archive.

Regards,
János Pásztor
From 29ac2f4a88846d0ba251df960fc3255870dd32d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1sztor=20J=C3=A1nos?= <pasztor.ja...@it.ppke.hu>
Date: Sun, 10 Sep 2023 10:27:33 +0200
Subject: [PATCH] Initial attempt of a simple backport

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

diff --git a/debian/changelog b/debian/changelog
index 0aa4aa439d5..1fb9a568d6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+emacs (1:29.1+1-5~bpo12+1) bookworm-backports; urgency=medium
+
+  * Rebuild for bookworm-backports.
+
+ -- Pásztor János <pasztor.ja...@it.ppke.hu>  Sun, 10 Sep 2023 10:21:03 +0200
+
 emacs (1:29.1+1-5) unstable; urgency=medium
 
   * Don't try to build with native compilation on riscv64 (Closes: #1050653).
diff --git a/debian/control b/debian/control
index 2d2a96a2471..5a06bfdc0c4 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Build-Depends:
  bsd-mailx | mailx,
  ca-certificates,
  dbus-x11,
- gcc-13,
+ gcc-12,
  debhelper-compat (= 13),
  dpkg-dev (>> 1.10.0),
  git,
@@ -19,7 +19,7 @@ Build-Depends:
  libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64],
  libcairo-dev,
  libdbus-1-dev,
- libgccjit-13-dev,
+ libgccjit-12-dev,
  libgif-dev,
  libgmp-dev,
  libgnutls28-dev,
diff --git a/debian/rules b/debian/rules
index f7cf5e5820e..e75abf74338 100755
--- a/debian/rules
+++ b/debian/rules
@@ -315,7 +315,7 @@ confflags_lucid += --without-gsettings
 define cfg_tree
   cd $(1) && \
     CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
-    CC=gcc-13 \
+    CC=gcc-12 \
     REL_ALLOC=no \
       $(CURDIR)/debian/build-src/configure $(confflags) $(2)
 endef
-- 
2.39.2

Reply via email to