Debian Bug report logs - #613046
debian-policy: please update example in 4.9.1 (debian/rules and DEB_BUILD_OPTIONS)

version graph

Package: debian-policy; Maintainer for debian-policy is Debian Policy Editors <[email protected]>; Source for debian-policy is src:debian-policy (PTS, buildd, popcon).

Reported by: Niels Thykier <[email protected]>

Date: Sat, 12 Feb 2011 13:30:04 UTC

Severity: wishlist

Merged with 578597

Found in version debian-policy/3.9.1.0

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#613046: debian-policy: please update example in 4.9.1 (debian/rules and DEB_BUILD_OPTIONS)
Reply-To: Jonathan Nieder <[email protected]>, [email protected]
Resent-From: Jonathan Nieder <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian Policy List <[email protected]>
X-Loop: [email protected]
Resent-Date: Wed, 01 Feb 2012 00:45:03 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 613046
X-Debian-PR-Package: debian-policy
X-Debian-PR-Keywords: 
X-Debian-PR-Source: debian-policy
Received: via spool by [email protected] id=B613046.132805705715779
          (code B ref 613046); Wed, 01 Feb 2012 00:45:03 +0000
Received: (at 613046) by bugs.debian.org; 1 Feb 2012 00:44:17 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.1-bugs.debian.org_2005_01_02
	(2010-03-16) on busoni.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.9 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS
	autolearn=no version=3.3.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 8; hammy, 133; neutral, 63; spammy, 2.
	spammytokens:0.987-1--H*MI:sk:2012020, 0.870-+--Policy
	hammytokens:0.000-+--H*u:1.5.21, 0.000-+--H*UA:1.5.21,
	0.000-+--H*u:2010-09-15, 0.000-+--H*UA:2010-09-15, 0.000-+--debianpolicy
Received: from mail-vx0-f180.google.com ([209.85.220.180])
	by busoni.debian.org with esmtps (TLS1.0:RSA_ARCFOUR_MD5:16)
	(Exim 4.72)
	(envelope-from <[email protected]>)
	id 1RsOJ7-000460-DJ
	for [email protected]; Wed, 01 Feb 2012 00:44:17 +0000
Received: by vcbfo1 with SMTP id fo1so787760vcb.11
        for <[email protected]>; Tue, 31 Jan 2012 16:44:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=date:from:to:cc:subject:message-id:references:mime-version
         :content-type:content-disposition:content-transfer-encoding
         :in-reply-to:user-agent;
        bh=ww/vE4TXdWjHHf+y+0IdH3afeYhJor86FtGqOLoClOw=;
        b=C4eGvVymWcxg2eYmZxUYIr9eC1XO41oVrrwikJzbtP3ms1zFmXp/5+LJ7G1OS8Aw8G
         fS2Yg55mZbg7H+xNowSmixD2peLc0xcbHRz1IadwGNaJzdgmShCw42P/tlfwMmS/LS9D
         vst0IdxwWEBsTVIls7dEPkSLUlBr0X5Wetoyg=
Received: by 10.220.40.5 with SMTP id i5mr13592968vce.71.1328057051317;
        Tue, 31 Jan 2012 16:44:11 -0800 (PST)
Received: from burratino (c-24-1-56-9.hsd1.il.comcast.net. [24.1.56.9])
        by mx.google.com with ESMTPS id jr10sm21199188vdb.14.2012.01.31.16.44.09
        (version=SSLv3 cipher=OTHER);
        Tue, 31 Jan 2012 16:44:10 -0800 (PST)
Date: Tue, 31 Jan 2012 18:43:55 -0600
From: Jonathan Nieder <[email protected]>
To: [email protected]
Cc: Niels Thykier <[email protected]>
Message-ID: <20120201004354.GA14247@burratino>
References: <[email protected]>
 <[email protected]>
 <20110302033836.GA27022@elie>
 <[email protected]>
 <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.21 (2010-09-15)
Hi,

Charles Plessy wrote:

> since §4.9.1's object is to document the DEB_BUILD_OPTIONS, I would find it a
> bit dry to only provide an example that works through a tool that is not
> mentionned or explained anywhere else in the Policy (see http://bugs.debian.org/578597).
> I therfore propose to replace the sentence above it,
>
>   The following makefile snippet is an example of how one may implement the
>   build options; you will probably have to massage this example in order to make
>   it work for your package.
>
> by:
>
>   In the following example, the build options nocheck, nostrip and parallel are
>   implemented directly in make, and noopt is implemented through its support in
>   dpkg-buildflags.  You will probably have to massage this example in order to
>   make it work for your package.  Note also that other helper tools provide
>   support for nocheck, nostrip and parallel.

By now I imagine that dpkg-buildflags is becoming enough of a de facto
standard that it would be reasonable to just recommend it with a policy
"should".  Niels, would you mind if I merge this with bug#578597?

[...]
> By the way, I read in the paragraph describing noopt:
>
>   For C programs, it is best to add -O0 to CFLAGS (although this is usually the default).
>
> Isn't that a bit outdated ?  I see -O2 or superior in most of my packages.

I believe the intended meaning is that in many build systems, if you
override CFLAGS and do not specify an optimization level then no
optimization level is passed to gcc, resulting in no optimization.

Thanks,
Jonathan




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 08:16:17 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.