Bug#560332: pbuilder: Please exclude sys/ from the base tarball

Cyril Brulebois kibi at debian.org
Fri Dec 11 07:32:11 UTC 2009


tag 560332 patch
thanks

Cyril Brulebois <kibi at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Introduce-umount_proc_sys.patch
Type: text/x-diff
Size: 1252 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20091211/ba043085/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20091211/ba043085/attachment.pgp>


More information about the Pbuilder-maint mailing list