Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Cyril Brulebois <kibi <at> debian.org>
Subject: Bug#560332: pbuilder: Please exclude sys/ from the base tarball
Newsgroups: gmane.linux.debian.packages.pbuilder.devel
Date: Thursday 10th December 2009 14:24:10 UTC (over 7 years ago)
Package: pbuilder
Version: 0.194
Severity: wishlist
User: [email protected]
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.



_______________________________________________
Pbuilder-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pbuilder-maint
 
CD: 20ms