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 <>; Source for pbuilder is src:pbuilder.

Reported by: Cyril Brulebois <>

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

Severity: wishlist

Found in version pbuilder/0.194

Full log

Message #10 received at (full text, mbox):

Received: (at 560332) by; 11 Dec 2009 07:34:31 +0000
From 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
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,
	VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Return-path: <>
Received: from ([])
	by with esmtp (Exim 4.63)
	(envelope-from <>)
	id 1NJ01G-0001B7-Td
	for; Fri, 11 Dec 2009 07:34:31 +0000
Received: from localhost (localhost [])
	by (Postfix) with ESMTP id 3B0A3222FB
	for <>; Fri, 11 Dec 2009 08:34:29 +0100 (CET)
Received: from ([])
	by localhost ( []) (amavisd-new, port 10024)
	with ESMTP id wzbkTru60OhY for <>;
	Fri, 11 Dec 2009 08:34:28 +0100 (CET)
Received: by (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 <>
Subject: Re: Bug#560332: pbuilder: Please exclude sys/ from the base tarball
Message-ID: <>
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

Cyril Brulebois <> (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:

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

[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 <>. Last modified: Wed Apr 16 23:57:41 2014; Machine Name:

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