From owner-freebsd-ports@freebsd.org Tue Jul 31 10:59:06 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E70D210560B9 for ; Tue, 31 Jul 2018 10:59:05 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 85C2F84FF1 for ; Tue, 31 Jul 2018 10:59:05 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.202.132.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 7F51612F66 for ; Tue, 31 Jul 2018 10:58:56 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/7F51612F66; dkim=none; dkim-atps=neutral Subject: Re: how to make ports not install xorg or dependencies To: freebsd-ports@freebsd.org References: <703ec31c-a798-68c6-c9fa-4d73bce50be2@zyxst.net> From: Matthew Seaman Message-ID: <93517d3d-7e93-873c-5326-7e25d6d17c6d@FreeBSD.org> Date: Tue, 31 Jul 2018 11:58:48 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <703ec31c-a798-68c6-c9fa-4d73bce50be2@zyxst.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 10:59:06 -0000 On 31/07/2018 11:41, tech-lists wrote: > Hello, > > context: freebsd-12 r336215 arm64 > > I don't want xorg or X11 or any of its components installed on this > system. I install ports in the traditional way, in other words cd port > && make config && make install. Any ports that in a generic config want > to install xorg libs, I want the no-x11 variant. > > There used to be a way to enforce this no-xorg in make.conf but looking > at /usr/share/examples/etc/make.conf I can find no reference to X Xorg > x11 or xorg. I presume there's a new method. If there is, can anyone > please tell me how? > > thanks, Try this in /etc/make.conf. It doesn't forbid ports from bringing in X11 dependencies, but where doing that is optional, it turns it off: OPTIONS_UNSET?= X11 All that does is pre-answer the configuration dialogue to say "turn off X11 support." That's enough to avoid bringing in X in many cases, but it's no guarrantee unfortunately. Some things just have a fixed dependency on X11. Note too that various ports will now fail to compile, because they expect their dependencies somewhere down the tree to have the X11 support that this turns off. Also, if you're an emacs user, then DEFAULT_VERSIONS+= emacs=nox would probably interest you. Cheers, Matthew