summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-10 11:31:53 +0100
committerSam James <sam@gentoo.org>2022-06-10 12:01:57 +0100
commit0c800e1cf627a83ca4b8b9bbdca11026bcf8def8 (patch)
tree25a2945c14ef37ea7cd808cbf7f188a38ae48134 /dev-lang
parentsci-libs/libaec: add 1.0.6 (diff)
downloadgentoo-0c800e1cf627a83ca4b8b9bbdca11026bcf8def8.tar.gz
gentoo-0c800e1cf627a83ca4b8b9bbdca11026bcf8def8.tar.bz2
gentoo-0c800e1cf627a83ca4b8b9bbdca11026bcf8def8.zip
dev-lang/jerryscript: drop -Werror; fix build with GCC 12
Closes: https://bugs.gentoo.org/840263 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/jerryscript/files/jerryscript-2.4.0-no-werror.patch33
-rw-r--r--dev-lang/jerryscript/jerryscript-2.4.0-r4.ebuild1
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-lang/jerryscript/files/jerryscript-2.4.0-no-werror.patch b/dev-lang/jerryscript/files/jerryscript-2.4.0-no-werror.patch
new file mode 100644
index 000000000000..216e72758a25
--- /dev/null
+++ b/dev-lang/jerryscript/files/jerryscript-2.4.0-no-werror.patch
@@ -0,0 +1,33 @@
+https://bugs.gentoo.org/840263
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -167,7 +167,6 @@ endmacro()
+ macro(jerry_add_compile_warnings)
+ foreach(_warning ${ARGV})
+ jerry_add_compile_flags(-W${_warning})
+- jerry_add_compile_flags(-Werror=${_warning})
+ endforeach()
+ endmacro()
+
+@@ -212,7 +211,7 @@ if(USING_GCC OR USING_CLANG)
+ jerry_add_compile_flags(-fno-builtin)
+ endif()
+ jerry_add_compile_warnings(all extra format-nonliteral init-self conversion sign-conversion format-security missing-declarations shadow strict-prototypes undef old-style-definition)
+- jerry_add_compile_flags(-Wno-stack-protector -Wno-attributes -Werror)
++ jerry_add_compile_flags(-Wno-stack-protector -Wno-attributes)
+ endif()
+
+ if(USING_GCC)
+--- a/targets/zephyr/Makefile.zephyr
++++ b/targets/zephyr/Makefile.zephyr
+@@ -55,9 +55,8 @@ EXT_CFLAGS += -ffunction-sections -fno-inline-functions
+ EXT_CFLAGS += $(KBUILD_CFLAGS) $(NOSTDINC_FLAGS) $(subst -I,-isystem,$(ZEPHYRINCLUDE))
+
+ EXT_CFLAGS += -Wall -Wno-format-zero-length -Wno-pointer-sign
+-EXT_CFLAGS += -Werror=format -Werror=implicit-int -Wno-unused-but-set-variable
++EXT_CFLAGS += -Wformat -Wimplicit-int -Wno-unused-but-set-variable
+ EXT_CFLAGS += -Wno-main -Wno-strict-aliasing -Wno-old-style-declaration
+-EXT_CFLAGS += -Wno-error=format=
+ EXT_CFLAGS += -D_XOPEN_SOURCE=700
+
+ EXT_CFLAGS += -Wno-error=conversion
diff --git a/dev-lang/jerryscript/jerryscript-2.4.0-r4.ebuild b/dev-lang/jerryscript/jerryscript-2.4.0-r4.ebuild
index 8d851e7d9a8a..53553aaabb7d 100644
--- a/dev-lang/jerryscript/jerryscript-2.4.0-r4.ebuild
+++ b/dev-lang/jerryscript/jerryscript-2.4.0-r4.ebuild
@@ -21,6 +21,7 @@ RESTRICT+=" test"
PATCHES=(
"${FILESDIR}/jerryscript-2.4.0-python3-r4.patch"
+ "${FILESDIR}/jerryscript-2.4.0-no-werror.patch"
)
src_prepare() {