From owner-freebsd-pkg@FreeBSD.ORG Thu Jul 31 02:18:40 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 925DC26B; Thu, 31 Jul 2014 02:18:40 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id E202A24DA; Thu, 31 Jul 2014 02:18:38 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 36174219; Thu, 31 Jul 2014 09:18:36 +0700 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.7/8.14.7) with ESMTP id s6V2IaxA058436; Thu, 31 Jul 2014 09:18:36 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.7/8.14.7/Submit) id s6V2IapI058435; Thu, 31 Jul 2014 09:18:36 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Thu, 31 Jul 2014 09:18:36 +0700 From: Victor Sudakov To: Baptiste Daroussin Subject: Re: How did the package become corrupt? Message-ID: <20140731021836.GB57449@admin.sibptus.tomsk.ru> References: <20140730170143.GA47405@admin.sibptus.tomsk.ru> <20140730171416.GN37672@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140730171416.GN37672@ivaldir.etoilebsd.net> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 02:18:40 -0000 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