No subject


Wed Jul 1 08:41:29 UTC 2009


  The binary target must be all that is necessary for the user to build the binary
  package(s) produced from this source package. It is split into two parts:
  binary-arch builds the binary packages which are specific to a particular
  architecture, and binary-indep builds those which are not.

  [...]

  Both binary-* targets should depend on the build target, or on the appropriate
  build-arch or build-indep target, if provided, so that the package is built if
  it has not been already. It should then create the relevant binary package(s),
  using dpkg-gencontrol to make their control files and dpkg-deb to build them and
  place them in the parent of the top level directory.

In the situation where the package needs to be built before the binary package
can be prepared, making the `binary` target will fail because CDBS does not have
the `binary-arch` or `binary-indep` targets depending on `build`.

I am working on a lockrun package through Debian mentors which you can grab:

  dget http://mentors.debian.net/debian/pool/main/l/lockrun/lockrun_0~20080520-1.dsc

The debian/rules can be viewed directly via:

  http://svn.debian.org/wsvn/collab-maint/deb-maint/lockrun/trunk/debian/rules?op=file&rev=10271&sc=1

In this instance, the `binary` target fails because the patches have been applied:

  nslater at bytesexual: ~/software/debian/lockrun/trunk $ fakeroot ./debian/rules binary
  test -x debian/rules
  dh_testroot
  dh_clean -k
  dh_installdirs -A
  sed "s/@version@/0~20080520/" < lockrun.c > lockrun.sed.c
  cc  lockrun.sed.c -o lockrun
  cp lockrun debian/lockrun/usr/bin
  help2man -N -n "a cron job overrun protection utility" ./lockrun > lockrun.1
  help2man: can't get `--help' info from ./lockrun
  make: *** [common-install-prehook-impl] Error 1

I have added the following line as a temporary workaround:

  binary-arch binary-indep: build

I am hoping something similar can be added to CDBS to fix this problem.

Thanks,

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.20.3-bytemark-uml-2
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cdbs depends on:
ii  debhelper                     7.0.10     helper programs for debian/rules

Versions of packages cdbs recommends:
ii  autotools-dev                 20080123.1 Update infrastructure for config.{

-- no debconf information

-- 
Noah Slater, http://bytesexual.org/nslater/



------------=_1247325843-365-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 486848-done) by bugs.debian.org; 11 Jul 2009 15:16:45 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 88; hammy, 147; neutral, 118; spammy,
	4. spammytokens:0.995-1--violates, 0.995-1--invokes, 0.993-1--quoted,
	0.993-1--violate hammytokens:0.000-+--v149, 0.000-+--v1.4.9,
	0.000-+--workaround, 0.000-+--H*u:1.5.20, 0.000-+--H*UA:1.5.20
X-Spam-Status: No, score=-10.6 required=4.0 tests=AWL,BAYES_00,FOURLA,
	FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,IMPRONONCABLE_2,MURPHY_WRONG_WORD1,
	MURPHY_WRONG_WORD2,PGPSIGNATURE,RDNS_DYNAMIC autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Return-path: <jonas at jones.dk>
Received: from 0x573b188a.cpe.ge-1-2-0-1101.hknqu1.customer.tele.dk
	([87.59.24.138] helo=xayide.jones.dk ident=postfix)
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <jonas at jones.dk>)
	id 1MPeJg-00059a-Rz
	for 486848-done at bugs.debian.org; Sat, 11 Jul 2009 15:16:45 +0000
Received: from localhost (localhost [127.0.0.1])
	by xayide.jones.dk (Postfix) with ESMTP id 1ADBD11B98F;
	Sat, 11 Jul 2009 17:16:43 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at jones.dk
Received: from xayide.jones.dk ([127.0.0.1])
	by localhost (xayide.jones.dk [127.0.0.1]) (amavisd-new, port 10024)
	with SMTP id qq+La4bIBb2H; Sat, 11 Jul 2009 17:16:40 +0200 (CEST)
Received: from auryn.jones.dk (auryn.jones.dk [192.168.222.52])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by xayide.jones.dk (Postfix) with ESMTPS id 0599811B942;
	Sat, 11 Jul 2009 17:16:40 +0200 (CEST)
Received: by auryn.jones.dk (Postfix, from userid 1000)
	id D1B982D6; Sat, 11 Jul 2009 17:16:39 +0200 (CEST)
Date: Sat, 11 Jul 2009 17:16:39 +0200
From: Jonas Smedegaard <dr at jones.dk>
To: Bastian Kleineidam <calvin at debian.org>, 486848-done at bugs.debian.org
Subject: Re: [Build-common-hackers] Bug#486848: cdbs binary-arch,
 binary-indep targets should depend the build target (per Debian Policy
 4.9)
