Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Oct 2023 21:46:17 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        ports@freebsd.org
Subject:   Re: lang/perl5.36: update procedure written in UPDATING is not enough
Message-ID:  <20231021214617.b9a6ee4405368342520d2709@dec.sakura.ne.jp>
In-Reply-To: <202310211041.39LAfNqi063862@nuc.oldach.net>
References:  <20231021162315.f9042885e73d7ce1b0b52e4c@dec.sakura.ne.jp> <202310211041.39LAfNqi063862@nuc.oldach.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 21 Oct 2023 12:41:23 +0200 (CEST)
freebsd@oldach.net (Helge Oldach) wrote:

> Tomoaki AOKI wrote on Sat, 21 Oct 2023 09:23:15 +0200 (CEST):
> > On Sat, 21 Oct 2023 07:49:51 +0200 (CEST)
> > freebsd@oldach.net (Helge Oldach) wrote:
> > 
> > > Tatsuki Makino wrote on Sat, 21 Oct 2023 05:39:27 +0200 (CEST):
> > > > The default version of perl has been switched, have you been able to keep up? :)
> > > > Updating according to the procedure written in UPDATING is sufficient to avoid the trouble of not finding the library when perl is executed.
> > > > However, it has not moved the files installed according to the old version number.
> > > 
> > > Indeed 20181213 is incomplete; I usually run something like
> > > 
> > > portupgrade -f `pkg query %ro-%rv lang/perl5.28`
> > > 
> > > instead of the pkg shlib example.
> > > 
> > Usually, I run `portupgrade -m 'DISABLE_VULNERABILITIES=yes' -f p5-\*`
> > between the 2 steps for portupgade.
> 
> That would miss dependencies not starting with p5-, for example example
> net/wakeonlan (not seen by pkg shlib either). In fact this installs into
> site_perl/mach/${PERL_VER} so there would be leftovers from the previous
> ${PERL_VER} during upgrade.
> 
> Kind regards
> Helge

Of course, p5-\* aline is insufficient. What I noted is, in detail,

  First, add to /etc/make.conf:

  DEFAULT_VERSIONS+=  perl5=5.28

  Portupgrade users:
	portupgrade -o lang/perl5.36 -f lang/perl5.34

	  You can now remove the DEFAULT_VERSIONS line added earlier
	  from /etc/make.conf

	  Update everything starting with "p5-".

	portupgrade -m 'DISABLE_VULNERABILITIES=yes' -f p5-\*

	  Then you will need to rebuild everything that uses
	  libperl.so, you can do so with:

	portupgrade -m 'DISABLE_VULNERABILITIES=yes' \
	  -f `pkg shlib -qR libperl.so.5.34`


Formerl, I did what you mentioned instead of the last one.
But earlier than that, I did much more overkill lile below.

	portupgrade -m 'DISABLE_VULNERABILITIES=yes' -r \
	  -x '>=lang/perl5.36' -f lang/perl5.36

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20231021214617.b9a6ee4405368342520d2709>