Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2017 21:09:11 -0400
From:      Baho Utot <baho-utot@columbus.rr.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: synth: Error opening terminal: xterm
Message-ID:  <52a89dc1-11ae-dd73-db98-c020485c8911@columbus.rr.com>
In-Reply-To: <201707121159.v6CBxspH039501@jail0199.vps.exonetric.net>
References:  <201707121159.v6CBxspH039501@jail0199.vps.exonetric.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On 7/12/2017 7:59 AM, Anton Shterenlikht wrote:
> I'm starting using synth, never used it before.
> I get this error:
>
> # synth build net/mpich
> Error opening terminal: xterm.
as a regular user open xterm
then do the fololwing
su -
synth just-build /net/mpich
or if you have doas and doas configured then
doas synth just-build net/mpich

>
> I'm supposed to run synth as root, right?
> Is synth trying to open another xterm as root?
>
> I've never allowed root access to a display:
>
> # xterm
> Warning: This program is an suid-root program or is being run by the root user.
> The full text of the error or warning message cannot be safely formatted
> in this environment. You may get a more descriptive message by running the
> program as a non-root user or by removing the suid bit on the executable.
> xterm: Xt error: Can't open display: %s
> xterm: DISPLAY is not set
>
> Am I wrong?
>

I run synth from a non-root account using sh and a script that uses doas

I am going to put all my scripts on github when I get the time.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52a89dc1-11ae-dd73-db98-c020485c8911>