git: 7187c760db69 - main - mail/xmail: Disable aslr

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 18 Jul 2023 14:57:08 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7187c760db69985124457decf7aa7997fa141fc0

commit 7187c760db69985124457decf7aa7997fa141fc0
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-07-18 14:33:23 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-07-18 14:56:40 +0000

    mail/xmail: Disable aslr
    
    A segfault results when aslr is enabled.
    
    MFH:    2023Q3
---
 mail/xmail/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mail/xmail/Makefile b/mail/xmail/Makefile
index 092e307b2878..6ef875d83dfc 100644
--- a/mail/xmail/Makefile
+++ b/mail/xmail/Makefile
@@ -20,4 +20,7 @@ post-patch:
 # Fix the build with -fno-common (for Clang 11 and GCC 10)
 	@${REINPLACE_CMD} -e '/In_Bogus_Mail_File;/d' ${WRKSRC}/xmail.c
 
+pre-install:
+	@${ELFCTL} -e +noaslr ${WRKSRC}/xmail
+
 .include <bsd.port.mk>