[Bug 270916] net/megacmd: Update to 1.6.1

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 18 Apr 2023 16:22:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270916

            Bug ID: 270916
           Summary: net/megacmd: Update to 1.6.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: kikadf.01@gmail.com

Created attachment 241567
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=241567&action=edit
patch_v1

Update to 1.6.1, no specific changelog. Update megasdk version to 4.17.1a, not
the latest, but current megacmd release uses this sdk version.

Fix the segmentation fault, what is reported in bug #269979

The fix: add -DCRYPTOPP_DISABLE_ASM to CXXFLAGS on i386 and amd64, as
cryptopp-8.7.0 build with this option by default on i386 and amd64. 

From cryptopp-8.7.0 Makefile:

OPTIONS_DEFINE=         DEBUG DOCS FULL_DEBUG TOOLS
OPTIONS_DEFINE_amd64=   SIMD
OPTIONS_DEFINE_i386=    SIMD
...
OPTIONS_DEFAULT=        TOOLS
...
.if !${PORT_OPTIONS:MSIMD}
CXXFLAGS+=      -DCRYPTOPP_DISABLE_ASM
.endif

I think the fix should works on other cryptopp-8.7.0 relevant segmentation
faults as well, like bug #266866 and bug #267216.

-- 
You are receiving this mail because:
You are the assignee for the bug.