From nobody Sun Jul 02 10:51:21 2023 X-Original-To: freebsd-current@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 4Qv5TL23LCz4ktfm for ; Sun, 2 Jul 2023 10:51:34 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qv5TL0W7Gz3xtb; Sun, 2 Jul 2023 10:51:34 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688295094; 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: in-reply-to:in-reply-to:references:references; bh=fv1uMgTZpgtBMjTDktfCryUn0DkKLBBXi3Au2rn3cbs=; b=Q4UAAq/ec8QQKCNkb2DLOTNzPvnLRApM20/wn3w5jsnFVvX2ON08cP1+GtBYPR+Cqq+XqB hOUQHuaBjBNqZGGqYsgYe4j1o4OTzkCJaeML1NZ9vp9rvYTYz/GqzanNq5Gfg6WcKKnFdb a1TBUfShVRjSViQLti3/lvnieNH3Zq7T6H4ShI1XDOYPqhmaUwsSDNnZX348FqfzDc9Ggd Wqt1FQDcmuEH/rbvZZuCukWTDn5NlzMj6NNuQlf2mx5hk5s3EV9n23dzowmi42rfgSQqop /IhmrCjVi39CNqZz4JJMZCaHr001EvhfRLbmuM2tBAGU95/En3+BkDFiykGRwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688295094; 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: in-reply-to:in-reply-to:references:references; bh=fv1uMgTZpgtBMjTDktfCryUn0DkKLBBXi3Au2rn3cbs=; b=BqxV8E+cMN0MJOb/SWyoOnAH8oTr7brtfXlsOdCaCXpbCSgB5Jhc/L7aSno1kfXnVem1SX Uvqqi5caEPnCzQbK6Q220TdwkONpxRwf6mRDiCFeHpFyHGaZyBpJSYZpwaeZ8q5cVM4bCv c+xVuN9N4/ByQsol+0zkff3Jvx8tiJ7IJGsYfIQoVhqsAMppBnbcAqU9NqRXsC//fcT6s3 eMtgIGoJ1vaCvXcE4aT8l1Odiniy+mo1V2vLFmT0bFO5cz23ryd4osfRPbk16tXmeozmo6 m6Ew/r5thZRWqOTGs1k5GvkWJZ6y+VznJicblUhFFOfM+Bnu6Z4DtI/E2W84lg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688295094; a=rsa-sha256; cv=none; b=daSHD0PTM8AVhW7r7ZNfIm405pm8/34knuPgaWm2OAUiLvnZbcvewGuYIsRmYsQEx+qAId M4QvPNTiDK4grkXuGEo989Gl5GdddAOnxxN6UhxCGvPNXzE3QOJrP8wcMz6i8B+o4r/QV+ TFyy2O+2pm6kSXKANCYWSohNl/3tPPn4nJjv7tj5QE6yNfDQ/LTvL4nzMtT/7GswLDGqyW Xsa+hnQ+ykhCdvq9SUKSFdRCz9VYkjXvWZKU9bK+yO/dvL1QnsZYMklf9KSnZCbVH2F7E1 epjdw5y/gqUquiVKDiimateS2ku26HYdKx7YrC/51PKSI6BrdHLKFf+d9t8qbA== Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Qv5TK6htczV4p; Sun, 2 Jul 2023 10:51:33 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-4021451a4a4so28268541cf.0; Sun, 02 Jul 2023 03:51:33 -0700 (PDT) X-Gm-Message-State: AC+VfDxT1skmuUlL528EzrcGdfFpTNANEfMTh5+1L+GCPA4veCW0YA2h s1NXxhaY9QCFz3xceFimAEZY75B9hZz2zXA61WI= X-Google-Smtp-Source: ACHHUZ70/FKguxWZeqr3vU0QAJiHTFY2GfiR65HOUhhmTH4ydHnmxMf6Py9611YiTa9lj1Wff18KtAo567V38SrWZ+E= X-Received: by 2002:ac8:5d8a:0:b0:400:8eb6:4bf2 with SMTP id d10-20020ac85d8a000000b004008eb64bf2mr9759122qtx.13.1688295093212; Sun, 02 Jul 2023 03:51:33 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <20230702.144155.1693771078066107227.yasu@FreeBSD.org> <20230702165720.091506368e6c881f9b912088@dec.sakura.ne.jp> In-Reply-To: <20230702165720.091506368e6c881f9b912088@dec.sakura.ne.jp> From: Nuno Teixeira Date: Sun, 2 Jul 2023 11:51:21 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ld-elf.so.1: Shared object "libssl.so.111" not found, required by "pkg" and others To: Tomoaki AOKI Cc: freebsd-current@freebsd.org, Yasuhiro Kimura Content-Type: multipart/alternative; boundary="0000000000004e9c2105ff7ed59f" X-ThisMailContainsUnwantedMimeParts: N --0000000000004e9c2105ff7ed59f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Tomoaki, Yes, It was a mistake of mine doing it knowing that there were not pkgs available yet. But it was a nice error to test out BE :) I will take a look at your script and I will start building my own pkgs so they can be in sync with src. Thanks, Tomoaki AOKI escreveu no dia domingo, 2/07/2023 =C3=A0(s) 08:57: > On Sun, 02 Jul 2023 14:41:55 +0900 (JST) > Yasuhiro Kimura wrote: > > > From: Nuno Teixeira > > Subject: ld-elf.so.1: Shared object "libssl.so.111" not found, required > by "pkg" and others > > Date: Sun, 2 Jul 2023 06:22:48 +0100 > > > > > Hello all, > > > > > > I'm returning to current and installed from > 20230622-b95d2237af40-263748-bootonly.iso and upgraded to cab2d43b83b > (amd64). > > > > > > Did a magnific delete-old and delete-old-libs and now a lot of > packages complain about "ld-elf.so.1: Shared object "libssl.so.111" not > found, > > > required by..." > > > > > > To fix it I rebooted with BE from first instalation since I used > beinstall.sh for upgrade. > > > > > > I know that a lot of things happened in the last days with > llvm15->llvm16, openssl3, etc. > > > > > > My question is when can I do a delete-old{-libs}? > > > I'm thinking building pkgs with a updated current on poudriere and > then clean up libs? > > > > > > Thanks, > > > > The source of the issue is the migration from OpenSSL 1.1.1 to 3.0. > > > > So if you use packages built by yourself (e,g. by using poudriere, > > portmaster, porupgrade, etc. or simply 'make install'), then you > > should rebuild and reinstall all packages and then should do > > `make delete-old-libs`. > > > > If you use official binary packages, then you should wait until all > > packages are built with OpenSSL 3.0. > > > > HTH. > > > > --- > > Yasuhiro Kimura > > FYI: > I basically never `make delete-old-libs` blindly. > > First, run `make check-old-libs` and record the result. > Then, create an ad-hoc script to check for affected ports installed and > generate updating script. > Then, look into the temporary list generated (or generated script) if > any port should be actually rebuilt. > Run the generated script if needed. > > Attached is the quick and ugly ad-hoc script I used this time. > Beware! This generates updating script requiring ports-mgmt/pkg_replace. > Edit it to use whatever you want. > > > If you're using poudriere[-devel], it should rebuild everything. > I don't use poudriere on main, as it should force me tooo many full > rebuilds than on stable/* branches. > > If letting poudriere to rebuild everything and configured local repo, > `pkg upgrade` would do the right thing, maybe. > > > -- > Tomoaki AOKI > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000004e9c2105ff7ed59f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Tomoaki,

