From nobody Mon Oct 07 18:34:08 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 4XMnqS1g6Vz5YXZX for ; Mon, 07 Oct 2024 18:34:12 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMnqS19s2z4qSS; Mon, 7 Oct 2024 18:34:12 +0000 (UTC) (envelope-from garga@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728326052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=DsNkL2T3z27iEZMTNUCikY0svNSk7ApFowIUGD4l060=; b=HxasItf5z6r/Fg8sPxY8WpFEzsUUaLRZe5WHN3uJ17lerZuaBDiPem5UJhYm+/gtCBkTvl yjnfjJ4yM4Zo8mfyaVLFAIDPoQDyv6Vud9smeWtiX0+Zs0Lni2CLk0vdJgJiZu7a9VNtDX XxWF1ta64+GdackXWvEoX1auuFlGize3IiIgnM0weEvsqKBpNV4p+SgNPWfoK6Nq0hIWrJ 5ncxaH4BMBxLOfewS3mfeIftqZKCLlW6o/edIvbcXj2MT/b2P/oKorQniz6KZeEXFF4vda 9Vl0mIRjV5nll/4ERPiYhYv2Vb3YcVKXU5gf+I8xxvQWhM4VBNWOCSxlNkxzrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728326052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=DsNkL2T3z27iEZMTNUCikY0svNSk7ApFowIUGD4l060=; b=aBTeYTbzcavH0f2npP8wX1d+ZUMdnwuqRd32Lr4hq12aOSHZ2cEktRSsenSGifPJAkEax7 syZvR3hnsCNvsHJwE1Uo0g4DXujWeUgvbgpVD67UY2YIpRZkCoxbs5mmrA1Rlr23AW6uRI NCbbMdOT4aKuh3LPwwmIctO8HuszfjiHd03gq7isCMlq8mMz/ZN0kOUJ76lJs9xAvIdMZN XnFBboUgLKf+WVz4nbgWv6TXdMYuK7/uhqi3pqJG5kVsrls4tQ7ev2vKeWNGDLI5XY44VY 3oQx7L+TblW8psUCyeXGY3Yc3PSaW+IqRVaMeJqptZQlUxjpxqwWPUTdb38gEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728326052; a=rsa-sha256; cv=none; b=fCNLXrVpKdUaA7LV3q5o5dqb2T5vISysK91srSInCBsdVCkynzqWlwvG5+hLbsKVPw70dn ph6sBWZNlxpsUqU5wEvGKGKlv+D0PTLsVjNHGx3+pJIYRg8q0uuyslaW8oypEB5hPZhppF ckCJuek1+yS+YhtPW20zGj8mIrLHYo1GD2X1c+TpWUBPR/m2uB5qQQi/KGDmFYJc5R+5R5 5yVkjdumZ2Oh1AxJ3/aKMEmfORheMB2icuRuKYIXiET+N01w9I+UEfkjNm6HEJMTqLXf/K qmCk7SGh/zsegwirwsgfb8oLPsFcm9qwGxwNpIWk6Kij+tC/btmRJQMoE1mjOA== Received: from [IPV6:2804:f1c:879:7700:e8c0:afc9:ab0c:5910] (unknown [IPv6:2804:f1c:879:7700:e8c0:afc9:ab0c:5910]) (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) (Authenticated sender: garga) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XMnqR2bRgz1Dsx; Mon, 7 Oct 2024 18:34:11 +0000 (UTC) (envelope-from garga@FreeBSD.org) Message-ID: Date: Mon, 7 Oct 2024 15:34:08 -0300 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 User-Agent: Mozilla Thunderbird Beta Subject: Re: libmd.so.6 and pkgbase To: Mark Millard , FreeBSD-pkgbase@freebsd.org Cc: Baptiste Daroussin References: <4E0CA824-A901-4219-ACCA-48B351C98E2B.ref@yahoo.com> <4E0CA824-A901-4219-ACCA-48B351C98E2B@yahoo.com> Content-Language: en-US From: Renato Botelho Autocrypt: addr=garga@FreeBSD.org; keydata= xsBNBGStavwBCACjNlp/9+Y+VFe9ieR2h/WWbdvjz4Mb2z/f22bGoaskzCfvVNbo/v3i34I9 H6OdgZkGqheQEAD2jNfRbmPr4z40xDMUpYGLds+1Mvg7G3Hms3j5Ef8KaLSWUNWIfwKdfSVR Qs35ccSJxAdRW5YdI6J3xZgika+3Bc4eJ05YE/nWW+PNTYevt5rqD50N3zybVYIcLoqVPpBi AZE/sf5SLiLACIJb1t/s4x+pi8vgWevxVVT9u8V1f8zYErmHSLSqjxii0B3eRZphX9NCJOv9 +tfFZhnENInhn9gT7H4e2YumUltEy3jacONHJF3CC1pvvWEa6lEyypclMOkHQwNON7DLABEB AAHNLFJlbmF0byBCb3RlbGhvIChGcmVlQlNEKSA8Z2FyZ2FARnJlZUJTRC5vcmc+wsCXBBMB CgBBAhsDBQkFo5qABQsJCAcDBRUKCQgLBRYDAgEAAh4FAheAFiEERL7Dxegbnh7xTiQ5Ob6P xxJcZXoFAmS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XgXiedhPXpr8+Y64jP+pHVwpVmh1zYWL6+q3kqFOUVP6c5iiMeoEXZvgJz7x/AC ek3X5gvu8Hpcv+MZIg== In-Reply-To: <4E0CA824-A901-4219-ACCA-48B351C98E2B@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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, >>> >>> Just a reminder when using pkgbase, make sure you do activate >>> BACKUP_LIBRARIES=true in pkg.conf >>> >>> 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). >>> >>> 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. >> >> I have BACKUP_LIBRARIES=true 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: >> >> root@x230:~ # ldd /usr/local/sbin/pkg >> /usr/local/sbin/pkg: >> libelf.so.2 => /lib/libelf.so.2 (0x28b8027a6000) >> libjail.so.1 => /lib/libjail.so.1 (0x28b80340b000) >> libssl.so.30 => /usr/lib/libssl.so.30 (0x28b80436a000) >> libcrypto.so.30 => /lib/libcrypto.so.30 (0x28b804e18000) >> libarchive.so.7 => /usr/lib/libarchive.so.7 (0x28b805e0a000) >> libbz2.so.4 => /usr/lib/libbz2.so.4 (0x28b80710e000) >> libz.so.6 => /lib/libz.so.6 (0x28b807ccc000) >> liblzma.so.5 => /usr/lib/liblzma.so.5 (0x28b808368000) >> libprivatezstd.so.5 => /usr/lib/libprivatezstd.so.5 >> (0x28b806205000) >> libm.so.5 => /lib/libm.so.5 (0x28b808952000) >> libutil.so.9 => /lib/libutil.so.9 (0x28b808ad1000) >> libmd.so.6 => not found (0) >> libthr.so.3 => /lib/libthr.so.3 (0x28b809f4c000) >> libc.so.7 => /lib/libc.so.7 (0x28b80ae53000) >> libbsdxml.so.4 => /lib/libbsdxml.so.4 (0x28b80c034000) >> libmd.so.7 => /lib/libmd.so.7 (0x28b80cdf7000) >> libsys.so.7 => /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 => /lib/libelf.so.2 (0xc4840f00000) > libjail.so.1 => /lib/libjail.so.1 (0xc48410d3000) > libssl.so.30 => /usr/lib/libssl.so.30 (0xc4841fae000) > libcrypto.so.30 => /lib/libcrypto.so.30 (0xc4842853000) > libarchive.so.7 => /usr/lib/libarchive.so.7 (0xc4843af6000) > libbz2.so.4 => /usr/lib/libbz2.so.4 (0xc48403f6000) > libz.so.6 => /lib/libz.so.6 (0xc4845351000) > liblzma.so.5 => /usr/lib/liblzma.so.5 (0xc48455b0000) > libprivatezstd.so.5 => /usr/lib/libprivatezstd.so.5 (0xc484480f000) > libm.so.5 => /lib/libm.so.5 (0xc48463e4000) > libutil.so.9 => /lib/libutil.so.9 (0xc4846b3d000) > libmd.so.7 => /lib/libmd.so.7 (0xc48477f3000) > libthr.so.3 => /lib/libthr.so.3 (0xc4848518000) > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libelf.so.2: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libjail.so.1: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /usr/lib/libssl.so.30: > libcrypto.so.30 => /lib/libcrypto.so.30 (0xc4842853000) > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libcrypto.so.30: > libthr.so.3 => /lib/libthr.so.3 (0xc4848518000) > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /usr/lib/libarchive.so.7: > libz.so.6 => /lib/libz.so.6 (0xc4845351000) > libbz2.so.4 => /usr/lib/libbz2.so.4 (0xc48403f6000) > liblzma.so.5 => /usr/lib/liblzma.so.5 (0xc48455b0000) > libbsdxml.so.4 => /lib/libbsdxml.so.4 (0xc4849553000) > libprivatezstd.so.5 => /usr/lib/libprivatezstd.so.5 (0xc484480f000) > libcrypto.so.30 => /lib/libcrypto.so.30 (0xc4842853000) > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /usr/lib/libbz2.so.4: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libz.so.6: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /usr/lib/liblzma.so.5: > libmd.so.7 => /lib/libmd.so.7 (0xc48477f3000) > libthr.so.3 => /lib/libthr.so.3 (0xc4848518000) > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /usr/lib/libprivatezstd.so.5: > libthr.so.3 => /lib/libthr.so.3 (0xc4848518000) > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libm.so.5: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libutil.so.9: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libmd.so.7: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > /lib/libthr.so.3: > libc.so.7 => /lib/libc.so.7 (0xc484889d000) > libsys.so.7 => /lib/libsys.so.7 (0xc484af47000) > /lib/libc.so.7: > libsys.so.7 => /lib/libsys.so.7 (0xc484af47000) > /lib/libbsdxml.so.4: > libc.so.7 => /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.) 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 root@x230:~ # ldd -a /usr/local/sbin/pkg /usr/local/sbin/pkg: libelf.so.2 => /lib/libelf.so.2 (0x1a55a0de2000) libjail.so.1 => /lib/libjail.so.1 (0x1a55a1fae000) libssl.so.30 => /usr/lib/libssl.so.30 (0x1a55a1fc2000) libcrypto.so.30 => /lib/libcrypto.so.30 (0x1a55a2e3a000) libarchive.so.7 => /usr/lib/libarchive.so.7 (0x1a55a3e98000) libbz2.so.4 => /usr/lib/libbz2.so.4 (0x1a55a4a17000) libz.so.6 => /lib/libz.so.6 (0x1a55a4d85000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x1a55a57ed000) libprivatezstd.so.5 => /usr/lib/libprivatezstd.so.5 (0x1a55a640f000) libm.so.5 => /lib/libm.so.5 (0x1a55a696c000) libutil.so.9 => /lib/libutil.so.9 (0x1a55a6e12000) libmd.so.6 => not found (0) libthr.so.3 => /lib/libthr.so.3 (0x1a55a7a49000) libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libelf.so.2: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libjail.so.1: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /usr/lib/libssl.so.30: libcrypto.so.30 => /lib/libcrypto.so.30 (0x1a55a2e3a000) libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libcrypto.so.30: libthr.so.3 => /lib/libthr.so.3 (0x1a55a7a49000) libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /usr/lib/libarchive.so.7: libz.so.6 => /lib/libz.so.6 (0x1a55a4d85000) libbz2.so.4 => /usr/lib/libbz2.so.4 (0x1a55a4a17000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x1a55a57ed000) libbsdxml.so.4 => /lib/libbsdxml.so.4 (0x1a55a834a000) libprivatezstd.so.5 => /usr/lib/libprivatezstd.so.5 (0x1a55a640f000) libcrypto.so.30 => /lib/libcrypto.so.30 (0x1a55a2e3a000) libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /usr/lib/libbz2.so.4: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libz.so.6: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /usr/lib/liblzma.so.5: libmd.so.7 => /lib/libmd.so.7 (0x1a55a853a000) libthr.so.3 => /lib/libthr.so.3 (0x1a55a7a49000) libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /usr/lib/libprivatezstd.so.5: libthr.so.3 => /lib/libthr.so.3 (0x1a55a7a49000) libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libm.so.5: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libutil.so.9: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libthr.so.3: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) libsys.so.7 => /lib/libsys.so.7 (0x1a55a8908000) /lib/libc.so.7: libsys.so.7 => /lib/libsys.so.7 (0x1a55a8908000) /lib/libbsdxml.so.4: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) /lib/libmd.so.7: libc.so.7 => /lib/libc.so.7 (0x1a55a7aa9000) [preloaded] [vdso] (0x1a559fe96000) It seems pkg is still linked with libmd.so.6 and lzma is linked with libmd.so.7. Anyway we have a problem, keeping libmd.so.6 seems not to be enough to have pkg working -- Renato Botelho