From owner-freebsd-ports@FreeBSD.ORG Thu Apr 22 15:48:03 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EEAF1065689 for ; Thu, 22 Apr 2010 15:48:03 +0000 (UTC) (envelope-from rfarmer@predatorlabs.net) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 47B628FC22 for ; Thu, 22 Apr 2010 15:48:02 +0000 (UTC) Received: by gwj18 with SMTP id 18so1896915gwj.13 for ; Thu, 22 Apr 2010 08:48:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.98.16 with HTTP; Thu, 22 Apr 2010 08:48:01 -0700 (PDT) X-Originating-IP: [128.95.133.173] In-Reply-To: <4BCFEA35.8070109@bsdforen.de> References: <4BCFEA35.8070109@bsdforen.de> Date: Thu, 22 Apr 2010 08:48:01 -0700 Received: by 10.150.244.8 with SMTP id r8mr10241963ybh.206.1271951282462; Thu, 22 Apr 2010 08:48:02 -0700 (PDT) Message-ID: From: Rob Farmer To: Dominic Fandrey Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@freebsd.org Subject: Re: Dynamic plists 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: Thu, 22 Apr 2010 15:48:03 -0000 On Wed, Apr 21, 2010 at 11:18 PM, Dominic Fandrey wrote: > On 22/04/2010 01:45, Rob Farmer wrote: >> I maintain math/scilab and am preparing to update it. This port has a >> huge plist (slightly under 15000 lines), hundreds of which change >> depending on what options are selected. It is a bit of a pain to >> update. The porters handbook makes vague reference to dynamic plists - >> so I was wondering, would this be a good idea? And if so, what is the >> best way to make one? > > You normally base it on the output of > ${FIND} -s PATH -type f > ${FIND} -d PATH -type d | ${SED} 's,^,@dirrm ,' What would PATH be? It seem to me from a quick look through the tree that the ports using dynamic plists are not following heir(7) but instead installing everything in a single directory, like /usr/local/jdk1.6.0/, and the plist can be generated by simply enumerating the contents of that directory. That's not the case here. The only workaround I saw for this was that the Mozilla ports seem to do an install in a "fake" directory in the workdir, look at that, and then copy that into /usr/local. I'm not sure I like the idea of doubling the amount of work required for the install phase just to save the maintainer a little time at upgrades, however. -- Rob Farmer > > Of course there's normally more to it, but that's the basic principle. > > > -- > A: Because it fouls the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on usenet and in e-mail? > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >