Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2023 21:43:18 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 063fe7a48e3c - main - www/p5-CGI-SpeedyCGI: Fix build with llvm16
Message-ID:  <202306252143.35PLhIbR057106@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=063fe7a48e3c782129e474b804566ed1484ab9da

commit 063fe7a48e3c782129e474b804566ed1484ab9da
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 21:41:37 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 21:42:46 +0000

    www/p5-CGI-SpeedyCGI: Fix build with llvm16
    
    - Replace deprecated @exec/@unexec with @postexec/@postunexec
    
    Sponsored by:   The FreeBSD Foundation
---
 www/p5-CGI-SpeedyCGI/Makefile  | 6 ++++++
 www/p5-CGI-SpeedyCGI/pkg-plist | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/www/p5-CGI-SpeedyCGI/Makefile b/www/p5-CGI-SpeedyCGI/Makefile
index b0302a218d73..30c9f3d0d221 100644
--- a/www/p5-CGI-SpeedyCGI/Makefile
+++ b/www/p5-CGI-SpeedyCGI/Makefile
@@ -23,6 +23,12 @@ OPTIONS_SUB=	yes
 APACHE_USES=	apache
 APACHE_CONFIGURE_ENV_OFF=	WITHOUT_APACHE=yes
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's/__inline__//g' \
 		${WRKSRC}/src/speedy_inc.h
diff --git a/www/p5-CGI-SpeedyCGI/pkg-plist b/www/p5-CGI-SpeedyCGI/pkg-plist
index 78972b3fea5b..319060ba8904 100644
--- a/www/p5-CGI-SpeedyCGI/pkg-plist
+++ b/www/p5-CGI-SpeedyCGI/pkg-plist
@@ -4,5 +4,5 @@ bin/speedy_dump
 bin/speedy_suidperl
 %%SITE_PERL%%/CGI/SpeedyCGI.pm
 %%APACHE%%%%APACHEMODDIR%%/mod_speedycgi.so
-%%APACHE%%@exec %D/sbin/apxs -e -a -n speedycgi %D/%F
-%%APACHE%%@unexec %D/sbin/apxs -e -A -n speedycgi %D/%F
+%%APACHE%%@postexec %D/sbin/apxs -e -a -n speedycgi %D/%F
+%%APACHE%%@postunexec %D/sbin/apxs -e -A -n speedycgi %D/%F



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306252143.35PLhIbR057106>