Opened 5 years ago

Closed 5 years ago

#58990 closed defect (fixed)

mailx fails to build

Reported by: hbsimon (Horst Simon) Owned by: yan12125 (Chih-Hsuan Yen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mailx

Description (last modified by jmroot (Joshua Root))

--->  Building mailx
Error: Failed to build mailx: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mailx/mailx/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mailx failed

Attachments (1)

main.log.gz (6.1 KB) - added by hbsimon (Horst Simon) 5 years ago.

Download all attachments as: .zip

Change History (13)

Changed 5 years ago by hbsimon (Horst Simon)

Attachment: main.log.gz added

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to tobypeterson
Port: mailx added
Status: newassigned

comment:2 Changed 5 years ago by tobypeterson

Owner: tobypeterson deleted

comment:3 Changed 5 years ago by tobypeterson

I'm no longer able to maintain this port; marked nomaintainer accordingly. I actually haven't touched it in over 10 years, and a variety of changes have been made by others since then.

comment:4 Changed 5 years ago by kencu (Ken)

mailx looks about as dead upstream as a piece of software can look...

comment:5 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Owner: set to yan12125

comment:6 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

On the other hand, Arch Linux replaced heirloom-mailx with s-nail (1), which is actively maintained and compatible with OpenSSL 1.1. I will try adding s-nail first.

(1) https://www.archlinux.org/packages/core/x86_64/s-nail/

comment:7 Changed 5 years ago by Chih-Hsuan Yen <yan12125@…>

In 7f640d17a837219da0ecc791ada312f153e7b1ce/macports-ports (master):

s-nail: new port, a maintained fork of mail/mailx

The Portfile is based on mail/mailx and PKGBUILD from Arch Linux [1].

Notes for patches:

  • patch-junk.c: there is no longer junk.c or similar files in s-nail.
  • patch-maildir.c: the issue seems already fixed in s-nail.
  • patch-makeconfig & patch-openssl.c: for newer OpenSSL, which is already supported by s-nail.
  • patch-Makefile: s-nail's build system uses VAL_* variables for specifying installation paths, and compilation-related environment variables are honored.
  • patches for CVE-2004-2771 and CVE-2014-7844: the vulnerability has been fixed in s-nail 14.7.9 [2].

Ref: #58990
Ref: #58994

[1] https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/s-nail
[2] https://salsa.debian.org/debian/s-nail/blob/master/README

comment:8 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

I created s-nail port. Please check whether it is viable as a mailx replacement or not, thanks!

comment:9 Changed 5 years ago by hbsimon (Horst Simon)

Thanks, tested and for me it can be used as a mailx replacement.

comment:10 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Resolution: wontfix
Status: assignedclosed

Thanks for testing! I'll close this and propose to remove mailx in favor of s-nail in the future. If you found some issues in s-nail, feel free to open new tickets.

comment:11 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Resolution: wontfix
Status: closedreopened

Reopen until mailx is mark as obsoleted as suggested in https://trac.macports.org/ticket/59023#comment:2.

comment:12 Changed 5 years ago by Chih-Hsuan Yen <yan12125@…>

Resolution: fixed
Status: reopenedclosed

In 38e2003b288d11b0bafa59860efe2f05d6d8c4c9/macports-ports (master):

mailx: removed in favor of s-nail

Closes: #58990

Note: See TracTickets for help on using tickets.