Bug#277672: [Build-common-hackers] Bug#277672: Track autothings in Build-Depends when generating debian/control

Robert Millan Robert Millan <rmh@debian.org>, 277672@bugs.debian.org
Wed, 27 Oct 2004 18:43:15 +0200


--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Oct 25, 2004 at 11:43:17PM -0400, Jeff Bailey wrote:
> On Thu, 2004-21-10 at 18:48 +0200, Robert Millan wrote:
> > This patch adds autothings automagicaly to Build-Depends when they have been
> > requirested by the DEB_AUTO_UPDATE_* interface and debian/control is being
> > auto-generated.
> 
> I'm interested in this patch with two comments:
> 
> 1) I've no real interest in supporting autoconf2.13.  Let it die,
> people.

We have to get real about autoconf2.13.  It may suck, but there are too many
upstream packages that rely on autoconf2.13 to drop support for it completely.

I maintain a few of those IIRC, and I don't want to do upstream's job in
migrating to autoconf2.5x.  In fact, maybe upstream doesn't even _want_ to
use 2.5x.

> 2) The most critical one we need is debhelper and a minimum version
> support.  That is, gnome.mk needs to require a minimum debhelper that
> includes dh_desktop.  Regular debhelper.mk can get by with a
> significantly older debhelper, though.

Here is it.  As for redundancy, I'm afraid the awkward limitations of make
prevent separate modules (gnome.mk and debhelper.mk) from sharing variables
sanely, so this is as good as it gets AFAICT.

-- 
 .''`.   Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `'    http://www.debian.org/ports/kfreebsd-gnu
  `-

--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cdbs.diff"

diff -ur cdbs-0.4.25.old/1/class/gnome.mk.in cdbs-0.4.25/1/class/gnome.mk.in
--- cdbs-0.4.25.old/1/class/gnome.mk.in	2004-10-20 16:38:14.000000000 +0200
+++ cdbs-0.4.25/1/class/gnome.mk.in	2004-10-27 18:38:16.000000000 +0200
@@ -25,6 +25,9 @@
 ifndef _cdbs_class_gnome
 _cdbs_class_gnome := 1
 
+# for dh_desktop
+CDBS_BUILD_DEPENDS   := $(CDBS_BUILD_DEPENDS), debhelper (>= 4.2.21)
+
 include $(_cdbs_class_path)/autotools.mk$(_cdbs_makefile_suffix)
 ifndef _cdbs_rules_debhelper
 include $(_cdbs_class_path)/docbookxml.mk$(_cdbs_makefile_suffix)

--J2SCkAp4GZ/dPZZf--