pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/56936: posix_openpt(O_RDWR | O_NOCTTY) fails when configuring pkgsrc/x11/mlterm



The following reply was made to PR pkg/56936; it has been noted by GNATS.

From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
To: gnats-bugs%netbsd.org@localhost, joerg%bec.de@localhost
Cc: 
Subject: Re: pkg/56936: posix_openpt(O_RDWR | O_NOCTTY) fails when
 configuring pkgsrc/x11/mlterm
Date: Wed, 07 Sep 2022 21:25:39 -0400

 On Wed, 2022-09-07 at 23:00 +0000, Joerg Sonnenberger wrote:
 > The following reply was made to PR pkg/56936; it has been noted by
 > GNATS.
 >=20
 > From: Joerg Sonnenberger <joerg%bec.de@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
 > pkgsrc-bugs%netbsd.org@localhost,
 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0rokuyama.rk%gmail.com@localhost
 > Subject: Re: pkg/56936: posix_openpt(O_RDWR | O_NOCTTY) fails when
 > =C2=A0configuring pkgsrc/x11/mlterm
 > Date: Thu, 8 Sep 2022 00:55:33 +0200
 >=20
 > =C2=A0Am Wed, Sep 07, 2022 at 09:35:01PM +0000 schrieb David H. Gutteridg=
 e:
 > =C2=A0>=C2=A0 Inside a sandbox, openpty(3) also doesn't work, as I'd noti=
 ced
 > since
 > =C2=A0>=C2=A0 script(1) fails to work in that context.
 > =C2=A0>=C2=A0=20
 > =C2=A0>=C2=A0 script: openpty: No such file or directory
 > =C2=A0>=C2=A0=20
 > =C2=A0>=C2=A0=C2=A0=C2=A0 22686=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 script=C2=
 =A0=C2=A0 CALL=C2=A0 open(0x6fd6ee21228c,2,0)
 > =C2=A0>=C2=A0=C2=A0=C2=A0 22686=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 script=C2=
 =A0=C2=A0 NAMI=C2=A0 "/dev/ptm"
 > =C2=A0>=C2=A0=C2=A0=C2=A0 22686=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 script=C2=
 =A0=C2=A0 RET=C2=A0=C2=A0 open 4
 > =C2=A0>=C2=A0=C2=A0=C2=A0 22686=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 script=C2=
 =A0=C2=A0 CALL=C2=A0 ioctl(4,TIOCPTMGET,0x7f7fffd49b00)
 > =C2=A0>=C2=A0=C2=A0=C2=A0 22686=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 script=C2=
 =A0=C2=A0 RET=C2=A0=C2=A0 ioctl -1 errno 45 Operation not
 > supported
 > =C2=A0
 > =C2=A0That means your sandbox is not configured correctly. Do you have
 > =C2=A0/dev/pts null-mounted in the chroot?
 > =C2=A0
 > =C2=A0Joerg
 >=20
 
 No, I don't. I never even noticed any of this until I was trying to
 diagnose this particular issue, my (limited) bulk builds always "just
 worked" for me. (I don't use mlterm.)
 
 My basis for defining the sandbox has always been essentially what
 pkgtools/mksandbox does, which doesn't seem to cover this case (and I'm
 guessing that's true for some other installations, or they follow some
 other similar means of definition).
 
 Dave
 


Home | Main Index | Thread Index | Old Index