Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2014 09:18:36 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: How did the package become corrupt?
Message-ID:  <20140731021836.GB57449@admin.sibptus.tomsk.ru>
In-Reply-To: <20140730171416.GN37672@ivaldir.etoilebsd.net>
References:  <20140730170143.GA47405@admin.sibptus.tomsk.ru> <20140730171416.GN37672@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Baptiste Daroussin wrote:
> On Thu, Jul 31, 2014 at 12:01:43AM +0700, Victor Sudakov wrote:
> > Colleagues,
> > 
> > Could you please comment on this:
> > 
> > # pkg info -l tdb
> > tdb-1.2.13,1:
> >         /usr/local/bin/tdbbackup

[dd]

> > # ls /usr/local/bin/tdbdump
> > ls: /usr/local/bin/tdbdump: No such file or directory
> > # pkg check -s tdb
> > pkg: pkg_create_from_dir(lstat failed): No such file or directory
> > # 
> > 
> > You can find the package in my repos at http://svn.sibptus.ru/ to look
> > into it.  Below is also the poudriere build log.
> 
> I would say that the file has been removed after the installation of the
> package.

The problem arose after a "pkg2ng ; pkg upgrade -f" command which
upgraded samba34 to samba36 and a lot of other packages. There was
hardly any time for anyone to tamper with the file after "pkg upgrade -f".

It is quite by chance that I noticed the missing binaries at all (I
just wanted to look at Samba's tdb databases because Samba lost
its domain membership after the upgrade, but that's another issue).

> 
> Manually or by routines not controled by pkg, so all pkg can do is saying the
> file is not there.

Why was pkg's message so inarticulate? Why did it not say "file XXX is
missing" or something more meaningful?

> 
> I checked your package for tdb the binary /usr/local/bin/tdbdump is
> in there.

I know it's there. Moreover, "pkg install -f tdb" fixed the problem.
I can only suggest that something went wrong after the first 
"pkg upgrade -f".

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140731021836.GB57449>