From owner-freebsd-stable@FreeBSD.ORG Mon Apr 7 08:46:32 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4DE886E9 for ; Mon, 7 Apr 2014 08:46:32 +0000 (UTC) Received: from cerebro.liukuma.net (cerebro.liukuma.net [IPv6:2a00:d1e0:1000:1b00::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0080AC8E for ; Mon, 7 Apr 2014 08:46:31 +0000 (UTC) Received: from cerebro.liukuma.net (localhost [127.0.0.1]) by cerebro.liukuma.net (Postfix) with ESMTP id 6E3BF8A016E for ; Mon, 7 Apr 2014 11:46:30 +0300 (EEST) DKIM-Filter: OpenDKIM Filter v2.8.3 cerebro.liukuma.net 6E3BF8A016E DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=liukuma.net; s=liukudkim; t=1396860390; bh=PfUuxGrXRVXkSIoVx4euYgp+D9P6cUCZrvaxoRhXhqA=; h=From:To:References:In-Reply-To:Subject:Date; b=BkNPpdofGm7FR1JpWohhOMbnP/Rzf215T+YYml6nosdfd1owf/MSoCQgs6rMlxEFE +g9nioo7yFDFEOfzkVZv+abb+cxCYDyVl1iUZ1FYyzqWNhGzY8CcgxcDL1P/GmFDcz ySF6ebh0LC3Tmyg451H7EEu8VW7kHVObQ6LBJ3FQ= X-Virus-Scanned: amavisd-new at liukuma.net Received: from cerebro.liukuma.net ([127.0.0.1]) by cerebro.liukuma.net (cerebro.liukuma.net [127.0.0.1]) (amavisd-new, port 10027) with LMTP id Vm5GvBgWrz2G for ; Mon, 7 Apr 2014 11:46:26 +0300 (EEST) Received: from Rivendell (dsl-kmibrasgw1-54f8d4-179.dhcp.inet.fi [84.248.212.179]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: ignatz@cerebro.liukuma.net) by cerebro.liukuma.net (Postfix) with ESMTPSA id B1B1A8A0170 for ; Mon, 7 Apr 2014 11:46:25 +0300 (EEST) DKIM-Filter: OpenDKIM Filter v2.8.3 cerebro.liukuma.net B1B1A8A0170 Message-ID: <9C7D13843CC24924BAF89EA565054441@Rivendell> From: "Reko Turja" To: References: <5342402D.6070306@FreeBSD.org> In-Reply-To: <5342402D.6070306@FreeBSD.org> Subject: Re: How to remove X11 support and all ports options depend on X11 Date: Mon, 7 Apr 2014 11:46:24 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 08:46:32 -0000 -----Original Message----- From: Matthew Seaman >On 07/04/2014 04:08, illoai@gmail.com wrote: >> On 6 April 2014 22:14, Yushu Gao wrote: >>> Hi, >>> I am new to FreeBSD, I have used Gentoo before. I want to remove the X11 >>> support and all ports options depend on it, I know how to remove X11 >> You can try adding the old >> WITHOUT_X11=yes >> to /etc/make.conf, but you will probably be required >> *for instance: WITH_QT4=yes >> has caused problems in the past, since QT4 requires X11 >> The ports system is not perfect. Sorry. > >Unfortunately, neither is your advice. 'WITHOUT_X11' is obsolete. What >you want nowadays is: > > OPTIONS_UNSET+= x11 > > Note that this can be overridden by OPTIONS settings in individual Sadly, not all the ports do honor the new option yet and I learned the hard way that old style: WITHOUT_X11=yes WITHOUT_GNOME=yes are still required with some ports if you do not want X11/gnome at all. Until the new option is universally honoured, setting the old style knobs is far better alternative than having hundreds of excess ports installed into machine for X or Gnome. Of course proper course of action is to report those portsthat need old knobs, but I was somewhat pressed at the time and had no time to write a PR about it. All I remember the port was either ImageMagick-nox or ghostscript-nox or one of their dependencies. -Reko