From owner-freebsd-ports@freebsd.org Sun Dec 17 14:32:22 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 47DC9E8B403 for ; Sun, 17 Dec 2017 14:32:22 +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 335627228C for ; Sun, 17 Dec 2017 14:32:22 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mailman.ysv.freebsd.org (Postfix) id 32B46E8B402; Sun, 17 Dec 2017 14:32:22 +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 325AFE8B400 for ; Sun, 17 Dec 2017 14:32:22 +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 996277228B for ; Sun, 17 Dec 2017 14:32:21 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id 3e666f29 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sun, 17 Dec 2017 07:32:19 -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: Sun, 17 Dec 2017 07:32:17 -0700 Cc: "ports@freebsd.org" Content-Transfer-Encoding: 7bit Message-Id: <0CE3611A-F100-4443-93B4-68A0A83F162B@adamw.org> 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 14:32:22 -0000 > On 17 Dec, 2017, at 1:48, Yuri wrote: > > On 12/16/17 22:06, Adam Weinberger wrote: >> 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. > > > Hi Adam, > > > It is usable without data. Portions of the data are recommended to be > downloaded into the specific directory for particular functions. Of > course, it's more convenient to just a have all of it installed, and > users will need all of it for all functions. > > This is the large physics package called Geant4 for simulation of the > passage of particles through matter. https://reviews.freebsd.org/D13504 Ah okay. Then I'd say, make a slave port that just fetches/extracts/installs the data files, and an option in the Geant4 master port that defaults to off. Set the slave port to NO_PACKAGE. I wouldn't go the flavor route, because the purpose of flavors is to generate multiple packages. The 4.5GB data files shouldn't have a package, so options is the way to go. # Adam -- Adam Weinberger adamw@adamw.org http://www.adamw.org