From nobody Mon Oct 7 17:49:59 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 4XMmrl3NPXz5YV0r for ; Mon, 07 Oct 2024 17:50:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-20.consmr.mail.gq1.yahoo.com (sonic305-20.consmr.mail.gq1.yahoo.com [98.137.64.83]) (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 4XMmrk3ZSNz4lyZ for ; Mon, 7 Oct 2024 17:50:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=XG6CQuzb; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728323412; bh=9kOP6Y1NI/4lvg8pQHHlR/cU4+59bjrfhstHgoBli+Y=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=XG6CQuzbfnXPbUqp0B3wdJim9+UPC/iS6XRVhZlTWcCnckToB2+H2tXisFK5l0eIIa11jguATiRwFxG2ZQz+fMsrI17vW5ys/9bt+kEQvdkJaoCEWW2OWmH+kXivFS+R/IVuBvmG+MQtYsI21Lrood/m2Of3UCGp6I6QSv555fv4vgg5reYMtah3+y6ERfJBVRupPmawqVoumgJif+GxB1K1seOH6CBRVCdk9mZNpklpxHyqs/CkoDyv6lrNY8YBgH3ZbByuIUudyoEj7AhMM8yA59glQl100cVwhEvDIvslAbpP31mEmgtGKrrihtHL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oLVVXNk1R4OchXJZjPDFYLvn95WKDwbDw IWgwUPd2qOWQmHYzdoebU6jYflLRQ3j9hkUaZyPL_cWspiGA48S610bsDXfjXIHFSBtjjE.nNJvn YWMaCDbjzKVYr8M.GZmnRqZefsR5DrhjPLl87VXimjD9p6jL3FkNBxOV9dfTbCJLSuQ9F3_e2yBP 0maoRGYOZ3oLSHu2id9Bnhn52A7aOkCDl06FXycQtoRJvkoWhoFX4RySBZOubu_vo2.HPgz5xzwt Q.rKacyBH3SPgxpreK3jaZUrsAc0CIcF8wfAyxhvJFf0VTByTEQol.jJpBK5jSG1AMcUWGjFo_Sb s7TxrMcFGROimejIPm6Cmyf.J3BywN32vSTfur4gmklpFmAr6tvwFSZ_suFhCM29sIj3yXH1HYRB NfbA1BMu_GLYXuKgc0QZ5_vZ193pig9XIw5eeoDUb14ILO9cHL7JuzscdPWY52aIMZPg_Xmjxp7d MM_qR5V_g_r_ewejG9X60kjDvc75NHZG8h3bRk8EpOue3sbhhHy.xdaT1n8KwBN75mSK_CbpmVq9 5WwugG7cdfLCvuQHkq_FGHgKAmOZjvnfnJoa8ayHctFjEVCsL9pRM06_YITnZpI1IdhpDfMdh_ic sOb3uHL9QHIBUfS5Y31DfezdcBv5hmTi_jnAYHErSp0__XprRLy5gB430wT5qHULG2i.ZkIAK3BH rJ_BSrF7d29J5vyne96N3eh4- X-Sonic-MF: X-Sonic-ID: 452d92ea-9d15-477d-83b7-4da40acbd627 Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Mon, 7 Oct 2024 17:50:12 +0000 Received: by hermes--production-gq1-5d95dc458-4tw7n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 100eca9ae953ac6ed8d5715aee03dc28; Mon, 07 Oct 2024 17:50:10 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 Message-Id: <4E0CA824-A901-4219-ACCA-48B351C98E2B@yahoo.com> Date: Mon, 7 Oct 2024 10:49:59 -0700 Cc: Baptiste Daroussin To: "garga@freebsd.org" , FreeBSD-pkgbase@freebsd.org X-Mailer: Apple Mail (2.3776.700.51) References: <4E0CA824-A901-4219-ACCA-48B351C98E2B.ref@yahoo.com> X-Spamd-Result: default: False [-3.89 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.95)[-0.950]; NEURAL_HAM_SHORT(-0.94)[-0.944]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[FreeBSD-pkgbase@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.83:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.83:from] X-Rspamd-Queue-Id: 4XMmrk3ZSNz4lyZ X-Spamd-Bar: --- 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=20 > running CURRENT this morning using pkgbase. After that I got pkg = linked=20 > 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=20 > (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=20 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.) =3D=3D=3D Mark Millard marklmi at yahoo.com