Jörg, are you able to update your sane-frontends packaging soon so
that gimp can migrate to Testing?

I am attaching patches to fix the build.

I may do an NMU soon if I don't hear from you.

Thank you,
Jeremy Bícha
From 6408835ad4c3f0ff13b74086ba71f7b54db9a310 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jeremy=20B=C3=ADcha?= <jeremy.bi...@canonical.com>
Date: Sat, 28 Dec 2024 08:17:52 -0500
Subject: [PATCH 1/3] Remove Build-Depends: libgimp2.0-dev

---
 debian/control | 1 -
 1 file changed, 1 deletion(-)

diff --git a/debian/control b/debian/control
index 691210f..8d8830f 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,6 @@ Standards-Version: 4.7.0.1
 Rules-Requires-Root: no
 Build-Depends:
  debhelper-compat (= 13),
- libgimp2.0-dev,
  libgtk2.0-dev,
  libsane-dev
 Homepage: http://www.sane-project.org
-- 
2.47.1

From 5049671b70f497a5be7e171a67ab82b1c4c55422 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jeremy=20B=C3=ADcha?= <jeremy.bi...@canonical.com>
Date: Sat, 28 Dec 2024 08:35:48 -0500
Subject: [PATCH 3/3] Avoid dh_autoreconf and --runstatedir since the autotools
 here is too old

---
 debian/rules | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index b3b18cb..fdf1bb8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,10 +5,14 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
-	dh  $@
+	dh  $@ --without autoreconf
 
+# This project is too old to understand --runstatedir
+# We could use debhelper compat 10 or just do this manually:
 override_dh_auto_configure:
-#	autoconf
-	dh_auto_configure -- \
-		--disable-gimp \
-		--disable-gimptest
+	./configure --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man \
+	--infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking \
+	--disable-silent-rules --libdir=\${prefix}/lib/$(DEB_BUILD_GNU_TYPE) --disable-maintainer-mode \
+	--disable-dependency-tracking \
+	--disable-gimp \
+	--disable-gimptest
-- 
2.47.1

From 29596a7a107bfde4e64f989be458616b2c300c20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jeremy=20B=C3=ADcha?= <jeremy.bi...@canonical.com>
Date: Sat, 28 Dec 2024 08:20:30 -0500
Subject: [PATCH 2/3] Remove obsolete preinst script

This was included in Debian 11
---
 debian/sane.preinst | 20 --------------------
 1 file changed, 20 deletions(-)
 delete mode 100644 debian/sane.preinst

diff --git a/debian/sane.preinst b/debian/sane.preinst
deleted file mode 100644
index 9b78cf4..0000000
--- a/debian/sane.preinst
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-set -e
-
-case "$1" in
-    install|upgrade|abort-upgrade)
-#
-# remove obsolete link
-#
-	if [ -L /usr/lib/gimp/2.0/plug-ins/xscanimage ] ; then
-	    rm -f /usr/lib/gimp/2.0/plug-ins/xscanimage
-	fi
-	;;
-    *)
-        echo "preinst called with unknown argument \`$1'" >&2
-        exit 1
-	;;
-esac
-
-
-#DEBHELPER#
-- 
2.47.1

Reply via email to