pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/wabt wabt: needs gnu++17 for alloca(3).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb0ea7085f20
branches:  trunk
changeset: 379211:cb0ea7085f20
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Fri May 13 08:56:52 2022 +0000

description:
wabt: needs gnu++17 for alloca(3).

This should fix the build on aarch64.

diffstat:

 devel/wabt/Makefile                     |   4 ++--
 devel/wabt/distinfo                     |   3 ++-
 devel/wabt/patches/patch-CMakeLists.txt |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 8a27721d1cc8 -r cb0ea7085f20 devel/wabt/Makefile
--- a/devel/wabt/Makefile       Fri May 13 07:36:41 2022 +0000
+++ b/devel/wabt/Makefile       Fri May 13 08:56:52 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2022/05/12 08:10:30 fcambus Exp $
+# $NetBSD: Makefile,v 1.12 2022/05/13 08:56:52 fcambus Exp $
 
 DISTNAME=      wabt-1.0.29
 CATEGORIES=    devel
@@ -13,7 +13,7 @@
 CMAKE_ARG_PATH=        ${WRKSRC}
 
 USE_CMAKE=     yes
-USE_LANGUAGES= c c++17
+USE_LANGUAGES= c gnu++17
 
 CMAKE_ARGS+=   -DBUILD_TESTS=OFF -DBUILD_LIBWASM=OFF
 
diff -r 8a27721d1cc8 -r cb0ea7085f20 devel/wabt/distinfo
--- a/devel/wabt/distinfo       Fri May 13 07:36:41 2022 +0000
+++ b/devel/wabt/distinfo       Fri May 13 08:56:52 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.12 2022/05/05 07:04:29 fcambus Exp $
+$NetBSD: distinfo,v 1.13 2022/05/13 08:56:52 fcambus Exp $
 
 BLAKE2s (wabt-1.0.29.tar.gz) = 757bfe1aa05672c15493929d53d57564cce26af30386ca2d205340705168e969
 SHA512 (wabt-1.0.29.tar.gz) = 7783e16c848da76392cd9f35aa1d205872d3d42e6aea1a815b28df3373cd547d2f139df4899de495bb6ee753c7c0bd608adc35538c2d3eb7325498457d6b3e08
 Size (wabt-1.0.29.tar.gz) = 1150946 bytes
+SHA1 (patch-CMakeLists.txt) = 3f53b60fdeed352cd41090c07d13ae15a1629155
diff -r 8a27721d1cc8 -r cb0ea7085f20 devel/wabt/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/wabt/patches/patch-CMakeLists.txt   Fri May 13 08:56:52 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2022/05/13 08:56:52 fcambus Exp $
+
+Do not disable extensions, needs gnu++17 for alloca(3).
+
+--- CMakeLists.txt.orig        2022-05-04 14:41:06.000000000 +0000
++++ CMakeLists.txt
+@@ -153,7 +153,7 @@ else ()
+     -Wall -Wextra -Wno-unused-parameter -Wpointer-arith -Wuninitialized
+   )
+ 
+-  set(CMAKE_CXX_EXTENSIONS OFF)
++  set(CMAKE_CXX_EXTENSIONS ON)
+   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wold-style-cast")
+ 
+   if (NOT WITH_EXCEPTIONS)



Home | Main Index | Thread Index | Old Index