Bug#560332: pbuilder: Please exclude sys/ from the base tarball
    Cyril Brulebois 
    kibi at debian.org
       
    Thu Dec 10 14:24:10 UTC 2009
    
    
  
Package: pbuilder
Version: 0.194
Severity: wishlist
User: debian-bsd at lists.debian.org
Usertags: kfreebsd
Hi,
on GNU/kFreeBSD systems, freebsd-utils's postinst runs an init script
which takes care of setting up various filesystems, including /sys; I've
reported a bug accordingly (#560127), but I think the solution would
rather find its place inside pbuilder.
A few solutions I thought of:
 - we could try and exclude /sys stuff using --exclude, but since it
   seems that tar doesn't support anchoring the pattern, we may be
   excluding other paths which contains “sys” somewhere, which would be
   kind of nasty. Anyway, patching pbuilder as follows made it possible
   to create a base.tgz I could use to build a package.
 - 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?
The diff I used (pbuilder-modules):
-       if ! tar cfz "${BASETGZ}.tmp" * ; then
+       if ! tar cfz "${BASETGZ}.tmp" ./* --exclude ./sys; then
Thanks for considering.
(By the way, I'm tracking your git repository, I can test some patches,
or some branches, and report back.)
Mraw,
KiBi.
    
    
More information about the Pbuilder-maint
mailing list