hello,

On 2026-06-22 11:38, Stuart Henderson wrote:
> On 2026/06/21 16:08, Johan Huldtgren wrote:
> > doing rc_check
> > ERROR: MISSING REQUIRED ADDITIONAL MODULES:
> >   auto::Crypt::OpenSSL::RSA::new_public_key
> ..
> > I found a bug report for this same issue in the FreeBSD ports tree
> > 
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286719
> > 
> > and applying the 2nd (correct) patch to our patch for amavisd fixes it
> > for me.
> > 
> > https://bugs.freebsd.org/bugzilla/attachment.cgi?id=260325&action=diff
> 
> > RCS file: /cvs/ports/mail/amavisd-new/patches/patch-amavisd,v
> > diff -u -p -u -p -r1.18 patch-amavisd
> > --- amavisd-new//patches/patch-amavisd      11 Mar 2022 19:34:32 -0000      
> > 1.18
> > +++ amavisd-new//patches/patch-amavisd      21 Jun 2026 19:46:50 -0000
> > @@ -1,10 +1,7 @@
> > -Hunks 1, 4: Disable File::LibMagic in favour of safer file(1) from base.
> > -Hunks 2, 5: fix DKIM signing
> > -
> 
> please keep the patch header (renumbered as necessary), and add
> information about the new hunks

For completeness sake, new diff attached, hopefully with correct hunk
numbering. However upgrading the port to the latest as per Jim
Lippard's separate thread would seem to be the better solution.

https://marc.info/?l=openbsd-ports&m=178214069115159&w=2

thanks,

.jh
Index: amavisd-new//Makefile
===================================================================
RCS file: /cvs/ports/mail/amavisd-new/Makefile,v
diff -u -p -u -p -r1.55 Makefile
--- amavisd-new//Makefile       26 Sep 2023 12:28:09 -0000      1.55
+++ amavisd-new//Makefile       24 Jun 2026 02:10:51 -0000
@@ -6,7 +6,7 @@ DISTNAME=               amavis-v${V}
 PKGNAME-main=          amavisd-new-${V}
 PKGNAME-utils=         amavisd-new-utils-${V}
 CATEGORIES=            mail security
-REVISION-main=         0
+REVISION-main=         1
 REVISION-utils=                0
 
 HOMEPAGE=              http://www.amavis.org/
Index: amavisd-new//patches/patch-amavisd
===================================================================
RCS file: /cvs/ports/mail/amavisd-new/patches/patch-amavisd,v
diff -u -p -u -p -r1.18 patch-amavisd
--- amavisd-new//patches/patch-amavisd  11 Mar 2022 19:34:32 -0000      1.18
+++ amavisd-new//patches/patch-amavisd  24 Jun 2026 02:10:51 -0000
@@ -1,10 +1,11 @@
-Hunks 1, 4: Disable File::LibMagic in favour of safer file(1) from base.
-Hunks 2, 5: fix DKIM signing
+Hunks 1, 5: Disable File::LibMagic in favour of safer file(1) from base.
+Hunks 4, 6: fix DKIM signing
+Hunks 2, 3: fix Crypto::OpenSSL::RSA
 
 Index: amavisd
 --- amavisd.orig
 +++ amavisd
-@@ -12939,7 +12939,7 @@ sub after_chroot_init() {
+@@ -12964,7 +12964,7 @@ sub after_chroot_init() {
                 grep(/\.pm\z/, keys %INC)) {
      next  if !grep($_ eq $m, qw(Amavis::Conf
        Archive::Tar Archive::Zip Compress::Zlib Compress::Raw::Zlib
@@ -13,7 +14,27 @@ Index: amavisd
        MIME::Entity MIME::Parser MIME::Tools Mail::Header Mail::Internet
        Digest::MD5 Digest::SHA Digest::SHA1 Crypt::OpenSSL::RSA
        Authen::SASL Authen::SASL::XS Authen::SASL::Cyrus Authen::SASL::Perl
-@@ -30859,7 +30859,7 @@ sub new_SpamAssassin_instance {
+@@ -18790,7 +18790,7 @@ sub fetch_modules_extra() {
+                       auto::Net::SSLeay::dump_peer_certificate));
+   }
+   push(@modules, qw(Net::DNS::RR::TXT Text::ParseWords
+-         auto::Crypt::OpenSSL::RSA::new_public_key))  if $extra_code_dkim;
++       ))  if $extra_code_dkim;
+   push(@modules, 'Anomy::Sanitizer')  if $enable_anomy_sanitizer;
+   Amavis::Boot::fetch_modules('REQUIRED ADDITIONAL MODULES', 1, @modules);
+ 
+@@ -30827,10 +30827,6 @@ sub getSAPlugins {
+       $mod_names{'Mail::SpamAssassin::Plugin::DKIM'}) {
+     push(@modules, qw(
+       Crypt::OpenSSL::RSA
+-      auto::Crypt::OpenSSL::RSA::new_public_key
+-      auto::Crypt::OpenSSL::RSA::new_key_from_parameters
+-      auto::Crypt::OpenSSL::RSA::get_key_parameters
+-      auto::Crypt::OpenSSL::RSA::import_random_seed
+       Digest::SHA Error));
+   }
+ # HTML/HeadParser.pm
+@@ -30915,7 +30911,7 @@ sub new_SpamAssassin_instance {
  #   PREFIX            => '/usr/local',
  #   DEF_RULES_DIR     => '/usr/local/share/spamassassin',
  #   LOCAL_RULES_DIR   => '/etc/mail/spamassassin',
@@ -22,7 +43,7 @@ Index: amavisd
  #see Mail::SpamAssassin man page for other options
    };
    if ($sa_version_num < 3.001005 && !defined $sa_args->{LOCAL_STATE_DIR})
-@@ -31634,17 +31634,8 @@ BEGIN {
+@@ -31690,17 +31686,8 @@ BEGIN {
    import Amavis::Unpackers::NewFilename qw(consumed_bytes);
  }
  

Reply via email to