From owner-freebsd-ports@FreeBSD.ORG Thu Jan 15 08:27:55 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFD77512 for ; Thu, 15 Jan 2015 08:27:55 +0000 (UTC) Received: from nschwmtas03p.mx.bigpond.com (nschwmtas03p.mx.bigpond.com [61.9.189.143]) by mx1.freebsd.org (Postfix) with ESMTP id 6764FC27 for ; Thu, 15 Jan 2015 08:27:55 +0000 (UTC) Received: from nschwcmgw06p ([61.9.190.166]) by nschwmtas03p.mx.bigpond.com with ESMTP id <20150115082747.MQGT23397.nschwmtas03p.mx.bigpond.com@nschwcmgw06p> for ; Thu, 15 Jan 2015 08:27:47 +0000 Received: from hermes.heuristicsystems.com.au ([203.41.22.114]) by nschwcmgw06p with BigPond Outbound id g8Tm1p00d2ThMyb018Tnjb; Thu, 15 Jan 2015 08:27:47 +0000 X-Authority-Analysis: v=2.0 cv=NbJkJh/4 c=1 sm=1 a=tBIanQelQkU72CJWnm+MWA==:17 a=XD52yEjQpfAA:10 a=N659UExz7-8A:10 a=GHIR_BbyAAAA:8 a=YNv0rlydsVwA:10 a=oMrGJ9lLOoZJUtzH0pgA:9 a=pILNOxqGKmIA:10 a=tBIanQelQkU72CJWnm+MWA==:117 Received: from [10.0.5.3] (ewsw01.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.14.5/8.13.6) with ESMTP id t0F8QcZI036979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 15 Jan 2015 19:26:40 +1100 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Message-ID: <54B779BC.1040501@heuristicsystems.com.au> Date: Thu, 15 Jan 2015 19:26:36 +1100 From: Dewayne Geraghty User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Waitman Gobble , freebsd-ports@freebsd.org Subject: Re: postgresql93 port and libedit References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2015 08:27:55 -0000 On 15/01/2015 5:27 PM, Waitman Gobble wrote: > Hi, > > I noticed that postgresql93-client port pulls in readline, which is GPLv3. > When I get rid of readline in Makefile 'USES' and also change the > bottom of the Makefile in postgresql93-server, > > ... > .include "${.CURDIR}/../postgresql92-server/Makefile" > > CONFIGURE_ARGS+=--with-libedit-preferred > > > It builds without readline and links against libedit in base: > > > # ldd /usr/local/bin/psql > /usr/local/bin/psql: > libpq.so.5 => /usr/local/lib/libpq.so.5 (0x800885000) > libintl.so.8 => /usr/local/lib/libintl.so.8 (0x800ab3000) > libssl.so.7 => /usr/lib/libssl.so.7 (0x800cbe000) > libedit.so.7 => /lib/libedit.so.7 (0x800f2a000) > libthr.so.3 => /lib/libthr.so.3 (0x801161000) > libc.so.7 => /lib/libc.so.7 (0x801385000) > libcrypto.so.7 => /lib/libcrypto.so.7 (0x80171e000) > libncursesw.so.8 => /lib/libncursesw.so.8 (0x801b16000) > > > > .. there's a link to gettext libintl but that's LGPL (2.1) > > Anyhow I haven't done testing with psql linked to libedit instead of > readline.. There's some noise about this a few years back but I don't > see anything recent. Anyone have any 'bad' recent experience with > libedit? pitfalls? It might be good to have libedit added as an > option. I'm working on an appliance and the readline dependency kinda > messes things up a bit for me. Obviously other remedies beyond ports > but I think it could be a nice option. Comments appreciated. > > Thanks, > Good catch Waitman. And thanks for sharing an approach to avoid GPLv3 inclusion. Though you've raised an interesting question as to whether the licencing information displayed by "pkg info" is accurate where a port pulls in mandatory dependencies that use a more restrictive open source licence. Of the subset of ports that I use (servers only), the ports [licences] that may be of concern are: python27 [PSFL], mediawiki [GPLv2], mysql56-server [from mysql web GPL], pcre [BSD3CLAUSE] also use readline and aren't tagged as GPLv3 which they probably should as FreeBSD metaports requires readline?