Solved pkg-static: perl5-5.34.1_3 conflicts with perl5.34-5.34.1_3

Hello.
updating perl 5.32.
How to fix?

Code:
install  -m 0644 /usr/ports/lang/perl5.34/work/perl-man.conf /usr/ports/lang/perl5.34/work/stage/usr/local/etc/man.d/perl5.conf
====> Compressing man pages (compress-man)
===>   Installing ldconfig configuration file
===>  Installing for perl5-5.34.1_3
===>  Checking if perl5 is already installed
===>   Registering installation for perl5-5.34.1_3
[test] Installing perl5-5.34.1_3...
pkg-static: perl5-5.34.1_3 conflicts with perl5.34-5.34.1_3 (installs files into the same place).  Problematic file: /usr/local/bin/perl5.34.1
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/perl5.34
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/perl5.34
root@test:/usr/ports/lang/perl5.34 # pkg version -v | grep per
perl5.34-5.34.1_3                  ?   orphaned: lang/perl5.34
 
UPDATING:
Code:
20230730:
  AFFECTS: users of lang/perl5*
  AUTHOR: delphij@FreeBSD.org

  The default Perl version has been switched to Perl 5.34.  If you are using
  binary packages to upgrade your system, you do not have anything to do, pkg
  upgrade will do the right thing.  For the other people, follow the
  instructions in entry 20181213, it should still be the same.

...

20181213:
  AFFECTS: users of lang/perl5*
  AUTHOR: mat@FreeBSD.org

  The default Perl version has been switched to Perl 5.28.  If you are using
  binary packages to upgrade your system, you do not have anything to do, pkg
  upgrade will do the right thing.  For the other people, assuming you are
  migrating from 5.26 to 5.28, do:

  First, add to /etc/make.conf:

  DEFAULT_VERSIONS+=  perl5=5.28

  Portupgrade users:
        portupgrade -o lang/perl5.28 -f lang/perl5.26

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

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

        portupgrade -f `pkg shlib -qR libperl.so.5.26`

          If, for some reason, this command fails at one point, it is safe to
          run it again, it will not rebuild what it already rebuilt, as the
          ports that have been rebuilt no longer depend on libperl.so.5.26 but
          on libperl.so.5.28.

  Portmaster users:
        portmaster -o lang/perl5.28 lang/perl5.26

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

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

        portmaster -f `pkg shlib -qR libperl.so.5.26`

          If, for some reason, this command fails at one point, it is safe to
          run it again, it will not rebuild what it already rebuilt, as the
          ports that have been rebuilt no longer depend on libperl.so.5.26 but
          on libperl.so.5.28.
 
Back
Top