From owner-freebsd-pkgbase@freebsd.org Tue Jun 21 21:31:14 2016 Return-Path: Delivered-To: freebsd-pkgbase@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 6E6C3AC5F4F for ; Tue, 21 Jun 2016 21:31:14 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) 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 56363181C for ; Tue, 21 Jun 2016 21:31:14 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 55938AC5F4C; Tue, 21 Jun 2016 21:31:14 +0000 (UTC) Delivered-To: pkgbase@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 528C1AC5F4B; Tue, 21 Jun 2016 21:31:14 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF6A181B; Tue, 21 Jun 2016 21:31:14 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 345BD1CE4; Tue, 21 Jun 2016 21:31:14 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id CCD501DD14; Tue, 21 Jun 2016 21:31:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 2qG2MMa5fIap; Tue, 21 Jun 2016 21:31:09 +0000 (UTC) Subject: Re: libpam.so lost in update to 11.0-ALPHA3 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 1EF7F1DD0E To: FreeBSD Current References: <7D63E77B-0D82-44D3-9A1C-233ACA8C62D0@alumni.tu-berlin.de> <2716b37a-0ccb-e5b4-bc6b-9751fb6e1174@FreeBSD.org> Cc: "pkgbase@freebsd.org" From: Bryan Drewery Organization: FreeBSD Message-ID: <338f3146-b0bf-fd7e-accb-b268a3b32af9@FreeBSD.org> Date: Tue, 21 Jun 2016 14:31:06 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <2716b37a-0ccb-e5b4-bc6b-9751fb6e1174@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2016 21:31:14 -0000 On 6/16/16 3:35 PM, Bryan Drewery wrote: > On 6/16/16 11:39 AM, Florian Ermisch wrote: >> >> >> Am 14. Juni 2016 13:36:32 MESZ, schrieb Ben Woods = : >>> On Tuesday, 14 June 2016, Pavel Timofeev wrote: >>> >>>> >>>> 14 =D0=B8=D1=8E=D0=BD=D1=8F 2016 =D0=B3. 10:37 =D0=BF=D0=BE=D0=BB=D1= =8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Ben Woods" >>> > =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BB: >>>>> >>>>> On 14 June 2016 at 09:11, Ren=C3=A9 Ladan >>> > wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I updated my pkgbase installation (11.0-amd64 from a few weeks >>> ago) to >>>>>> 11.0-ALPHA3. Building and installing went fine but it turns out >>> that >>>>>> libpam.so* is lost in the update (both the symlink and the >>> actual so, >>>>>> currently so.6) : >>>>>> >>>>>> # pkg upgrade >>>>>> # pkg autoremove >>>>>> <>> one >>>>>> version lower) >>>>>> << yes, I forgot to run mergemaster>> >>>>>> # reboot >>>>>> <>> still fine) >>>>>> >>>>>> Is this a known bug? >>>>>> >>>>>> Regards, >>>>>> Ren=C3=A9 >>>>>> >>>>> >>>>> Michael Lucas mentioned on twitter a few days ago that pam was >>> broken >>>>> recently in FreeBSD current. >>>>> >>>>> Michael: was this a problem with libpam.so going missing? Were you >>> using >>>>> pkgbase, or is this an issue with the normal build/install system >>> also? >>>>> >>>>> Regards, >>>>> Ben >>>>> >>>>> -- >>>> >>>> Hi! >>>> I have the same problem with normal build/install system. >>>> >>> >>> Ok, thanks for the feedback. >>> >>> Bringing in the FreeBSD-current@ mailing list as it is not a problem >>> with >>> PkgBase, but with 11-current. >>> >>> Regards, >>> Ben >>> >> On my laptop running a few weeks old CURRENT sudo >> just broke after a `pkg upgrade`. The missing lib it's=20 >> complaining about is libpam.so.6 but when built from >> ports it's linked against libpam.so.5. >> >=20 >=20 > Packages built after base r301892 will be fixed. >=20 >=20 Actually the case of libpam.so.6 needed by sudo and your system has libpam.so.5 is just part of running head and using head packages. The head packages are built every 2 days from the latest head at that time. So packages were built using the bumped libpam.so.6 but your system didn't yet have that so sudo failed to work. The only good way to fix this is to not be splitting our dependencies up so that some are not in the package set. Meaning, not having base libraries and moving everything into the same ports/pkg system. Which by the way is *not* what pkgbase does in its current form since we're using 2 repositories that have different dependencies between them. We would need a single repository, or not be removing old versions from both and pkg supporting multiple versions from remotes. I don't see the first happening due to secteam/re needs of controlling the base system builds, and I don't see the latter happening soon. The __FreeBSD_version bump in r301892 only fixed the sudo package still wanting libpam.so.5 rather than the bumped libpam.so.6. Packages on head have several issues. Technically after upgrading your world/kernel the only safe thing to do with packages is to reinstall all of them to ensure they are all ABI-compatible with pkg upgrade -f. Even then because of the 2 day delay there is risk of not having it all be compatible. Pkg could use more logic to handle all of this better, perhaps by comparing __FreeBSD_version numbers of local and remote and not upgrading past it. I don't know. --=20 Regards, Bryan Drewery