[buildd-tools-devel] Bug#849169: Bug#849168: pbuilder: Expect programe reported "no more ptys" and failed in rebuilding gcc with normal (non-root) user
James Clarke
jrtc27 at jrtc27.com
Fri Dec 23 15:27:02 UTC 2016
reassign 849168 debootstrap
forcemerge 817236 849168
thanks
Hi,
> On 23 Dec 2016, at 06:24, Xiangyu LIU <u122334 at gmail.com> wrote:
>
> Package: pbuilder
> Version: 0.227
> Severity: minor
>
> Dear Pbuilder Maintainers,
>
> I want to rebuild locally gcc-5 and gcc-4.9 in current stretch by pbuilder.
>
>
> I download the source of gcc-5 (Debian) and gcc-4.9 (from Ubuntu) and rebuild by "sudo pbuilder build gcc-xxxxx.dsc".
> But building failed with reporting:
> "The system has no more ptys. Ask your system administrator to create more."
> "while executing"
> "spawn ls"
>
> I gave a try in Pbuilder with root user:
> # expect -c "spawn ls"
> It is OK to output "spawn ls"
>
> But when I type above command with normal user:
> rleigh at WFA256:/$ expect -c "spawn ls"
> spawn ls
> The system has no more ptys. Ask your system administrator to create more.
> while executing
> "spawn ls"
> rleigh at WFA256:/$
>
> I check the /dev/pts, it was mounted in Pbuilder (with both root/normal users):
> rleigh at WFA256:/$ mount | grep pts
> none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
>
> root at WFA256:/# mount | grep pts
> none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
>
>
> I have same issue in sbuild if I rebuild gcc by:
> $ sbuild -d stretch gcc-xxxx.dsc
>
> But it is OK if rebuild with root user:
> $ sudo sbuild -d stretch gcc-xxxx.dsc
>
>
> Yes I can rebuild gcc by sudo sbuild, but I don't know what is happening in Pbuilder or Sbuild with normal user.
> Any comment or advice would be very appreciated !
This is a known issue with debootstrap (#817236 as mentioned above)
which affects any tool trying to use a chroot. Josch, I'm curious as to
why you tagged the corresponding sbuild bug report (Cc'd) as
unreproducible; are you using debootstrap from stable? Anyway, I suggest
you also merge the build bug with the debootstrap one.
Regards,
James
More information about the Buildd-tools-devel
mailing list