[Pbuilder-maint] Bug#321073: please add support for unionfs

Anderson Lizardo anderson.lizardo at gmail.com
Thu Nov 16 02:41:14 CET 2006


Package: pbuilder
Version: 0.160

Hi,

The attached patch adds support for unionfs snapshot in pbuilder. It's
based on a patch that I've made some time ago for version 0.128 [1],
but just recently I had some time to update it.

I've tested it on Ubuntu 6.10 (kernel 2.6.17). It would be nice if
someone could test it on Debian unstable (I believe it will not work
on sarge)

The patch is split in two parts: unionfs_harmless_changes.patch
contains changes that do not affect current functionality in any way
but are required by unionfs. The patch reorders some commands so that
BUILDPLACE is kept unchanged.

The second patch (unionfs.patch) adds unionfs support.

I've added some documentation in the man pages, but here is the basic
usage (assuming you already have a unpacked rootstrap in
/var/cache/pbuilder/build):

pbuilder login --unionfs-snap /var/cache/pbuilder/unionfs-snap # login
to the rootstrap
pbuilder build --unionfs-snap /var/cache/pbuilder/unionfs-snap # build a package
...

alternatively to the "--unionfs-snap" parameter, you can add this line
to .pbuilderrc:

UNIONFS_SNAP=/var/cache/pbuilder/unionfs-snap/

and just use:

pbuilder login
pbuilder build
...

To change the base rootstrap location, use "--buildplace <dir>" or
change BUILDPLACE=<dir> in .pbuilderrc.

KNOWN ISSUE:

- due to a limitation in unionfs, some packages that use
/proc/self/exe symlink to check for their full path (e.g. many perl
modules) may fail to build. This is fixed in recent unionfs releases,
but is disabled by default because it's experimental (look for
UNIONFS_MMAP in unionfs' INSTALL file).

[1] http://www.mail-archive.com/ubuntu-motu@lists.ubuntu.com/msg00553.html

Regards,
-- 
Anderson Lizardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unionfs_harmless_changes.patch
Type: text/x-patch
Size: 3232 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20061115/0edd4380/unionfs_harmless_changes.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unionfs.patch
Type: text/x-patch
Size: 6872 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20061115/0edd4380/unionfs.bin


More information about the Pbuilder-maint mailing list