Bug#560332: pbuilder: Please exclude sys/ from the base tarball
Junichi Uekawa
dancer at netfort.gr.jp
Sun Dec 13 07:41:55 UTC 2009
Are you saying anything in addition to bug# 542837 ?
Is this a dupe bug?
At Thu, 10 Dec 2009 15:24:10 +0100,
Cyril Brulebois wrote:
>
> 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.
>
>
>
> _______________________________________________
> Pbuilder-maint mailing list
> Pbuilder-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pbuilder-maint
More information about the Pbuilder-maint
mailing list