From owner-freebsd-ports Fri Apr 9 14:35:50 1999 Delivered-To: freebsd-ports@freebsd.org Received: from cerebus.nectar.com (nectar-gw.nectar.com [204.0.249.101]) by hub.freebsd.org (Postfix) with ESMTP id CEC5914F3E for ; Fri, 9 Apr 1999 14:32:13 -0700 (PDT) (envelope-from nectar@nectar.com) Received: (from smap@localhost) by cerebus.nectar.com (8.9.1/8.9.1) id QAA20635; Fri, 9 Apr 1999 16:25:28 -0500 (CDT) (envelope-from nectar@nectar.com) Received: from spawn.nectar.com(10.0.0.101) by cerebus.nectar.com via smap (V2.1) id xma020633; Fri, 9 Apr 99 16:25:15 -0500 Received: from spawn.nectar.com (localhost [127.0.0.1]) by spawn.nectar.com (8.9.2/8.9.1) with ESMTP id QAA91710; Fri, 9 Apr 1999 16:24:02 -0500 (CDT) (envelope-from nectar@spawn.nectar.com) Message-Id: <199904092124.QAA91710@spawn.nectar.com> X-Mailer: exmh version 2.0.2 2/24/98 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: lists/freebsd X-PGP-RSAfprint: 00 F9 E6 A2 C5 4D 0A 76 26 8B 8B 57 73 D0 DE EE X-PGP-RSAkey: http://www.nectar.com/nectar-rsa.txt X-PGP-DSSfprint: AB2F 8D71 A4F4 467D 352E 8A41 5D79 22E4 71A2 8C73 X-PGP-DHfprint: 2D50 12E5 AB38 60BA AF4B 0778 7242 4460 1C32 F6B1 X-PGP-DH-DSSkey: http://www.nectar.com/nectar-dh-dss.txt From: Jacques Vidrine In-reply-to: <19990409165121.A6250@shale.csir.co.za> References: <19990409165121.A6250@shale.csir.co.za> Subject: Re: /sys/boot, egcs vs. gcc, -Os Mime-Version: 1.0 Content-Type: text/plain To: Jeremy Lea Cc: ports@FreeBSD.ORG Date: Fri, 09 Apr 1999 16:24:02 -0500 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [moving to ports@FreeBSD.ORG in the hopes that it sticks] On 9 April 1999 at 16:51, Jeremy Lea wrote: [snip] > 1. Use -soname for binaries. Add this to $LDFLAGS or something, to get > a version number installed into a binary then create extra magic or > a script to test this in the DEPENDS. I don't know if this is > possible, but there must be some field available which can be got > with either file(1) or objdump(1). Same idea for scripts. This isn't general enough, in that we should be able to handle e.g. binaries in formats other than ELF, shell/perl/python/et. al. scripts, java class files. > 2. Add a version history in files. Each time a port is upgraded, add > the new PKGNAME to files/history. Recreate these from the CVS > history using a very clever script. Then use this to deinstall all > old versions, or for upgrading. Upgrading requires much more > dynamic PLISTs. Maybe a port should check for all files in PLIST > before installing and refuse to install unless they are cleaned out > first. Maybe the PLIST should consist of more than just the filename. We can generalize version numbers and use them for any type of file by including a version number in the PLIST. bin/myportapp version=2 lib/libmyport.so.1.2 version=3 It would be easy enough to create tools to help in generating PLISTs that are informative enough. At the minimum, this would force porters to think about version differences. Jacques Vidrine / n@nectar.com / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message