How did the package become corrupt?

Victor Sudakov vas at mpeks.tomsk.su
Thu Jul 31 02:18:40 UTC 2014


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 at sibptus.tomsk.ru


More information about the freebsd-pkg mailing list