Date: Thu, 31 Jul 2014 08:16:56 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: freebsd-pkg@freebsd.org Subject: Re: How did the package become corrupt? Message-ID: <20140731061656.GQ37672@ivaldir.etoilebsd.net> In-Reply-To: <20140731021836.GB57449@admin.sibptus.tomsk.ru> References: <20140730170143.GA47405@admin.sibptus.tomsk.ru> <20140730171416.GN37672@ivaldir.etoilebsd.net> <20140731021836.GB57449@admin.sibptus.tomsk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--GJ7e10BhKqIkML+d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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, > > >=20 > > > Could you please comment on this: > > >=20 > > > # pkg info -l tdb > > > tdb-1.2.13,1: > > > /usr/local/bin/tdbbackup >=20 > [dd] >=20 > > > # 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 > > > #=20 > > >=20 > > > You can find the package in my repos at http://svn.sibptus.ru/ to look > > > into it. Below is also the poudriere build log. > >=20 > > I would say that the file has been removed after the installation of the > > package. >=20 > 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". >=20 > 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). >=20 > >=20 > > Manually or by routines not controled by pkg, so all pkg can do is sayi= ng the > > file is not there. >=20 > 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 >=20 > >=20 > > I checked your package for tdb the binary /usr/local/bin/tdbdump is > > in there. >=20 > I know it's there. Moreover, "pkg install -f tdb" fixed the problem. > I can only suggest that something went wrong after the first=20 > "pkg upgrade -f". That would surprise me strongly Bapt --GJ7e10BhKqIkML+d Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPZ31gACgkQ8kTtMUmk6Ey+hQCfd7uK5JdUkFdoKPC27//VtUUG kx4AoLxur7s9arP6fbWP8VXPHuRkZXnu =OfPb -----END PGP SIGNATURE----- --GJ7e10BhKqIkML+d--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140731061656.GQ37672>