[Build-common-hackers] Bug#293197: marked as done (support for Cpu/System fields)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 18 May 2005 03:18:30 -0700


Your message dated Wed, 18 May 2005 12:03:15 +0200
with message-id <20050518100315.GA14625@aragorn>
and subject line ack NMUs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 1 Feb 2005 18:23:48 +0000
>From rmh@debian.org Tue Feb 01 10:23:48 2005
Return-path: <rmh@debian.org>
Received: from 174.red-62-57-140.user.auna.net (khazad.dyndns.org) [62.57.140.174] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cw2gm-0006Ep-00; Tue, 01 Feb 2005 10:23:48 -0800
Received: from rmh by khazad.dyndns.org with local (Exim 4.34)
	id 1Cw2b2-0008Ya-8l; Tue, 01 Feb 2005 19:17:52 +0100
Content-Type: multipart/mixed; boundary="===============0621531167=="
MIME-Version: 1.0
From: Robert Millan <rmh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: support for Cpu/System fields
X-Mailer: reportbug 3.5
Date: Tue, 01 Feb 2005 19:17:52 +0100
Message-Id: <E1Cw2b2-0008Ya-8l@khazad.dyndns.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============0621531167==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: cdbs
Version: 0.4.26-1.1
Severity: wishlist
Tags: patch

This patch implements support for Cpu/System fields in debian/control.in for
packages that have enabled DEB_AUTO_UPDATE_DEBIAN_CONTROL.  This functionality
is to be implemented in dpkg in the long term, but for now we can have it in
cdbs as a test case.

Don't forget to replace x.y with the first version of cdbs that supports this
feature.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i386)
Kernel: GNU/kFreeBSD 5.3-1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

-- no debconf information

--===============0621531167==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cpu-system.diff"

diff -ur cdbs-0.4.26.old/debian/control.in cdbs-0.4.26/debian/control.in
--- cdbs-0.4.26.old/debian/control.in	2004-09-24 19:43:06.000000000 +0200
+++ cdbs-0.4.26/debian/control.in	2005-02-01 13:44:33.000000000 +0100
@@ -8,7 +8,8 @@
 Standards-Version: 3.5.10
 
 Package: cdbs
-Architecture: all
+Cpu: all
+System: all
 Conflicts: build-common
 Recommends: autotools-dev, debhelper (>= 4.1.0)
 Description: common build system for Debian packages
diff -ur cdbs-0.4.26.old/1/rules/buildcore.mk.in cdbs-0.4.26/1/rules/buildcore.mk.in
--- cdbs-0.4.26.old/1/rules/buildcore.mk.in	2004-09-24 19:42:07.000000000 +0200
+++ cdbs-0.4.26/1/rules/buildcore.mk.in	2005-02-01 13:44:17.000000000 +0100
@@ -101,11 +101,24 @@
 # add stuff to this rule.
 clean:: testdir testroot cleanbuilddir
 
+ifneq (, $(DEB_AUTO_UPDATE_DEBIAN_CONTROL))
+control_cpu		:= $(shell grep "^Cpu:" debian/control.in | sed -e "s/^.*: //g" -e "s/ /,/g")
+ifneq (, $(control_cpu))
+ifeq ($(_cdbs_bootstrap), )
+CDBS_BUILD_DEPENDS	:= $(CDBS_BUILD_DEPENDS), cdbs (>= x.y)
+endif
+CDBS_BUILD_DEPENDS	:= $(CDBS_BUILD_DEPENDS), type-handling (>= 0.2.5)
+control_system		:= $(shell grep "^System:" debian/control.in | sed -e "s/^.*: //g" -e "s/ /,/g")
+control_arch		:= $(shell type-handling $(control_cpu) $(control_system))
+endif
+endif
 debian/control::
 ifneq ($(DEB_AUTO_UPDATE_DEBIAN_CONTROL),)
-	cat debian/control.in \
-	| sed "s/@cdbs@/$(CDBS_BUILD_DEPENDS)/g" \
-	> debian/control
+	sed \
+		-e "s/@cdbs@/$(CDBS_BUILD_DEPENDS)/g" \
+		-e "s/^Cpu: .*/Architecture: $(control_arch)/g" \
+		-e "/^System: /d" \
+	< debian/control.in > debian/control
 endif
 
 # This rule is called before the common-install target.  It's currently only

--===============0621531167==--

---------------------------------------
Received: (at 293197-done) by bugs.debian.org; 18 May 2005 10:02:55 +0000
>From rmh@debian.org Wed May 18 03:02:55 2005
Return-path: <rmh@debian.org>
Received: from 216.red-62-57-140.user.auna.net (aragorn) [62.57.140.216] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DYLOA-0000B0-00; Wed, 18 May 2005 03:02:55 -0700
Received: from rmh by aragorn with local (Exim 4.50)
	id 1DYLOV-0001ta-Ld; Wed, 18 May 2005 12:03:15 +0200
Date: Wed, 18 May 2005 12:03:15 +0200
From: Robert Millan <rmh@debian.org>
To: 284101-done@bugs.debian.org, 249931-done@bugs.debian.org,
	277672-done@bugs.debian.org, 280365-done@bugs.debian.org,
	290940-done@bugs.debian.org, 293197-done@bugs.debian.org
Subject: ack NMUs
Message-ID: <20050518100315.GA14625@aragorn>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: Robert Millan <rmh@debian.org>
Organisation: free as in freedom
User-Agent: Mutt/1.5.9i
Delivered-To: 293197-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 6


Acknowledging my own NMUs.

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