Debian Bug report logs - #560332
pbuilder: Please exclude sys/ from the base tarball

version graph

Package: pbuilder; Maintainer for pbuilder is Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>; Source for pbuilder is src:pbuilder.

Reported by: Cyril Brulebois <kibi@debian.org>

Date: Thu, 10 Dec 2009 14:24:05 UTC

Severity: wishlist

Found in version pbuilder/0.194

Full log


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

Received: (at 560332) by bugs.debian.org; 11 Dec 2009 07:34:31 +0000
From kibi@dedibox.ebzao.info Fri Dec 11 07:34:31 2009
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, 33; hammy, 151; neutral, 95; spammy,
	0. spammytokens: hammytokens:0.000-+--H*o:Debian, 0.000-+--H*c:protocol,
	0.000-+--H*c:micalg, 0.000-+--H*c:signed, 0.000-+--H*c:pgp-signature
X-Spam-Status: No, score=-12.6 required=4.0 tests=AWL,BAYES_00,FROMDEVELOPER,
	HAS_BUG_NUMBER,IMPRONONCABLE_2,MURPHY_DRUGS_REL8,PGPSIGNATURE,
	VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Return-path: <kibi@dedibox.ebzao.info>
Received: from dedibox.ebzao.info ([88.191.19.23])
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <kibi@dedibox.ebzao.info>)
	id 1NJ01G-0001B7-Td
	for 560332@bugs.debian.org; Fri, 11 Dec 2009 07:34:31 +0000
Received: from localhost (localhost [127.0.0.1])
	by dedibox.ebzao.info (Postfix) with ESMTP id 3B0A3222FB
	for <560332@bugs.debian.org>; Fri, 11 Dec 2009 08:34:29 +0100 (CET)
Received: from dedibox.ebzao.info ([127.0.0.1])
	by localhost (dedibox.ebzao.info [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id wzbkTru60OhY for <560332@bugs.debian.org>;
	Fri, 11 Dec 2009 08:34:28 +0100 (CET)
Received: by dedibox.ebzao.info (Postfix, from userid 1008)
	id B8723222E6; Fri, 11 Dec 2009 08:34:28 +0100 (CET)
X-IMAP-Sender: kibi
Date: Fri, 11 Dec 2009 08:32:11 +0100
X-OfflineIMAP-713511677-506572736f52656d6f7465-494e424f582e4f7574626f78: 1260516942-0838563775499-v6.2.0
From: Cyril Brulebois <kibi@debian.org>
To: 560332@bugs.debian.org
Subject: Re: Bug#560332: pbuilder: Please exclude sys/ from the base tarball
Message-ID: <20091211073211.GA4213@debian.org>
References: <20091210142410.26564.83964.reportbug@localhost.localdomain>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="FEz7ebHBGB6b2e8X"
Content-Disposition: inline
In-Reply-To: <20091210142410.26564.83964.reportbug@localhost.localdomain>
Organization: Debian
User-Agent: Mutt/1.5.18 (2008-05-17)
[Message part 1 (text/plain, inline)]
tag 560332 patch
thanks

Cyril Brulebois <kibi@debian.org> (10/12/2009):
>  - but even then, removing the temporary directory failed because
>    /sys was still mounted. Which led me to believe it might be nicer
>    if pbuilder could check where /sys is not empty, and umounting
>    accordingly if needed (umount $path/sys). The same could be said
>    about /proc, I guess. Maybe controlling this umount behaviour
>    through a configuration option?

(I know there's USEPROC already, by the way, but wanted to make sure
to exclude /proc from the base tarball, there's no point in having
anything /proc-related in the base tarball, I guess.)

Please find attached a patch which implements this. I didn't test it
much, I can only tell you it's possible to create a base.tgz on
kfreebsd-amd64 once it's applied, and with this configuration:
| USEPROC=no
| USEDEVFS=yes
| USEDEVPTS=no

I've also successfully built some packages of mine (which were failing
with USEDEVFS=no, because of at least missing /dev/null).

It's probably not perfect, but that should help people interested in
trying out package building on GNU/kFreeBSD, until a clean solution is
implemented.

Mraw,
KiBi.
[0001-Introduce-umount_proc_sys.patch (text/x-diff, attachment)]
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 23:57:41 2014; Machine Name: buxtehude.debian.org

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