From owner-freebsd-ports@freebsd.org Thu Aug 20 20:10:25 2015 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 84DCC9BFDAA for ; Thu, 20 Aug 2015 20:10:25 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6BE9818AD for ; Thu, 20 Aug 2015 20:10:25 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: by mailman.ysv.freebsd.org (Postfix) id 68FDB9BFDA9; Thu, 20 Aug 2015 20:10:25 +0000 (UTC) Delivered-To: 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 688A29BFDA8 for ; Thu, 20 Aug 2015 20:10:25 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1027318A8; Thu, 20 Aug 2015 20:10:24 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id t7KKANXw068943 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 20 Aug 2015 14:10:23 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id t7KKANBl068940; Thu, 20 Aug 2015 14:10:23 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 20 Aug 2015 14:10:23 -0600 (MDT) From: Warren Block To: Hiroki Sato cc: ports@FreeBSD.org Subject: Re: Removal of print/ghostscript*-nox11 In-Reply-To: <20150821.022521.792759762853683209.hrs@allbsd.org> Message-ID: References: <20150821.022521.792759762853683209.hrs@allbsd.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Thu, 20 Aug 2015 14:10:23 -0600 (MDT) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2015 20:10:25 -0000 On Fri, 21 Aug 2015, Hiroki Sato wrote: > Plan A: Just remove print/ghostscript*-nox11. > > Currently ghostscript depends on X11 libraries of ice, sm, x11, > xext, and xt. While one can still eliminate these dependency by > disabling X11 in PORT_OPTIONS, the pre-complied packages always > depend on them. > > Pros: Simple. > > Cons: GS always depends on the X11 libraries. > > Plan B: Remove print/ghostscript*-nox11 and split the X11-dependent > part of print/ghostscript9 into another port. > > Ghostscript can be built into two parts; one is a part without X11 > libraries and another is a shared library for X11-dependent > functionality. GS will find the shared library and transparently > enable x11* devices only when available. So we can split > ghostscript ports into base and X11 part like this: > > print/ghostscript9-base: no X11 dependency > print/ghostscript9-x11: installs the shared library only > > Ports which require ghostscript can safely depend on > ghostscript9-base regardless of X11 support. If they need X11 > support in GS (print/gv, for example), USES=ghostscript:x11 picks up > ghostscript9-x11 as an additional dependency. > > Pros: Minimal dependency. > > Cons: People may confuse what -base and -x11 mean and which package > should be installed when they want ghostscript. > > I have created patches for the both and confirmed technical > feasibility but still wondering which looks better to people who are > using ghostscript. Any comments and/or questions are welcome. Plan B sounds better to me. Confusion might be reduced by giving it a name that suggests it is an additional component rather than an alternate version of ghostscript. Maybe ghostscript9-x11libs or ghostscript9-xlibsupport or something like that?