On Tue, May 11, 2021 at 01:14:15PM -0400, Kurt Mosiejczuk wrote:
> py-genshi fails to compile a .so file because it uses C99 and thus blows
> up when packaging. (Not sure why it doesn't blow up when compilation fails
> but....).

> This adds the necessary magic with base to fix the build on sparc64.

> ok?

Now with 100% more patch!

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/py-genshi/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile    15 Mar 2021 11:35:05 -0000      1.22
+++ Makefile    10 May 2021 19:36:50 -0000
@@ -25,6 +25,11 @@ MODPY_SETUP_ARGS =   --with-speedups
 
 TEST_DEPENDS = ${BUILD_DEPENDS}
 
+.include <bsd.port.arch.mk>
+.if !${PROPERTIES:Mclang}
+CFLAGS +=      -std=gnu99
+.endif
+
 post-install:
        #       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-genshi
        cp -r ${WRKSRC}/doc ${PREFIX}/share/doc/py-genshi

Reply via email to