From owner-freebsd-ports@freebsd.org Sun Dec 17 06:06:17 2017 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 EFCD2EA46B8 for ; Sun, 17 Dec 2017 06:06:17 +0000 (UTC) (envelope-from adamw@adamw.org) 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 DB2A664AF6 for ; Sun, 17 Dec 2017 06:06:17 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mailman.ysv.freebsd.org (Postfix) id D7883EA46B7; Sun, 17 Dec 2017 06:06:17 +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 D730CEA46B6 for ; Sun, 17 Dec 2017 06:06:17 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF60364AF5 for ; Sun, 17 Dec 2017 06:06:17 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id ca8ced4f TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 16 Dec 2017 23:06:09 -0700 (MST) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Option vs. flavor? From: Adam Weinberger In-Reply-To: Date: Sat, 16 Dec 2017 23:06:08 -0700 Cc: "ports@freebsd.org" Content-Transfer-Encoding: 7bit Message-Id: References: To: Yuri X-Mailer: Apple Mail (2.3445.5.20) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2017 06:06:18 -0000 > On 15 Dec, 2017, at 18:38, Yuri wrote: > > One port is small by itself, but it semi-optionally requires 4.5GB of > static data installed. > > It is possible to download this data optionally, conditional on the port > option DATA_FILES which will be "off" by default, so that the users who > need the data will install it with DATA_FILES=on. > > Alternatively, it is possible to create a flavor, something like @withData. > > > Should the option be preferred, or should the flavor be preferred? Hi Yuri, Is the port of any use without the data file? If everybody who uses the port needs the data file, I wouldn't make it an option at all. The precedent is that ports with huge data files are marked NO_PACKAGE, so there's no impact on the package builders. Make it non-optional, mark it as NO_PACKAGE, and then the port works for all users. If, however, the port IS real-world usable without the data files, I'd turn the data file into a second port. That way, package people can very easily install the NO_BUILD slave and still install the main program by pkg. # Adam -- Adam Weinberger adamw@adamw.org http://www.adamw.org