From owner-freebsd-ports@FreeBSD.ORG Tue Nov 18 18:38:54 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 823EC1065674; Tue, 18 Nov 2008 18:38:54 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.freebsd.org (Postfix) with ESMTP id F17D58FC0C; Tue, 18 Nov 2008 18:38:53 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by koef.zs64.net (8.14.3/8.14.3) with ESMTP id mAIIcq5s085973; Tue, 18 Nov 2008 19:38:53 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.3/8.14.3/Submit) id mAIIcqAN085972; Tue, 18 Nov 2008 13:38:52 -0500 (EST) (envelope-from cracauer) Date: Tue, 18 Nov 2008 13:38:52 -0500 From: Martin Cracauer To: Wesley Shields Message-ID: <20081118183852.GA85896@cons.org> References: <20081116045257.2EBEE12E4209@quark.ds9.tecnik93.com> <20081118160528.GA79253@cons.org> <20081118185717.0573f110@it.buh.tecnik93.com> <20081118170826.GA82098@cons.org> <20081118192837.03bd8b53@it.buh.tecnik93.com> <20081118173545.GA83384@cons.org> <49230009.4080903@FreeBSD.org> <20081118183033.GA85610@cons.org> <20081118183623.GD81192@atarininja.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081118183623.GD81192@atarininja.org> User-Agent: Mutt/1.4.2.3i Cc: Greg Larkin , ports@FreeBSD.org, Martin Cracauer , Ion-Mihai Tetcu Subject: Re: How do conditionalize plist on $NOPORTDOCS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 18:38:54 -0000 Wesley Shields wrote on Tue, Nov 18, 2008 at 01:36:23PM -0500: > On Tue, Nov 18, 2008 at 01:30:33PM -0500, Martin Cracauer wrote: > > > >>> While we are talking, how do you guys thing I should handle this > > > >>> problem: it's a binary port. There are different binaries for > > > >>> FreeBSD-6.x, 7.x, 8.x > > > >>> http://common-lisp.net/project/cmucl/downloads/release/19e/ > > > >>> > > > >>> The 6.3 will run everywhere. Should I just use that one? Do you want > > > >>> me to conditionalize on FreeBSD version? > > > >> If they bother to release different native binaries for our supported > > > >> OS versions let encourage them to keep doing that ;-) > > > > > > > > "They" == kind of me, although I didn't build these particular > > > > binaries. > > > > > > > > Is there prior art in ports about how to do this? What do I do with > > > > oddball version numbers? > > > > > > Perhaps you can conditionalize the DISTNAME based on the FreeBSD version > > > number, as shown on this page: > > > http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html? > > > > > > If you do that, just make sure that the distinfo file has an entry for > > > each possible DISTNAME value, so the checksum verification will work on > > > any FreeBSD version. > > > > So what happens when a user runs FreeBSD-6, installs such a port, > > then upgrades to FreeBSD-7. > > > > Would the port for the installed package come up with the wrong plist > > and whatnot? > > Maybe I'm misunderstanding what you're asking but if the port installs > different files based upon the version it's being installed on it should > use PLIST_SUB accordingly. > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/plist.html But you'd have the wrong one installed. Your freebsd-7 would have the freebsd-6 package installed and the installed files don't match. On second thought, I don't think it matters since it's not different from having /usr/ports/lang/cmucl/* updated to something new. Never mind. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/