[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #793667: forced depends (instead of recommends) using blends-dev (was gosa-plugin-netgroups not pulled-in when upgrading from Debian Edu squeeze mainserver)



Hi Holger,

On Mon, May 23, 2016 at 08:15:50AM +0000, Holger Levsen wrote:
> So we would like to force a depends on this gosa-plugin-netgroups
> package. How can we do that?

You can do this with the attached patch overriding the dist target to
afterwards change the d/control file.  Feel free to `git am` into the
repository.

Since a long time I'm wondering whether we should craft tasks files to
express what we "really" want (like specifying mostly all dependencies
as "Recommends" and leave the "Depends" for what we really mean as
Depends.  Since there are the frequently discusses drawbacks and
compatibility issues with the current tasks files this is nothing that
should be done quickly.  So for the moment "post-processing" of the
d/control file in the proposed manner should provide a quick (and
hopefully not to dirty) solution.

Kind regards

    Andreas.

-- 
http://fam-tille.de
>From 790b24ed7bccc0569b0f7c36fc6d24a136951404 Mon Sep 17 00:00:00 2001
From: Andreas Tille <tille@debian.org>
Date: Tue, 24 May 2016 08:30:31 +0200
Subject: [PATCH] Hack in gosa-plugin-netgroups as Depends (workaround for
 #793667)

---
 Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Makefile b/Makefile
index 62935ca..996e987 100755
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,11 @@
 #!/usr/bin/make -f
 
 include /usr/share/blends-dev/Makefile
+
+dist:
+	rm -f $(BLEND)-tasks.desc debian/control
+	make -f debian/rules get-orig-source
+	sed -i -e '/^ *gosa-plugin-netgroups,$$/d' \
+	       -e '/^Package: education-main-server/{;N;N;N;N;s/\nDepends: [^\n]*/&, gosa-plugin-netgroups,/;}' \
+	       debian/control
+
-- 
2.8.1


Reply to: