Control: tag -1 + patch

Hi,

I've landed here after I was surprised I have GTK+2 on my freshly
reinstalled sid system.

I've successfully built src:thunderbird with the attached (git format-)patch
applied and the resulting thunderbird binary package has the intended
relationship to libgtk2.0-0: Suggests but not Depends. I'm using the
resulting binary package in production, it Works on my Machineā„¢.

(Jeremy: do you use usertags or something to track your "no GTK+2
installed by default" efforts?)

Cheers,
-- 
intrigeri

>From 37b366ac2be68751c5e2a7c59cb8ac4384622b13 Mon Sep 17 00:00:00 2001
From: intrigeri <intrig...@boum.org>
Date: Sat, 3 Nov 2018 19:26:39 +0000
Subject: [PATCH] Avoid hard dependency on libgtk2.0-0 (Closes: #908654)

Using the exact same technique that's used in firefox [1] and firefox-esr [2],
as suggested by Jeremy Bicha <jbi...@debian.org>.

[1] https://salsa.debian.org/mozilla-team/firefox/commit/c09619a6737a133b5386c190d36b7c95cf597a34
[2] https://salsa.debian.org/mozilla-team/firefox/commit/fe6a68471bea67c67f438949b6497a717d863e62
---
 debian/control | 1 +
 debian/rules   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 88809335c5..f10840bb4b 100644
--- a/debian/control
+++ b/debian/control
@@ -80,6 +80,7 @@ Suggests:
  apparmor,
  fonts-lyx,
  libgssapi-krb5-2,
+ libgtk2.0-0,
 Provides:
  mail-reader,
 Xb-Xul-AppId: {3550f703-e582-4d05-9a08-453d09bdfdc6}
diff --git a/debian/rules b/debian/rules
index 4aa53fb601..63f190ba9e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -204,7 +204,7 @@ override_dh_strip:
 	fi
 
 override_dh_shlibdeps:
-	dh_shlibdeps -a -l $(CURDIR)/debian/tmp/usr/lib/thunderbird
+	dh_shlibdeps -a -l $(CURDIR)/debian/tmp/usr/lib/thunderbird -- -xlibgtk2.0-0
 
 override_dh_builddeb:
 	# just build all packages if there is no 'UNRELEASED' within the changelog
-- 
2.19.1

Reply via email to