From nobody Mon Oct 07 19:07:24 2024 X-Original-To: freebsd-pkgbase@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XMpZ71HCKz5YKMy for ; Mon, 07 Oct 2024 19:07:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-54.consmr.mail.gq1.yahoo.com (sonic316-54.consmr.mail.gq1.yahoo.com [98.137.69.30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMpZ65vg0z4vNB for ; Mon, 7 Oct 2024 19:07:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728328060; bh=Ag37VbwiUsz5GiPws7fs6Rc489mYZvdGex5aiUPEjt0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ZcCOgYtGhg8oahpHsYP6bNXy4wqsynXKHUVlHApmCAY04JmSCe9MAr6IIvuDAiEDDe8uxnU9XCp48L/f2VrkPPb4brqj6aKIEICR3Ltkx7tAMOUnSpv068odabwGHFmQ7htl9VELBJay8tpLBliEZcvx6H3p4xoc2Afzmxj1AVfXvGH7B2rJYbNGaq753zxKXSfLYNTVHTCsPhfEKdlEPGkTP9orlGZFXdpDsBApswJ+M2YVK66lZzL95v0FYvRO2t9pxmDnL/kVTw6HdTWR+yAFHeDoU0Y5+T1/N0K3xFWr8Thuh9rKtD7FR9u17zhHhLQUAbSI+x8ADH/n1WWi2Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728328060; bh=zSUCDumuCMor0qjWu1nPfbEn259zM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 tKdl75TkDzAz_8OYif.w2kj4ZCkY6z3GTEKxnOenwJHSKnMynyicA4ryRcrCTJ6A8GOc331cJbS1 uB0OFbta34VEABDu9Ujswkh.HqezGRZGJSV2kTwIf_FuZnrpJ5c_SZjRLIUdtpzOH8gsW04mVZvc THFu6u.KiryVxokOmmz290e.j9VkFxV.RYjCNQAu4Wo4KNoSbeuFU76ddgD2PidEUBqIGMFMDK9K 8crrGMm6isAxCInhxy.s_DQUWwmwEvIWe_U5MCtHnhajKk0TLByeEWCAS6iW_KS7w7pql24Cd7uE nlvkTMrT7WDtvKnYUNoAUDQDyBO93ufmwgy_06Jh.mWn890l6dJ2pVQfgZiuRVY8OgTEzvesfLth 4DTQbwg4WCIVIP2kfulDN3nCi53B9I0b86nuB.ZZh3kVRWsUCAu9L8w6pHks7UYQIyeLMhoKga63 IakKcAm2KByACZC_iUExljcs1o6EVwl8uma..PJAxRKrb4rmRMw3RuIsTcMECqruIAYg9CCP9fe5 yIWVZ_zbr81xac8DhCdIv4OTuHxzoRaHPq_VRLATvK2.ld0oJC8YgiwYqIWRQPwhJ4BMNV0YZcq8 MFyUJ8BaooxngqbpDzZRl X-Sonic-MF: X-Sonic-ID: 86f4aaab-4550-43af-901d-51760d7f9e13 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Mon, 7 Oct 2024 19:07:40 +0000 Received: by hermes--production-gq1-5d95dc458-24x88 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0dae5017564f8c20ca23267c16ea99b0; Mon, 07 Oct 2024 19:07:36 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: libmd.so.6 and pkgbase From: Mark Millard In-Reply-To: Date: Mon, 7 Oct 2024 12:07:24 -0700 Cc: FreeBSD-pkgbase@freebsd.org, Baptiste Daroussin Content-Transfer-Encoding: quoted-printable Message-Id: <7924C7D3-AB69-4288-BF5A-D13008016076@yahoo.com> References: <4E0CA824-A901-4219-ACCA-48B351C98E2B.ref@yahoo.com> <4E0CA824-A901-4219-ACCA-48B351C98E2B@yahoo.com> To: Renato Botelho X-Mailer: Apple Mail (2.3776.700.51) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4XMpZ65vg0z4vNB X-Spamd-Bar: ---- On Oct 7, 2024, at 11:34, Renato Botelho wrote: > On 07/10/24 14:49, Mark Millard wrote: >> Renato Botelho wrote on >> Date: Mon, 07 Oct 2024 14:20:00 UTC : >>> On 07/10/24 03:53, Baptiste Daroussin wrote: >>>> Hello everyone, >>>>=20 >>>> Just a reminder when using pkgbase, make sure you do activate >>>> BACKUP_LIBRARIES=3Dtrue in pkg.conf >>>>=20 >>>> This way pkg will save a copy of libmd.so.6 during the upgrade in >>>> /usr/local/lib/pkg/libmd.so.6 (and create a package named = compat-libraries to >>>> track it). >>>>=20 >>>> This will prevent you from having a couple of days without a new = version of pkg >>>> built against libmd.so.7 available (or some of the packages which = also requires >>>> libmd.so.7. >>>=20 >>> I have BACKUP_LIBRARIES=3Dtrue on my pkg.conf and upgraded a system >>> running CURRENT this morning using pkgbase. After that I got pkg = linked >>> with both libmd.so.6 and libmd.so.7: >>>=20 >>> root@x230:~ # ldd /usr/local/sbin/pkg >>> /usr/local/sbin/pkg: >>> libelf.so.2 =3D> /lib/libelf.so.2 (0x28b8027a6000) >>> libjail.so.1 =3D> /lib/libjail.so.1 (0x28b80340b000) >>> libssl.so.30 =3D> /usr/lib/libssl.so.30 (0x28b80436a000) >>> libcrypto.so.30 =3D> /lib/libcrypto.so.30 (0x28b804e18000) >>> libarchive.so.7 =3D> /usr/lib/libarchive.so.7 (0x28b805e0a000) >>> libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0x28b80710e000) >>> libz.so.6 =3D> /lib/libz.so.6 (0x28b807ccc000) >>> liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0x28b808368000) >>> libprivatezstd.so.5 =3D> /usr/lib/libprivatezstd.so.5 >>> (0x28b806205000) >>> libm.so.5 =3D> /lib/libm.so.5 (0x28b808952000) >>> libutil.so.9 =3D> /lib/libutil.so.9 (0x28b808ad1000) >>> libmd.so.6 =3D> not found (0) >>> libthr.so.3 =3D> /lib/libthr.so.3 (0x28b809f4c000) >>> libc.so.7 =3D> /lib/libc.so.7 (0x28b80ae53000) >>> libbsdxml.so.4 =3D> /lib/libbsdxml.so.4 (0x28b80c034000) >>> libmd.so.7 =3D> /lib/libmd.so.7 (0x28b80cdf7000) >>> libsys.so.7 =3D> /lib/libsys.so.7 (0x28b80ddb1000) >>> [vdso] (0x28b801eee000) >> . . . >> It would help for tracking down were the dependencies are >> to use "ldd -a ". It shows what each involved *.so.* >> in turn references of itself. The example below is for >> a context that does not have the problem you report >> (not a pkgbase context) but it illustrates the type of >> extra information that is output: >> # ldd -a /usr/local/sbin/pkg >> /usr/local/sbin/pkg: >> libelf.so.2 =3D> /lib/libelf.so.2 (0xc4840f00000) >> libjail.so.1 =3D> /lib/libjail.so.1 (0xc48410d3000) >> libssl.so.30 =3D> /usr/lib/libssl.so.30 (0xc4841fae000) >> libcrypto.so.30 =3D> /lib/libcrypto.so.30 (0xc4842853000) >> libarchive.so.7 =3D> /usr/lib/libarchive.so.7 (0xc4843af6000) >> libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0xc48403f6000) >> libz.so.6 =3D> /lib/libz.so.6 (0xc4845351000) >> liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0xc48455b0000) >> libprivatezstd.so.5 =3D> /usr/lib/libprivatezstd.so.5 (0xc484480f000) >> libm.so.5 =3D> /lib/libm.so.5 (0xc48463e4000) >> libutil.so.9 =3D> /lib/libutil.so.9 (0xc4846b3d000) >> libmd.so.7 =3D> /lib/libmd.so.7 (0xc48477f3000) >> libthr.so.3 =3D> /lib/libthr.so.3 (0xc4848518000) >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libelf.so.2: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libjail.so.1: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /usr/lib/libssl.so.30: >> libcrypto.so.30 =3D> /lib/libcrypto.so.30 (0xc4842853000) >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libcrypto.so.30: >> libthr.so.3 =3D> /lib/libthr.so.3 (0xc4848518000) >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /usr/lib/libarchive.so.7: >> libz.so.6 =3D> /lib/libz.so.6 (0xc4845351000) >> libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0xc48403f6000) >> liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0xc48455b0000) >> libbsdxml.so.4 =3D> /lib/libbsdxml.so.4 (0xc4849553000) >> libprivatezstd.so.5 =3D> /usr/lib/libprivatezstd.so.5 (0xc484480f000) >> libcrypto.so.30 =3D> /lib/libcrypto.so.30 (0xc4842853000) >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /usr/lib/libbz2.so.4: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libz.so.6: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /usr/lib/liblzma.so.5: >> libmd.so.7 =3D> /lib/libmd.so.7 (0xc48477f3000) >> libthr.so.3 =3D> /lib/libthr.so.3 (0xc4848518000) >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /usr/lib/libprivatezstd.so.5: >> libthr.so.3 =3D> /lib/libthr.so.3 (0xc4848518000) >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libm.so.5: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libutil.so.9: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libmd.so.7: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> /lib/libthr.so.3: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> libsys.so.7 =3D> /lib/libsys.so.7 (0xc484af47000) >> /lib/libc.so.7: >> libsys.so.7 =3D> /lib/libsys.so.7 (0xc484af47000) >> /lib/libbsdxml.so.4: >> libc.so.7 =3D> /lib/libc.so.7 (0xc484889d000) >> [preloaded] >> [vdso] (0xc483f927000) >> I expect that /usr/local/sbin/pkg has the only reference >> to libmd.so.6 in your context and that /usr/lib/liblzma.so.5 >> is what is referencing libmd.so.7 . >> If so, I'll note that you can avoid the problem by using >> pkg-static instead of pkg as your command: >> # ldd -a /usr/local/sbin/pkg-static >> ldd: /usr/local/sbin/pkg-static: not a dynamic ELF executable >> So there is no use of *.so.* files for pkg-static . >> (I make no claims about other programs that might be involved >> overall.) >=20 > I've fixed it by building pkg on local ports tree. But anyway I've = forced a bootstrap to have the one provided by official repository = installed again and ran ldd -a to collect data >=20 > root@x230:~ # ldd -a /usr/local/sbin/pkg > /usr/local/sbin/pkg: > libelf.so.2 =3D> /lib/libelf.so.2 (0x1a55a0de2000) > libjail.so.1 =3D> /lib/libjail.so.1 (0x1a55a1fae000) > libssl.so.30 =3D> /usr/lib/libssl.so.30 (0x1a55a1fc2000) > libcrypto.so.30 =3D> /lib/libcrypto.so.30 (0x1a55a2e3a000) > libarchive.so.7 =3D> /usr/lib/libarchive.so.7 (0x1a55a3e98000) > libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0x1a55a4a17000) > libz.so.6 =3D> /lib/libz.so.6 (0x1a55a4d85000) > liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0x1a55a57ed000) > libprivatezstd.so.5 =3D> /usr/lib/libprivatezstd.so.5 = (0x1a55a640f000) > libm.so.5 =3D> /lib/libm.so.5 (0x1a55a696c000) > libutil.so.9 =3D> /lib/libutil.so.9 (0x1a55a6e12000) > libmd.so.6 =3D> not found (0) > libthr.so.3 =3D> /lib/libthr.so.3 (0x1a55a7a49000) > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libelf.so.2: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libjail.so.1: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /usr/lib/libssl.so.30: > libcrypto.so.30 =3D> /lib/libcrypto.so.30 (0x1a55a2e3a000) > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libcrypto.so.30: > libthr.so.3 =3D> /lib/libthr.so.3 (0x1a55a7a49000) > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /usr/lib/libarchive.so.7: > libz.so.6 =3D> /lib/libz.so.6 (0x1a55a4d85000) > libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0x1a55a4a17000) > liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0x1a55a57ed000) > libbsdxml.so.4 =3D> /lib/libbsdxml.so.4 (0x1a55a834a000) > libprivatezstd.so.5 =3D> /usr/lib/libprivatezstd.so.5 = (0x1a55a640f000) > libcrypto.so.30 =3D> /lib/libcrypto.so.30 (0x1a55a2e3a000) > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /usr/lib/libbz2.so.4: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libz.so.6: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /usr/lib/liblzma.so.5: > libmd.so.7 =3D> /lib/libmd.so.7 (0x1a55a853a000) > libthr.so.3 =3D> /lib/libthr.so.3 (0x1a55a7a49000) > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /usr/lib/libprivatezstd.so.5: > libthr.so.3 =3D> /lib/libthr.so.3 (0x1a55a7a49000) > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libm.so.5: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libutil.so.9: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libthr.so.3: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > libsys.so.7 =3D> /lib/libsys.so.7 (0x1a55a8908000) > /lib/libc.so.7: > libsys.so.7 =3D> /lib/libsys.so.7 (0x1a55a8908000) > /lib/libbsdxml.so.4: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > /lib/libmd.so.7: > libc.so.7 =3D> /lib/libc.so.7 (0x1a55a7aa9000) > [preloaded] > [vdso] (0x1a559fe96000) >=20 > It seems pkg is still linked with libmd.so.6 and lzma is linked with = libmd.so.7. So, as I expected. Good to know. > Anyway we have a problem, keeping libmd.so.6 seems not to be enough to = have pkg working Typing/using pkg-static instead of pkg should not fail for libmd.so.6 or libmd.so.7 reasons for its down execution, even when using just pkg would fail for such. An example usage is: # pkg-static info -l pkg | grep /sbin/ /usr/local/sbin/pkg /usr/local/sbin/pkg-static The above should work even in a context with the libmd.so.6 problem for using just pkg . (The /usr/bin/grep part should work too.) For reference (the context does not have the libmd.so.6 problem): # pkg info -l pkg | grep /sbin/ /usr/local/sbin/pkg /usr/local/sbin/pkg-static Personally, my scripts that use pkg actually run pkg-static so that the script is less dependent on the environment for reasonable operation. =3D=3D=3D Mark Millard marklmi at yahoo.com