From owner-freebsd-ports@FreeBSD.ORG Sat Aug 20 18:39:08 2011 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 16ADE1065680 for ; Sat, 20 Aug 2011 18:39:08 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id DC5498FC13 for ; Sat, 20 Aug 2011 18:39:07 +0000 (UTC) Received: by iye7 with SMTP id 7so14364580iye.17 for ; Sat, 20 Aug 2011 11:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=MFUrWk5AX/94tjBdQD9IFPGHqysG3cjYiFfzl5CtmVc=; b=jjJtLrS5/APKJ6VX22A9KdFBwes1/HqvgUMxMYykb0aMihJmjxXVerwfb9bwiH37fK UYyHIu4XtvJY0qBqR3n6vK0lYNsLusPurw7IbkBSPkeg1wzw6It4pX5V+NipDTeBmsvp m7ZH/0t1XuGa5/+zYCV7NsOudOvEMdUu5WvA0= Received: by 10.231.4.3 with SMTP id 3mr1671458ibp.72.1313865547111; Sat, 20 Aug 2011 11:39:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.182.77 with HTTP; Sat, 20 Aug 2011 11:38:37 -0700 (PDT) From: Chris Rees Date: Sat, 20 Aug 2011 19:38:37 +0100 Message-ID: To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Which programs actually use INDEX? [formerly Extra fields in INDEX] 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: Sat, 20 Aug 2011 18:39:08 -0000 On 19 August 2011 15:32, Chris Rees wrote: > Hi all, > > I'm having a look at modifying INDEX to have a field at the end (to > cause minimum breakage), but I've discovered that in a few ports there > (6630 out of 22731) appears to be extra 'stuff' in fields past field > 10 (which is for the first WWW: line in pkg-descr). > Hi all again, After some kind and encouraging words from Mark I've had a look at Tools/make_index script. I've hacked in support for adding a LICENSE field to the end (patches will be sent to portmgr when properly tested), but I'm a bit concerned about the layout and field order in INDEX: pkgname|portdir|prefix|comment|descrfile|maintainer|categories| which seems fine, until we move onto the next fields: build-dep|run-dep|WWW|extract-dep|patch-dep|fetch-dep[|license] Clearly the extract-dep etc were added later, as an afterthought, but the risk of tool breakage was too great. This makes the INDEXfile horribly unintuitive to read and parse, and I'd really like to look at at least simplifying it or tidying it up (as well as checking edge cases where it's actually making bad assumptions [re pkg_version]). If anyone thinks that their ${FAVOURITE_TOOL} parses, depends on or even looks at INDEX then please either email me or add it to the list at [1]. Thanks, Chris [1] http://wiki.freebsd.org/Index --=20 Chris Rees =A0 =A0 =A0 =A0 =A0| FreeBSD Developer crees@FreeBSD.org =A0 | http://people.freebsd.org/~crees