Hi,
I'm running a FreeBSD 10.1 server, with lots of services (mail, web, db…). I used to have perl5-5.18 installed. Unfortunately I tried to upgrade to perl5-5.20 (the new default).
I've read /usr/ports/UPDATING but found no real help.
It started with the upgrade of MySQL server and client from 5.5 to 5.6: a dependency (p5-DBD-mysql) caused perl5-5.18 to be upgraded and perl5-5.20 to be installed. At this time, Amavisd-new would not start anymore, meaning my antispam is broken, and I could not accept emails.
I've found in /usr/ports/UPDATING that the name of my old perl package was not so good: perl5.18-5.18.4_17 and required renaming, so I used:
I've deleted MySQL server and p5-DBD-mysql too, and performed an upgrade of Perl:
Amavisd-new still wont start (failed dependencies).
So I try to reinstall one p5 package: I'm upgrading p5-Archive-Zip. This upgrade causes perl5.18-5.18.4_17 to be re-installed.
At this point, I re-delete perl5-5.20, and try to start Amavisd-new: fail.
After looking online for a workaround, I'm adding this line to /etc/make.conf:
and launch:
Every installed p5-* port is updated or re-installed, and Amavisd-new starts successfully.
Since then, I've commented out DEFAULT_VERSIONS in /etc/make.conf
Unfortunately, I'm pretty sure I've broken something in
for example:
I'm a bit lost here, any help greatly appreciated.
I'm running a FreeBSD 10.1 server, with lots of services (mail, web, db…). I used to have perl5-5.18 installed. Unfortunately I tried to upgrade to perl5-5.20 (the new default).
I've read /usr/ports/UPDATING but found no real help.
It started with the upgrade of MySQL server and client from 5.5 to 5.6: a dependency (p5-DBD-mysql) caused perl5-5.18 to be upgraded and perl5-5.20 to be installed. At this time, Amavisd-new would not start anymore, meaning my antispam is broken, and I could not accept emails.
I've found in /usr/ports/UPDATING that the name of my old perl package was not so good: perl5.18-5.18.4_17 and required renaming, so I used:
Code:
pkg delete perl5-5.20.3_8
pkg set -n perl5.18:perl5
I've deleted MySQL server and p5-DBD-mysql too, and performed an upgrade of Perl:
Code:
(syslog) perl5 upgraded: 5.18.4_17 -> 5.20.3_8
Amavisd-new still wont start (failed dependencies).
So I try to reinstall one p5 package: I'm upgrading p5-Archive-Zip. This upgrade causes perl5.18-5.18.4_17 to be re-installed.
At this point, I re-delete perl5-5.20, and try to start Amavisd-new: fail.
After looking online for a workaround, I'm adding this line to /etc/make.conf:
Code:
DEFAULT_VERSIONS+= perl5=5.20
and launch:
Code:
pkg set -o lang/perl5.18:lang/perl5.20
portmaster p5-
Every installed p5-* port is updated or re-installed, and Amavisd-new starts successfully.
Since then, I've commented out DEFAULT_VERSIONS in /etc/make.conf
Unfortunately, I'm pretty sure I've broken something in
pkg
's DB: I can't use pkg
to install or update software that depends on Perl, because it always want to reinstall perl5.18.for example:
Code:
# pkg install munin-common
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
perl5.18: 5.18.4_17
Installed packages to be UPGRADED:
munin-common: 2.0.25_1 -> 2.0.25_2
I'm a bit lost here, any help greatly appreciated.