Debian Bug report logs - #820946
guess basepath based on --dist and --arch

version graph

Package: cowbuilder; Maintainer for cowbuilder is Debian pbuilder maintenance team <team+pbuilder@tracker.debian.org>; Source for cowbuilder is src:cowdancer (PTS, buildd, popcon).

Reported by: Antoine Beaupré <anarcat@debian.org>

Date: Wed, 13 Apr 2016 21:36:02 UTC

Severity: wishlist

Found in version cowdancer/0.73

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#820946; Package cowbuilder. (Wed, 13 Apr 2016 21:36:06 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupré <anarcat@debian.org>:
New Bug report received and forwarded. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Wed, 13 Apr 2016 21:36:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupré <anarcat@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: guess basepath based on --dist and --arch
Date: Wed, 13 Apr 2016 17:31:21 -0400
Package: cowbuilder
Version: 0.73
Severity: wishlist

I am often using cowbuilder with fairly consistent chroot locations. I
have done my best to document this setup with git-buildpackage here:

https://wiki.debian.org/cowbuilder#Using_with_git-buildpackage

I am using the pbuilderrc from Ubuntu documented here:

https://wiki.ubuntu.com/PbuilderHowto

This is all very messy. It seems to me cowbuilder itself would gain a
lot from being able to generate consistent --basepath defaults based
on the --dist and --arch arguments, not only at creation but also at
build time.

Tools like cowpoke go through convoluted steps to work around this
limitation right now:

http://sources.debian.net/src/devscripts/2.16.2/scripts/cowpoke.sh/#L341

... in a layout that is different from git-buildpackage's. The result
is that we have inconsistent locations for those chroots among
different tools, because there are no reasonable defaults in
cowbuilder.

Adding such a default would improve the consistency of this across
tools.

A.

-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable'), (1, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cowbuilder depends on:
ii  cowdancer  0.73
ii  libc6      2.19-18+deb8u4
ii  pbuilder   0.215+nmu3

cowbuilder recommends no packages.

cowbuilder suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#820946; Package cowbuilder. (Wed, 13 Apr 2016 23:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to Thorsten Glaser <tg@mirbsd.de>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Wed, 13 Apr 2016 23:36:04 GMT) (full text, mbox, link).


Message #10 received at 820946@bugs.debian.org (full text, mbox, reply):

From: Thorsten Glaser <tg@mirbsd.de>
To: Antoine Beaupré <anarcat@debian.org>, 820946@bugs.debian.org
Subject: Re: Bug#820946: guess basepath based on --dist and --arch
Date: Wed, 13 Apr 2016 23:27:23 +0000 (UTC)
Antoine Beaupré dixit:

>Adding such a default would improve the consistency of this across
>tools.

It has also chances of breaking others’ layouts.

This is mine, on an x32 system:

$ ls /var/cache/pbuilder/                                                
aptcache               base.cow-lenny-i386     base.cow-wheezy-amd64  result-lenny
aptcache-debian        base.cow-lucid-amd64    base.cow-wheezy-i386   result-precise
aptcache-ubuntu        base.cow-precise-amd64  build                  result-sarge
base.cow-dpo           base.cow-precise-i386   ccache                 result-sid
base.cow-etch-amd64    base.cow-sarge-i386     pbuildd                result-squeeze
base.cow-etch-i386     base.cow-sid-amd64      pbuilder-mnt           result-stretch
base.cow-hardy-amd64   base.cow-sid-i386       result                 result-trusty
base.cow-hardy-i386    base.cow-squeeze-amd64  result-dpo             result-wheezy
base.cow-jessie-amd64  base.cow-squeeze-i386   result-etch
base.cow-jessie-i386   base.cow-stretch-amd64  result-hardy
base.cow-lenny-amd64   base.cow-trusty-amd64   result-jessie

The -arch is optional for the native arch (cf. base.cow-dpo),
and on another system I have only base.cow-sid (for i386, on
an i386 system), but recent versions of my pbuilderrc always
add it to ease switching between architectures (another system
of mine has base.cow-sid-amd64 on an amd64 system).

http://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/deb/pbuilderrc

I’ll never use {cvs,git}-buildpackage, so I don’t know their layout.
I do subscribe to the Unix principle and don’t like such tools;
after all, just dpkg-buildpackage is the formal and correct Debian
way of doing things, and cowbuilder allows one to do just that.

bye,
//mirabilos
-- 
Stéphane, I actually don’t block Googlemail, they’re just too utterly
stupid to successfully deliver to me (or anyone else using Greylisting
and not whitelisting their ranges). Same for a few other providers such
as Hotmail. Some spammers (Yahoo) I do block.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#820946; Package cowbuilder. (Thu, 14 Apr 2016 08:45:06 GMT) (full text, mbox, link).


Acknowledgement sent to James Clarke <jrtc27@jrtc27.com>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Thu, 14 Apr 2016 08:45:06 GMT) (full text, mbox, link).


Message #15 received at 820946@bugs.debian.org (full text, mbox, reply):

From: James Clarke <jrtc27@jrtc27.com>
To: Thorsten Glaser <tg@mirbsd.de>, 820946@bugs.debian.org
Cc: Antoine Beaupré <anarcat@debian.org>
Subject: Re: Bug#820946: guess basepath based on --dist and --arch
Date: Thu, 14 Apr 2016 09:42:51 +0100
> On 14 Apr 2016, at 00:27, Thorsten Glaser <tg@mirbsd.de> wrote:
> 
> Antoine Beaupré dixit:
> 
>> Adding such a default would improve the consistency of this across
>> tools.
> 
> It has also chances of breaking others’ layouts.

This would only be if BASEPATH wasn't set; in your case it would continue to function identically, as you set it in your pbuilderrc.

Regards,
James




Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#820946; Package cowbuilder. (Sun, 18 Feb 2018 19:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to vadyba@klientai.eu:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Sun, 18 Feb 2018 19:00:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Nov 21 23:56:52 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.