Date: Fri, 13 Oct 2000 23:48:25 GMT From: Salvo Bartolotta <bartequi@inwind.it> To: Caleb Land <bokonon@rochester.rr.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Concerning pkg_version -c and multiple package versions Message-ID: <20001013.23482500@bartequi.ottodomain.org> References: <20001013205817.A10390@deepthought.granfalloon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 10/14/00, 1:58:17 AM, Caleb Land <bokonon@rochester.rr.com> wrote regarding Concerning pkg_version -c and multiple package versions: > Hello, > Recently I decided to clean up the software installed on my > FreeBSD machine (4.1). I updated my ports through cvs, and ran > "pkg_version -c > update.sh" > I noticed that I had a bunch of ports that had multiple > installed versions (QT, vim, TK, etc.). After looking at the script I= > ran it. When it completed, I still had multiple versions of the > software installed that I thought the script was supposed to delete. > I think I found the problem: > # > # qt > # multiple versions (index has 1.45,2.2.0_1) > # > cd /usr/ports/x11-toolkits/qt22 > make && pkg_delete -f qt-1.45,2.2.0_1 > make install > Shouldn't "pkg_delete -f qt-1.45,2.2.0_1" be "pkg_delete -f > qt-{1.45,2.2.0_1}"? > I don't know if this is a bug or how the script is supposed to be. > It's not too big of a deal, but if it supposed to delete multiple > versions with the script unedited, then I could make a simple patch > and submit it Dear Caleb Land, pkg_version(1) states: <blockquote> BUGS There should be a better way of dealing with packages that can have more than one installed version. Patch levels aren't handled very well (i.e. version numbers of the form 1.2p3 or 1.2pl3). Updates to packages that don't change the version number (e.g. small delta bugfixes in the package/port itself) aren't detected. Commands output doesn't know about dependencies between packages. For example, you might have two versions of Tcl installed because two other packages require the different versions. pkg_version will suggest removing the out-of-date version. Commands output assumes you install new software using the ports system, rather than using pkg_add(1). </blockquote> Some pieces of software **must** be able to coexist in multiple versions; others must NOT. That's why you have to manually edit its output. If you wish to make pkg_version so smart as to handle the most general case... :-) Best regards, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001013.23482500>