Package: pbuilder
Version: 0.128
Tags: patch

expect can't create pseudo-terminals in pbuilder chroots when
USEDEVPTS is set because pbuilder doesn't create /dev/ptmx.  The
attached patch makes it do so.

-- 
Matt
--- pbuilder-modules.orig       2005-07-05 11:16:12.427572856 -0700
+++ pbuilder-modules    2005-07-05 11:17:05.235544824 -0700
@@ -147,6 +147,9 @@
     if [ "$USEDEVPTS" = "yes" ]; then
        echo " -> mounting /dev/pts filesystem"
        mkdir -p $BUILDPLACE/dev/pts || true
+       mknod $BUILDPLACE/dev/ptmx c 5 2
+       chmod 0666 $BUILDPLACE/dev/ptmx
+       chown root:tty $BUILDPLACE/dev/ptmx
        mount -t devpts /dev/pts "$BUILDPLACE/dev/pts" 
     fi
     for mnt in $BINDMOUNTS; do

Attachment: signature.asc
Description: Digital signature

Reply via email to