From owner-freebsd-stable Mon Mar 5 8:38:56 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ws130.nomadiclab.com (ws130.nomadiclab.com [195.165.196.130]) by hub.freebsd.org (Postfix) with ESMTP id 84DB237B718 for ; Mon, 5 Mar 2001 08:38:46 -0800 (PST) (envelope-from martti.kuparinen@nomadiclab.com) Received: from ws140.nomadiclab.com (ws140.nomadiclab.com [195.165.196.140]) by ws130.nomadiclab.com (Postfix) with ESMTP id D52E472501; Mon, 5 Mar 2001 18:38:44 +0200 (EET) Date: Mon, 5 Mar 2001 18:38:44 +0200 (EET) From: Martti Kuparinen To: Cy Schubert - ITSD Open Systems Group Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Different output from pkg_version In-Reply-To: <200103051429.f25ETMZ09066@cwsys.cwsent.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 5 Mar 2001, Cy Schubert - ITSD Open Systems Group wrote: > > > ROOT ws3:~> pkg_version -v | grep bash > > > bash-2.04 = up-to-date with port > > > ~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > > ROOT server:~> pkg_version -v | grep bash > > > bash-2.04 * multiple versions (index has 1.14.7,2.04) > > Not entirely true. pkg_version -vl"*" also tells you that because > there are multiple versions in the INDEX, it is confused, e.g. it > doesn't know which version of the port in the INDEX to compare the > installed version number with, and that you need to manually verify > that the listed ports are up to date. You need to have pkg_version > check for both "<" and "*". Here's the solution (I think): ws3:~> diff -u +CONTENTS /var/db/pkg/bash-2.04/ --- +CONTENTS Mon Mar 5 18:23:26 2001 +++ /var/db/pkg/bash-2.04/+CONTENTS Tue Feb 27 20:09:32 2001 @@ -1,15 +1,16 @@ @name bash-2.04 @cwd /usr/local +@comment ORIGIN:shells/bash2 <============================ NOTE THIS man/man1/bash.1.gz @comment MD5:ffa6685ff15b9d2b0106f125bb383563 man/man1/bashbug.1.gz @comment MD5:e82513094e573a535272f0b254fc24a7 bin/bash -@comment MD5:49478a325aa2063b5e2a90dede91edf5 +@comment MD5:6419fa21da78185a016e8142f67e1507 @exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells @unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells bin/bashbug -@comment MD5:82259e4767389818988af62cc98888e2 +@comment MD5:b69efe50e75ba9e822562ddb57f86bae @unexec install-info --delete %D/info/bash.info %D/info/dir info/bash.info @comment MD5:f995b31898736d7f9aff1efcf9bb3a46 As you can see, a newer version of the system adds "ORIGIN:shells/bash2" into the package datbase files and with it pkg_version can be determine correct source directory... The only solution for my problem might be to reinstall the port so that this ORIGIN-entry would be created. I haven't checked the source code so I'm not 100% sure but this seems right so far... Martti --- Martti Kuparinen http://www.iki.fi/~kuparine/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message