Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2001 18:38:44 +0200 (EET)
From:      Martti Kuparinen <martti.kuparinen@nomadiclab.com>
To:        Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Different output from pkg_version 
Message-ID:  <Pine.BSF.4.21.0103051831570.4265-100000@ws140.nomadiclab.com>
In-Reply-To: <200103051429.f25ETMZ09066@cwsys.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> > >                            ~~~~~~~~~~~~~~~~~~~~~~~~~
> > <snipagain>
> >  
> > > 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 <martti.kuparinen@nomadiclab.com>
http://www.iki.fi/~kuparine/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103051831570.4265-100000>