Package: pbuilder Version: 0.213 Severity: normal Tags: patch Dear mantainer, I've attached a patch that adds support for shared memory. Just creates a mounting point at /run/shm (if exists, otherwise uses /dev/shm as monting point) as tmpfs. I've found this constraint when running the test cases one of my packages.
Could you check and apply it, please? -- TiN
From 9a73969ac6ec2fc1b51f90a277ee9bfd1208e9eb Mon Sep 17 00:00:00 2001 From: Agustin Henze <t...@sluc.org.ar> Date: Thu, 14 Feb 2013 18:53:23 -0300 Subject: Added support for shared memory mounting point --- pbuilder-modules | 11 +++++++++++ pbuilderrc | 1 + 2 files changed, 12 insertions(+) diff --git a/pbuilder-modules b/pbuilder-modules index 5c935eb..1f8f0c7 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -221,6 +221,9 @@ function umountproc () { if [ "$USEDEVFS" = "yes" ]; then umount_one "dev" fi + if [ "$USEDEVSHM" = "yes" ]; then + umount_one "$SHM_PATH" + fi if [ "$USEPROC" = "yes" ]; then if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ -e $BUILDPLACE/proc/sys/fs/binfmt_misc/status ]; then umount_one "proc/sys/fs/binfmt_misc" @@ -253,6 +256,14 @@ function mountproc () { mount -t devfs /dev "$BUILDPLACE/dev" mounted[${#mounted[@]}]="$BUILDPLACE/dev" fi + if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ "$USEDEVSHM" = "yes" ]; then + SHM_PATH="run/shm" + [ ! -d "/$SHM_PATH" ] && SHM_PATH="dev/shm" + log "I: mounting /$SHM_PATH filesystem" + mkdir -p $BUILDPLACE/$SHM_PATH || true + mount -t tmpfs tmpfs "$BUILDPLACE/$SHM_PATH" + mounted[${#mounted[@]}]="$BUILDPLACE/$SHM_PATH" + fi if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ "$USEDEVPTS" = "yes" ]; then log "I: mounting /dev/pts filesystem" mkdir -p $BUILDPLACE/dev/pts || true diff --git a/pbuilderrc b/pbuilderrc index 8462728..0c1bd4b 100644 --- a/pbuilderrc +++ b/pbuilderrc @@ -10,6 +10,7 @@ MIRRORSITE=http://cdn.debian.net/debian #export http_proxy=http://your-proxy:8080/ USEPROC=yes USEDEVPTS=yes +USEDEVSHM=yes USEDEVFS=no BUILDRESULT=/var/cache/pbuilder/result/ -- 1.7.10.4
signature.asc
Description: OpenPGP digital signature