From owner-freebsd-ports Thu Feb 1 9:30:13 2001 Delivered-To: freebsd-ports@freebsd.org Received: from webcom.it (brian.inet.it [213.92.4.195]) by hub.freebsd.org (Postfix) with SMTP id CD4ED37B491 for ; Thu, 1 Feb 2001 09:29:54 -0800 (PST) Received: (qmail 73179 invoked by uid 1000); 1 Feb 2001 17:23:37 -0000 Date: Thu, 1 Feb 2001 18:23:37 +0100 From: Andrea Campi To: ewdafa Cc: ports@freebsd.org Subject: Re: @comment ORIGIN Message-ID: <20010201182336.A8965@webcom.it> References: <005201c08ba8$3ac799a0$0a00a8c0@reevolved.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <005201c08ba8$3ac799a0$0a00a8c0@reevolved.net>; from ewdafa@ewdafa.b0rk.co.uk on Wed, Jan 31, 2001 at 05:06:59PM -0000 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jan 31, 2001 at 05:06:59PM -0000, ewdafa wrote: > Ello, > The recent addition of the ORIGIN comment is great. It's allowed me to whip > up a ports checking tool that checks out /var/db/pkg/ for installed packages > and then looks under /usr/ports for updated versions of the packages. BUT, > there are some inconsistencies.. these are probably down to the package > maintainers themselves. What does your app do in addition to what pkg_version or pkg_version -c does? > I found that mysql323-client and mysql323-server both have a strange > Makefile scheme thats different to other ports e.g. > mysql323-client: > PORTNAME= ${MASTERPORTNAME:S/-server/-client/g} > mysql323-server: > PORTNAME?= ${MASTERPORTNAME} So what? andrea@brian:~/Tivoli$ grep ORIGIN /var/db/pkg/mysql-*/+CONTENTS /var/db/pkg/mysql-client-3.23.32/+CONTENTS:@comment ORIGIN:databases/mysql323-client /var/db/pkg/mysql-server-3.23.32_1/+CONTENTS:@comment ORIGIN:databases/mysql323-server > I was thinking, is there a way to easily update packages? > At the moment i 'make deinstall' and then 'make clean; make install', as im > not so keen on what 'make reinstall' is actually doing. > How do you guys do it? I do it the way pkg_version -c suggests, that is make && pkg_delete -f make install But you must be careful if you have to upgrade multiple dependent files. Also, doing this means any dependent ports will silently start using the new port, which for shared libraries for instance means you'd better be sure you have binary compatibility etc... But I'm afraid there's nothing simple that can be done about this. Also, you loose all informations about dependency in the process. This shouldn't be too difficult to handle... Bye, Andrea -- To boldly go where I surely don't belong. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message