On Tue, Mar 15, 2022 at 08:22:43PM +0000, Stuart Henderson wrote: > On 2022/03/15 16:16, Kurt Mosiejczuk wrote: > > On Tue, Mar 15, 2022 at 11:39:36AM +0100, Solene Rapenne wrote: > > > On Mon, 14 Mar 2022 08:44:37 -0600 (MDT) > > > Giovanni Bechis <[email protected]>: > > > > > > CVSROOT: /cvs > > > > Module name: ports > > > > Changes by: [email protected] 2022/03/14 08:44:37 > > > > > > Modified files: > > > > www/apache-httpd: Tag: OPENBSD_7_0 Makefile distinfo > > > > > > Log message: > > > > update to 2.4.53 > > > > fixes CVE-2022-22719, CVE-2022-22720, CVE-2022-22721 and CVE-2022-23943 > > > > > this doesn't compile on sparc64 7.0-stable > > > > It fails identically on -current. > > base-gcc won't be good enough: > > > util.c:3183: error: thread-local storage not supported for this target > untested (no access to sparc64) but it may work. Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/apache-httpd/Makefile,v
retrieving revision 1.114
diff -u -p -r1.114 Makefile
--- Makefile 14 Mar 2022 14:41:34 -0000 1.114
+++ Makefile 15 Mar 2022 21:32:47 -0000
@@ -62,9 +62,16 @@ CONFIGURE_ARGS= --enable-authnz-fcgi \
--with-suexec-caller=www \
--with-suexec-logfile=${LOCALSTATEDIR}/log/suexec2_log
+
+.if ${MACHINE_ARCH} == "sparc64"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DAP_NO_THREAD_LOCAL" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ AWK=awk
+.else
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
AWK=awk
+.endif
FAKE_FLAGS= rel_user=www rel_group=www \
rel_datadir=${HTTPD_DIR} \
signature.asc
Description: PGP signature
