From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 64EFF158091 for ; Fri, 10 Jun 2022 11:02:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96B52E086C; Fri, 10 Jun 2022 11:02:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7D9EDE086C for ; Fri, 10 Jun 2022 11:02:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8A221341708 for ; Fri, 10 Jun 2022 11:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E1B3C44B for ; Fri, 10 Jun 2022 11:02:07 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1654858917.0c800e1cf627a83ca4b8b9bbdca11026bcf8def8.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/jerryscript/, dev-lang/jerryscript/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/jerryscript/files/jerryscript-2.4.0-no-werror.patch dev-lang/jerryscript/jerryscript-2.4.0-r4.ebuild X-VCS-Directories: dev-lang/jerryscript/ dev-lang/jerryscript/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0c800e1cf627a83ca4b8b9bbdca11026bcf8def8 X-VCS-Branch: master Date: Fri, 10 Jun 2022 11:02:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: baa9ebbf-8cc0-4c56-be84-6f8442dee169 X-Archives-Hash: 46ef2c19eb82090835dd6cb8096d11cb commit: 0c800e1cf627a83ca4b8b9bbdca11026bcf8def8 Author: Sam James gentoo org> AuthorDate: Fri Jun 10 10:31:53 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jun 10 11:01:57 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c800e1c dev-lang/jerryscript: drop -Werror; fix build with GCC 12 Closes: https://bugs.gentoo.org/840263 Signed-off-by: Sam James gentoo.org> .../files/jerryscript-2.4.0-no-werror.patch | 33 ++++++++++++++++++++++ dev-lang/jerryscript/jerryscript-2.4.0-r4.ebuild | 1 + 2 files changed, 34 insertions(+) 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() {