From owner-freebsd-ports@FreeBSD.ORG Tue May 26 12:45:30 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4BAF106564A for ; Tue, 26 May 2009 12:45:30 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 327198FC25 for ; Tue, 26 May 2009 12:45:29 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: by fg-out-1718.google.com with SMTP id 22so1202099fge.12 for ; Tue, 26 May 2009 05:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=aVUNZufewfFibRztwQwmmHeU84lXromIfBYW1eN6qfw=; b=qVLp19xn5XH+a5lqQdsHDOlpWUg3Ddr6Cn00bxKajUkUbrXPzifLCDD04zmIMB2kqn hnvuffihQc4YsiF8gDLTOPkLA6IVVRAPXoG6C8xXe+rH5nSq/Q59d7ydkCJYQy4Q3oCf WVWPAZR4EZxjWr93PSw+d2hMvYiWt+msWi1v0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Xzh1fy1rkIut9zu3xoeXmpGRRx/i8UvNjhpNUxXjZW6I2s0ebVf92p8bs8WPi4ieuX RZKfNFi5zNjsvo6yfgntzybLyoZ99C90Qa6ikL5y272CHFoEFqAUgHXhBGlUi+A7rKtG GQuR2YKNkPfLl0/52H1qWcgw2E9RZcWOzPZaw= MIME-Version: 1.0 Sender: florent.thoumie@gmail.com Received: by 10.86.95.8 with SMTP id s8mr6873571fgb.2.1243341928641; Tue, 26 May 2009 05:45:28 -0700 (PDT) In-Reply-To: <20090526120948.GA14134@owl.midgard.homeip.net> References: <20090526113714.GC1043@straylight.m.ringlet.net> <20090526120948.GA14134@owl.midgard.homeip.net> Date: Tue, 26 May 2009 13:45:28 +0100 X-Google-Sender-Auth: a0b4d9a695a429c5 Message-ID: From: Florent Thoumie To: Erik Trulsson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Randy Bush , Peter Pentchev , ports Subject: Re: make.conf no x option X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2009 12:45:31 -0000 On Tue, May 26, 2009 at 1:09 PM, Erik Trulsson wro= te: > On Tue, May 26, 2009 at 08:44:43PM +0900, Randy Bush wrote: >> >> as so many folk build server-only, there must e a make.conf or whatev= er >> >> option to tell ports that you just do not want an x server or any of >> >> it's 500kg friends. =A0but i can not seem to find it. >> > I think you're looking for WITHOUT_X11=3Dyes :) >> >> i have that. =A0i still get a lot of x with some ports. =A0i will try to >> keep a watch for which ones. > > > Well, there are many ports which depend unconditionally upon X. > If you install one of them (or some other port which depends on one of th= em) > you will get X, no questions asked. > > WITHOUT_X11 is useful for those ports which have an optional dependency u= pon > X, but that is all it does. > > > There does not exist any flag which tells the ports-system to refuse to > build any ports which depend on X, which seems to be what you want. Something like the following would work as a safety net. --- /usr/ports/Mk/bsd.xorg.mk.orig 2009-05-26 13:42:52.000000000 +0100 +++ /usr/ports/Mk/bsd.xorg.mk 2009-05-26 13:42:58.000000000 +0100 @@ -28,6 +28,11 @@ # xserver - there's only one atm, I guess everything can fit into the port itself .if defined(XORG_CAT) + +. if defined(WITHOUT_X11) +IGNORE=3D me not want x11 +. endif + # Default variables, common to all new modular xorg ports. .if !defined(USE_TGZ) USE_BZIP2=3D yes --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer