Bug 286838 - security/amavisd-new fails to start with perl 5-5.40
Summary: security/amavisd-new fails to start with perl 5-5.40
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Florian Smeets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-16 18:16 UTC by Xavier Humbert
Modified: 2025-05-19 13:31 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (flo)


Attachments
amavisd-new 2.13.1 update (14.26 KB, patch)
2025-05-16 20:42 UTC, Florian Smeets
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Humbert 2025-05-16 18:16:09 UTC
Now that perl5-5.40 is the default, I upgraded from 5.36, then ran
portupgrade -vf $(pkg shlib -qR libperl.so.5.36)

amavisd-new was in the list and indeed rebuilt. p5-Time-HiRes was rebuilt, too

When I try to launch amavisd, I get this

[root@numenor ~]# amavisd
panic: XSUB Time::HiRes::gettimeofday (HiRes.c) failed to extend arg stack: base=828798018, sp=828798030, hwm=828798028

My OS is FreeBSD 13.5-STABLE-amd64 whith HEAD port tree

Xavier
Comment 1 Herbert J. Skuhra 2025-05-16 19:59:49 UTC
Hi!

Does it work if you remove p5-Time-HiRes? Perl 5.40 obviously installs a newer version (1.9777 vs 1.9764) of it:

$ pkg info -l perl5 |grep -i hires
        /usr/local/lib/perl5/5.40/mach/Time/HiRes.pm
        /usr/local/lib/perl5/5.40/mach/auto/Time/HiRes/HiRes.so
        /usr/local/lib/perl5/5.40/perl/man/man3/Time::HiRes.3.gz

@maintainer: latest version of amavavis(d-new) is 2.13.1.
Comment 2 Xavier Humbert 2025-05-16 20:07:00 UTC
(In reply to Herbert J. Skuhra from comment #1)
Yes ! I didn't notice that
Many thanks !
Xavier
Comment 3 Florian Smeets freebsd_committer freebsd_triage 2025-05-16 20:42:39 UTC
Created attachment 260456 [details]
amavisd-new 2.13.1 update
Comment 4 Florian Smeets freebsd_committer freebsd_triage 2025-05-16 20:43:30 UTC
I attached a patch to update to 2.13.1. It works for me with perl5.40. I want to do some more test and will probably commit this on Sunday.
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-05-18 14:59:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=475e45a40f5e8001f02b44f28c668988cf9bab2a

commit 475e45a40f5e8001f02b44f28c668988cf9bab2a
Author:     Florian Smeets <flo@FreeBSD.org>
AuthorDate: 2025-05-18 08:22:25 +0000
Commit:     Florian Smeets <flo@FreeBSD.org>
CommitDate: 2025-05-18 14:58:00 +0000

    security/amavisd-new: Update to 2.13.1

    PR:             286838

 security/amavisd-new/Makefile                      | 97 +++++++++++-----------
 security/amavisd-new/distinfo                      |  6 +-
 security/amavisd-new/files/patch-amavisd (gone)    | 40 ---------
 .../amavisd-new/files/patch-amavisd.conf (gone)    | 20 -----
 security/amavisd-new/pkg-plist                     | 73 +++++++++++++++-
 5 files changed, 124 insertions(+), 112 deletions(-)
Comment 6 Florian Smeets freebsd_committer freebsd_triage 2025-05-18 15:00:51 UTC
2.13.1 has been committed and works with perl5.40
Comment 7 mickael.maillot 2025-05-19 13:31:55 UTC
2.13.0 release note say:
Switch from Net::LibIDN to Net::LibIDN2 (if available).

Can you update the dependency ?