From owner-freebsd-ports Wed Nov 27 12: 3:27 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4599E37B401 for ; Wed, 27 Nov 2002 12:03:23 -0800 (PST) Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB3DF43EC2 for ; Wed, 27 Nov 2002 12:03:22 -0800 (PST) (envelope-from parv_fm@mailsent.net) Received: from sdn-ap-010dcwashp0234.dialsprint.net ([63.188.96.234] helo=moo.holy.cow) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18H8Oz-00037F-00 for freebsd-ports@FreeBSD.ORG; Wed, 27 Nov 2002 12:03:22 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id EB905B0F0; Wed, 27 Nov 2002 15:04:35 -0500 (EST) Date: Wed, 27 Nov 2002 15:04:35 -0500 From: parv To: f-ports Subject: Re: creating ports INDEX from actual installed ports Message-ID: <20021127200435.GB21971@moo.holy.cow> Mail-Followup-To: f-ports References: <20021127045833.GA17350@moo.holy.cow> <5.2.0.9.2.20021126205857.00a7da30@pozo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.2.20021126205857.00a7da30@pozo.com> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org in message <5.2.0.9.2.20021126205857.00a7da30@pozo.com>, wrote Manfred Antar thusly... > > At 11:58 PM 11/26/2002 -0500, parv wrote: > >before i start (in perl) ... does anybody aware of past or present > >efforts to generate ports INDEX from _installed_ports_ (independent > >of $PORTSDIR/Tools/make_index)? > > > > > >i checked portupgrade-20021113, it uses above perl program; nothing > >else seemed to standout in ports/sysutils. > > portsdb -u -U works i should have asked for independence from the "describe" target (instead of make_index). anyway... portupgrade comes close, but not quite. while making INDEX(|.db) via portsdb, it generated following error (wrapped for e-mail) among others... "/usr3/ports/x11-toolkits/ruby-gtk/Makefile", line 25: Could not find \ /usr3/ports/x11-toolkits/ruby-gtk/../../x11/ruby-gnome/Makefile.common: \ malformed entry: "/usr3/ports/x11-toolkits/ruby-gtk/Makefile", \ line 25: Could not find /usr3/ports/x11-toolkits/ruby-gtk/../../x11/ruby-gnome/Makefile.common make: fatal errors encountered -- cannot continue: malformed entry: \ make: fatal errors encountered -- cannot continue *** Error code 1: malformed entry: *** Error code 1 `all' not remade because of errors.: malformed entry: `all' not remade because of errors. make_index: no entry for: /usr2/local make_index: no entry for: /usr2/local make_index: no entry for: /usr/ports/x11-toolkits/ruby-gtk ...despite the errors, both indexes were made correctly. that's much more than that can be said about ports own index making. re-reading various portupgrade supporting programs/modules/libs, it does give me some idea where to start... most importantly to skip using make, just parse the damn Makefile where- & whenever possible. i think where "describe" target fails (in case of missing directories) & make usage might be important is in deducing the dependencies. - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message