Date: Thu, 1 Feb 2001 18:23:37 +0100 From: Andrea Campi <andrea@webcom.it> To: ewdafa <ewdafa@ewdafa.b0rk.co.uk> Cc: ports@freebsd.org Subject: Re: @comment ORIGIN Message-ID: <20010201182336.A8965@webcom.it> In-Reply-To: <005201c08ba8$3ac799a0$0a00a8c0@reevolved.net>; from ewdafa@ewdafa.b0rk.co.uk on Wed, Jan 31, 2001 at 05:06:59PM -0000 References: <005201c08ba8$3ac799a0$0a00a8c0@reevolved.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <old version> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010201182336.A8965>