From owner-freebsd-pkg@freebsd.org Wed Mar 16 10:51:26 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAF73AD3CC0 for ; Wed, 16 Mar 2016 10:51:26 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B09C2C70 for ; Wed, 16 Mar 2016 10:51:26 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id B0042AD3CBF; Wed, 16 Mar 2016 10:51:26 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFB32AD3CBE for ; Wed, 16 Mar 2016 10:51:26 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 459DEC6C for ; Wed, 16 Mar 2016 10:51:25 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f42.google.com with SMTP id e138so15446503lfe.1 for ; Wed, 16 Mar 2016 03:51:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=0ifpMjXjhjdanWRHtE0JOo6jWxfuL+RvHHy6UXb8GqU=; b=LrrOAnCcW35Sdinu7V11duhrnnJZZDBqv0EeatE8nM8nCHtddp4vFIESAWmRRN13t/ UAM7HM6DiXcRTxhBTwU8TyrE/qAx4am1rd4gPgH9ajAlICA9TJQU+WJdoOg4NkNuaRct sgQjhDdJKvSCDBPClN8DVomP063IdHleARjc78Du5uUgVWPRkCeKPkjyVPbeWDnNVmTl Iumwj5AKomPQ2Vkx1DZuEb2gqSdyiGK45VFUZonHAcyHteAXrVYirb/QaquaTY+us6c1 4mYet8ZZeaA3mOhmKftr6MPfv2xBpA8ec6WD8mcoN4H/51Uug++YbY04EuVvFCIH3136 nT5Q== X-Gm-Message-State: AD7BkJIx7j4dUEKLI0ROZvSa2Nm0UHIA7SGNk65aEllNiZ/SnJ7CtjJ94/osc0CUPs2n8g== X-Received: by 10.25.137.215 with SMTP id l206mr890701lfd.140.1458125046722; Wed, 16 Mar 2016 03:44:06 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id u10sm406411lby.33.2016.03.16.03.44.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2016 03:44:06 -0700 (PDT) Subject: Re: "pkg check -B" drop shlibs from local.sqlite on -stable To: Miroslav Lachman <000.fbsd@quip.cz>, pkg@FreeBSD.org References: <56E8F424.8070304@freebsd.org> <56E92BBF.1000905@quip.cz> Cc: ports@FreeBSD.org From: Andrey Chernov Message-ID: <56E938F5.1040802@freebsd.org> Date: Wed, 16 Mar 2016 13:44:05 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56E92BBF.1000905@quip.cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.21 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: Wed, 16 Mar 2016 10:51:26 -0000 On 16.03.2016 12:47, Miroslav Lachman wrote: > Andrey Chernov wrote on 03/16/2016 06:50: >> On recent -stable and pkg 1.6.4: >> >> 1# pkg check -d >> Checking all packages: 100% >> 2# pkg check -B >> Checking all packages: 100% >> 3# pkg check -d >> Checking all packages: 100% >> firefox has require a missing libraries: libgdk_pixbuf-2.0.so.0 >> gtk-update-icon-cache has require a missing libraries: >> libgdk_pixbuf-2.0.so.0 >> gtk2 has require a missing libraries: libgdk_pixbuf-2.0.so.0 >> gtk3 has require a missing libraries: libgdk_pixbuf-2.0.so.0 >> libnotify has require a missing libraries: libgdk_pixbuf-2.0.so.0 >> nspluginwrapper has require a missing libraries: libgdk_pixbuf-2.0.so.0 >> >> Well, I can repair it using: >> >> 1# sqlite3 /var/db/pkg/local.sqlite "select * from shlibs where >> name='libgdk_pixbuf-2.0.so.0';" >> 81|libgdk_pixbuf-2.0.so.0 >> 2# sqlite3 /var/db/pkg/local.sqlite "select * from packages where >> name='gdk-pixbuf2';" >> 4207|graphics/gdk-pixbuf2|gdk-pixbuf2|2.32.3|... >> ... >> 3# sqlite3 /var/db/pkg/local.sqlite "insert into pkg_shlibs_provided >> values(4207,81);" >> 4# pkg check -d >> Checking all packages: 100% >> >> but it repeats again after the next "pkg check -B". >> Please fix. > > I cannot reproduce it on 10.2. But I have a question - is there some > change in functionality of -B? Because I noticed changes in manpage > description. > It was "reanalyse shared libraries of installed packages" and now > it is "regenerates the library dependency metadata for a package > by extracting library requirement information from the binary ELF files > in the package" > Different words for the same thing or was it changed? I must add that all above mentioned programs are working and the library is in place. Reinstalling programs and lib does not help against "pkg check -B" damage. ELF files are nice too, example: /usr/local/bin/gtk-update-icon-cache: libgdk_pixbuf-2.0.so.0 => /usr/local/lib/libgdk_pixbuf-2.0.so.0 (0x2807c000) libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x2809a000) libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x280d9000) libintl.so.8 => /usr/local/lib/libintl.so.8 (0x281cd000) libc.so.7 => /lib/libc.so.7 (0x281d6000) libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x28349000) libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x2834c000) libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0x2848f000) libm.so.5 => /lib/libm.so.5 (0x284c2000) libthr.so.3 => /lib/libthr.so.3 (0x284ec000) libffi.so.6 => /usr/local/lib/libffi.so.6 (0x2850d000) libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x28514000) libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x28608000) libz.so.6 => /lib/libz.so.6 (0x28680000) lrwxr-xr-x 1 root wheel 29 Mar 15 19:00 /usr/local/lib/libgdk_pixbuf-2.0.so.0 -> libgdk_pixbuf-2.0.so.0.3200.3 -rwxr-xr-x 1 root wheel 122044 Mar 15 19:00 /usr/local/lib/libgdk_pixbuf-2.0.so.0.3200.3 -- http://ache.vniz.net/