Debian Bug report logs - #604397
debian-policy: build-arch and build-indep targets are required

version graph

Package: debian-policy; Maintainer for debian-policy is Debian Policy List <debian-policy@lists.debian.org>; Source for debian-policy is src:debian-policy.

Reported by: Roger Leigh <rleigh@debian.org>

Date: Sun, 21 Nov 2010 21:42:02 UTC

Severity: wishlist

Merged with 345619, 374029, 619284

Found in versions debian-policy/3.6.2.1, debian-policy/3.9.1.0

Fixed in version debian-policy/3.9.4.0

Done: Russ Allbery <rra@debian.org>

Bug is archived. No further changes may be made.

Full log


Message #40 received at 604397@bugs.debian.org (full text, mbox):

Received: (at 604397) by bugs.debian.org; 2 Mar 2011 09:59:54 +0000
From jrnieder@gmail.com Wed Mar 02 09:59:54 2011
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on busoni.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 7; hammy, 134; neutral, 69; spammy, 2.
	spammytokens:0.947-5--Contribute, 0.923-+--today
	hammytokens:0.000-+--sk:dpkgbu, 0.000-+--sk:dpkg-bu, 0.000-+--H*u:2010-09-15,
	0.000-+--H*UA:2010-09-15, 0.000-+--H*u:1.5.21
X-Spam-Status: No, score=-2.8 required=4.0 tests=BAYES_00,GMAIL,
	MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Return-path: <jrnieder@gmail.com>
Received: from mail-qy0-f173.google.com ([209.85.216.173])
	by busoni.debian.org with esmtps (TLS1.0:RSA_ARCFOUR_MD5:16)
	(Exim 4.69)
	(envelope-from <jrnieder@gmail.com>)
	id 1PuiqY-0007N1-96
	for 604397@bugs.debian.org; Wed, 02 Mar 2011 09:59:54 +0000
Received: by qyk36 with SMTP id 36so4033282qyk.11
        for <604397@bugs.debian.org>; Wed, 02 Mar 2011 01:59:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:date:from:to:subject:message-id:references
         :mime-version:content-type:content-disposition:in-reply-to
         :user-agent;
        bh=jTSmnu1Jp4G7XQIC+OebXJSCyHHkMPW0QBIOt6R7EfU=;
        b=kU/WGosJ43yqvESkbhcYkSV5dm1khFjsEFoHQMKYOBq3LLPP9EKbozojKWA1E+NtYS
         1H3U8rlKhZyr2JxPuNEa3MzdSJLT589ybeba4ThM2AVOFfZ1tU6PK9ANtJsHre8fC8m2
         RcQukr0a8UbIH0FbSt1udwJpHgASZt4k2v3n8=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=date:from:to:subject:message-id:references:mime-version
         :content-type:content-disposition:in-reply-to:user-agent;
        b=ppuYYCrf/3teIJ2yp8/wYUh/PFPBal3a55AM1KSlwfzQtoGd0mCAPcGFKVvV22mQWy
         y3VKTboVQdNHn2LXSt1BF6LEO0IVj7C1nkrFcN9nHPOsV+5E/vGuqp68Y9s7qFmfts8C
         VhapfVbPyN5uuftsJlHyuhGazJ7cW0RzFPfs8=
Received: by 10.229.235.147 with SMTP id kg19mr6292060qcb.61.1299059987213;
        Wed, 02 Mar 2011 01:59:47 -0800 (PST)
Received: from elie (adsl-76-206-235-173.dsl.chcgil.sbcglobal.net [76.206.235.173])
        by mx.google.com with ESMTPS id l12sm4815529qcu.43.2011.03.02.01.59.45
        (version=SSLv3 cipher=OTHER);
        Wed, 02 Mar 2011 01:59:46 -0800 (PST)
Date: Wed, 2 Mar 2011 03:59:43 -0600
From: Jonathan Nieder <jrnieder@gmail.com>
To: 604397@bugs.debian.org
Subject: Re: debian-policy: require build-arch and build-indep targets
Message-ID: <20110302095943.GC14737@elie>
References: <20101121213831.29950.34680.reportbug@nagini.codelibre.net>
 <20101121234528.GA1002@jwilk.net>
 <20101122231842.GQ15585@codelibre.net>
 <20110302030131.GA26696@elie>
 <20110302094324.GA6857@jwilk.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20110302094324.GA6857@jwilk.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
(-cc: Bug#229357)
Jakub Wilk wrote:
> * Jonathan Nieder <jrnieder@gmail.com>, 2011-03-01, 21:01:

>> So it seems to me that "dpkg-buildpackage -B" ought to be taught to
>> run the equivalent of
>>
>>	debian/rules build-arch
>>	if test "$?" = 2
>>	then
>>		debian/rules build
>>	fi
>
> make exits with code 2 "if any errors were encountered". So no, this
> approach cannot be used.

Did you read the rest of the message?

But okay, I am willing to accept that this is an approach we do
not want to use.  Which still leaves us with a number of options.

To help some existing packages today (and break others):

 1. Find an active "make" maintainer.
 2. Polish the patch in Bug#598534 and apply it.
 3. Use
	make-first-existing-target build-arch build -- -f debian/rules

To help no existing packages today but make it easy for packages
to opt in (and not break the others):

 1. Introduce a Build-Options facility for packages to advertise
    capabilities like this.
 2. Teach dpkg-buildpackage to honor it.

To move towards a world in which all packages support build-arch and
build-indep:

 1. Teach dpkg-buildpackage a new switch to use those targets.
    The operator can easily figure out when they are available if
    building by hand.
 2. Introduce a lintian test for build-arch/build-indep presence.
 3. Contribute patches.
 4. When there are not so many packages left without the feature,
    propose a mass bug-filing/release goal.
 5. Finally, update policy and make autobuilders use the switch
    to use those targets when building unstable and experimental.

Just my two cents,
Jonathan




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 23:55:32 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.