From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 22:04:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02FB1106567A for ; Tue, 28 Oct 2008 22:04:13 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id A55E28FC0A for ; Tue, 28 Oct 2008 22:04:12 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id B017AAFCF5B; Tue, 28 Oct 2008 14:04:11 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 28 Oct 2008 23:04:09 +0100 User-Agent: KMail/1.9.7 References: <200810221556.28731.jmc-freebsd2@milibyte.co.uk> <139b44430810230058k1e18cd33p40638000b7b7c027@mail.gmail.com> <4900377F.60004@infracaninophile.co.uk> In-Reply-To: <4900377F.60004@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810282304.10527.fbsd.questions@rachie.is-a-geek.net> Cc: Wojciech Puchar , Mike Clarke , Valentin Bud Subject: Re: Can't upgrade or deinstall phpMyAdmin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 22:04:13 -0000 On Thursday 23 October 2008 10:36:15 Matthew Seaman wrote: > The X dependencies come in via php5-gd and pecl-pdflib. php5-gd depends on > gd, which depends on libXpm and t1lib which both depend on X libs. > pecl-pdflib itself depends on php5-gd. Turning off those two options will > keep you X free. More to the point, set WITHOUT_X11=yes in /etc/make.conf or on the command line when building php5-gd and t1lib. On headless servers, putting it in /etc/make.conf will save a few headaches. Sadly, php5-gd hides the WITHOUT_X11 from the OPTIONS dialog, but it's in the /usr/ports/lang/php5/Makefile.ext: .if ${PHP_MODNAME} == "gd" LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg . if !defined(WITHOUT_X11) USE_XORG= xpm . endif So, if you need more finegrained control, put this in /etc/make.conf: .if !empty(${.CURDIR:M*/graphics/php5-gd/*}) || !empty(${.CURDIR:M*/devel/t1lib/*}) WITHOUT_X11=yes .endif > Valentin Bud wrote: > | > | I am not that good in FBSD so i'm asking > | The good (if not best) thing about the ports system is that Makefiles are readable, though the stuff in /usr/ports/Mk can be overwhelming, you can figure out what does what from a port's Makefile pretty well, even when you don't know much about make(1). And of course there's ports(7) and the elaborate comments at the start of /usr/ports/Mk/bsd.port.mk. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.