How did the package become corrupt?

Baptiste Daroussin bapt at FreeBSD.org
Thu Jul 31 06:17:02 UTC 2014


On Thu, Jul 31, 2014 at 09:18:36AM +0700, Victor Sudakov wrote:
> 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?

Because since the early day we are asking for users how we can improve our error
messages :) this is one of the case were we obviously can :) will be fixed in
1.3.4
> 
> > 
> > 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".

That would surprise me strongly

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20140731/f603eaeb/attachment.sig>


More information about the freebsd-pkg mailing list