Message-ID: <20090711151639.GC8929 at jones.dk>
Reply-To: bugs.debian.org at jones.dk
References: <200906222027.57754.calvin at debian.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed
Content-Disposition: inline
In-Reply-To: <200906222027.57754.calvin at debian.org>
X-FOAF: http://dr.jones.dk/foaf.rdf
X-Face: "yShHCQ6 at h{]=Se"1&kVc#Yd%l<B\s%RAjk)T'F6yYw3/unDabXtVB2LIg(-J0zo^aE2U[s
 (uhG at f$_ZpbxE53gCn:WZ_a.Gz8yI;ko-,iqW@*+8k<F$2G-nyl;^55>b=>9&
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEWbnI45Hxm/s6OD
 f2R0XU3Tzr2KjXXS5M59+7HJAAACY0lEQVQ4jW2TTW/jIBCGCa7ptdN4e0akbq9JTTmH
 MOu97nqLuLpxRK+rlSz//R3Ih9NqR4pI5uFlYDIv4yKKnuUQfWHYJQjESOuNdegOuL6A
 PSkiG4yFHFX7SRG1g1NU2zNJYDjur9JSzWWYOAGMab1IuFJFSiCulaR1OSvkTUobppSi
 b9DP5ADLxnDlfafsGZi0WDBNr2pPZAGwlwnQnXphq0iCBPxvgN0ZxLh5EDGdlCQElPIy
 ASbsnejpV5imsbOwSxuygr3T3emkicK/w4+0sqahIosMQkqMiysQD0dFIuPjBZhPIDzC
 xwk0GfBco4vlGzyfgYnDg0jvGwt0fGGVPwGSLC240nfacYn3nm7uM2hiRb1zbFfoQsnv
 VKpTRzAAWrS715Wof/rbSw2KylqEV/XEfTc9hyvw0DQHKP9I7qexvgbLoUEsp/z0epqB
 cY1G9z/Q0LC4eso9eb4GQ8+KljLppl8AX7W34zRO3l+DOBgu9VbNR42s0Rk4vsI1T13K
 ivHYEmq867UrymkMR3DpVXRGO8a9Cr4LtH8GtJ8mNFBKpoN8d76VRW2oH1Ot+JSGKHfX
 0UdXaDgPo5IflKchZk4jJgLYUg0vRZ32E8AURCxg+nfFS53zJ0AIoVqrWpo6p2eAzkKr
 6tXeqy+gJUkvtrWXOS8ZVIh0vmsGDbinEfq1zAKW3UpOq8jspfdTeCMbJIMkV2qSVW3Z
 1dSO8BfueDIO4FYDzU6FpVcsjGHc3GVDG7VCBLLk5mWU2xC831T90eVGY3b/1j+16dn2
 Prv2Se+UttbCElWxpaldwbdOrMU/uif692F3pH8AAAAASUVORK5CYII=
User-Agent: Mutt/1.5.20 (2009-06-14)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Mon, Jun 22, 2009 at 08:27:52PM +0200, Bastian Kleineidam wrote:
>setting this to serious since it is a policy violation and generates FTBFS
>errors, see eg. #526572.
>The workaround for the above bug was to add this to debian/rules:
>binary-arch binary-indep: install-arch install-indep

CDBS properly invokes all required rules when "binary" is called, so 
does not violate Policy.  Or at least it is believed to not violate the 
parts of Policy initially quoted in this bug report.

It seems that you simply make the wrong assumption that all build rules 
are completed before install rules are started.


You can enforce such serialization yourself by adding the following:

   install/linkchecker-gui:: install/linkchecker

Or you can do other rearrangements of your packaging, having in mind 
that each binary package may be configured, built, installed and 
packaged independently of each other unless explicitly enforced to "wait 
for each other".


Closing as a non-bug.

If you still believe that this is a case of violating the parts of 
policy initially quoted then please elaborate.

If you believe this violates other parts of Policy, then please file a 
separate bugreport with more details.



Thanks a lot for your info and concern about cdbs.

  - Jonas

- -- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCgAGBQJKWKzXAAoJECx8MUbBoAEhz4MP/jDMAhqbgZtFSJ2rynUHoVak
OLwK10X9JuGs52kC460DQNfWi7yLGnupYxAtiQvVbgJnFELiZZ0ad44FANGygaIj
DyceMGXKJqIwMrpernJCxzcizG12to9MeoYREfwq40JIBi0YZY/dk3+GkrhDrrn6
ulS6MJ4JZenTa+BziXkQ2k8jE0PkEsaDKHPYtElJVpQCJ5rftPPP22gayJqPZVEr
5NiNDTWmed9g4lPpd8e5P8WHQfR5tCA0eCbP2uiIy/NL3uUIXBurqz7wXhlN4amg
tM077eMraPKz9mOlRIMffo0d9sD+lpN9r+AROTiQArnnGkizUP51rKyHXqM8gy+b
BeHW5Jr7+pmLln0+h6NN7Q++WAzZNjKAHHFQedR9/IwK6Rhs+4rzSIDQIeBMNwxH
aARql8CozN9rA9VDb2XO71YsBqWbUdusrzke1aSgtNYHYT3WXn1Ng+woBzJh2RXn
nA4q6m4+BiVf+qD78t1u6VUot+jYPTN6iU4nm0Lz6OEJd22S6bY99S3ZuEJEdo3S
jNQzoBuRudwBa5zYOJUK3pWTm32fNSk2rcT7YJPMXHRahSW6YpRlDgRYZ8hIMLUw
0AU9rO37ayqQqwNw0PBTODzLAFx01Y0hfev8HRPp4cn5JTQ6RPik4Hmh0McBawQi
AfDTMB1MLFfSmkFT25UK
=Jzez
-----END PGP SIGNATURE-----


------------=_1247325843-365-0--



More information about the Build-common-hackers mailing list