Yes, It was a= mistake of mine doing it knowing that there were not pkgs available yet.

But it was a nice error to test out BE :)

I will take a look at your script and I will start building= my own pkgs so they can be in sync with src.

Than= ks,

Tomoaki AOKI <= junchoon@dec.sakura.ne.jp> escreveu no dia domingo, 2/07/2023 =C3=A0= (s) 08:57:
On Su= n, 02 Jul 2023 14:41:55 +0900 (JST)
Yasuhiro Kimura <yasu@FreeBSD.org> wrote:

> From: Nuno Teixeira <eduardo@freebsd.org>
> Subject: ld-elf.so.1: Shared object "libssl.so.111" not foun= d, required by "pkg" and others
> Date: Sun, 2 Jul 2023 06:22:48 +0100
>
> > Hello all,
> >
> > I'm returning to current and installed from 20230622-b95d2237= af40-263748-bootonly.iso and upgraded to cab2d43b83b (amd64).
> >
> > Did a magnific delete-old and delete-old-libs and now a lot of pa= ckages complain about "ld-elf.so.1: Shared object "libssl.so.111&= quot; not found,
> > required by..."
> >
> > To fix it I rebooted with BE from first instalation since I used = beinstall.sh for upgrade.
> >
> > I know that a lot of things happened in the last days with llvm15= ->llvm16, openssl3, etc.
> >
> > My question is when can I do a delete-old{-libs}?
> > I'm thinking building pkgs with a updated current on poudrier= e and then clean up libs?
> >
> > Thanks,
>
> The source of the issue is the migration from OpenSSL 1.1.1 to 3.0. >
> So if you use packages built by yourself (e,g. by using poudriere,
> portmaster, porupgrade, etc. or simply 'make install'), then y= ou
> should rebuild and reinstall all packages and then should do
> `make delete-old-libs`.
>
> If you use official binary packages, then you should wait until all > packages are built with OpenSSL 3.0.
>
> HTH.
>
> ---
> Yasuhiro Kimura

FYI:
I basically never `make delete-old-libs` blindly.

First, run `make check-old-libs` and record the result.
Then, create an ad-hoc script to check for affected ports installed and
generate updating script.
Then, look into the temporary list generated (or generated script) if
any port should be actually rebuilt.
Run the generated script if needed.

Attached is the quick and ugly ad-hoc script I used this time.
Beware! This generates updating script requiring ports-mgmt/pkg_replace. Edit it to use whatever you want.


If you're using poudriere[-devel], it should rebuild everything.
I don't use poudriere on main, as it should force me tooo many full
rebuilds than on stable/* branches.

If letting poudriere to rebuild everything and configured local repo,
`pkg upgrade` would do the right thing, maybe.


--
Tomoaki AOKI=C2=A0 =C2=A0 <junchoon@dec.sakura.ne.jp>


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--0000000000004e9c2105ff7ed59f--