From owner-freebsd-ports@freebsd.org Wed Jul 12 21:09:18 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8183DA3E47 for ; Wed, 12 Jul 2017 21:09:18 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cdptpa-oedge", Issuer "cdptpa-oedge" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A603177D11 for ; Wed, 12 Jul 2017 21:09:17 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from [65.186.81.207] ([65.186.81.207:55962] helo=raspberrypi.bildanet.com) by cdptpa-omsmta02 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 1D/93-20123-CFF86695; Wed, 12 Jul 2017 21:09:16 +0000 Received: from [192.168.1.143] by raspberrypi.bildanet.com with esmtp (Exim 4.84) (envelope-from ) id 1dVOsm-0004gw-3J for freebsd-ports@freebsd.org; Wed, 12 Jul 2017 21:09:16 +0000 Subject: Re: synth: Error opening terminal: xterm To: freebsd-ports@freebsd.org References: <201707121159.v6CBxspH039501@jail0199.vps.exonetric.net> From: Baho Utot Message-ID: <52a89dc1-11ae-dd73-db98-c020485c8911@columbus.rr.com> Date: Wed, 12 Jul 2017 21:09:11 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <201707121159.v6CBxspH039501@jail0199.vps.exonetric.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-RR-Connecting-IP: 107.14.168.7:25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2017 21:09:18 -0000 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.