From 51bb46d12858c84feee9f3b0010db962b02c47bc82dbb169db3660a47231a7f1 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Tue, 24 Feb 2026 21:23:05 -0500 Subject: [PATCH] missed patch and note --- jerryscript-3.0.0-no-werror.patch | 20 ++++++++++++++++++++ jerryscript.spec | 12 +++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 jerryscript-3.0.0-no-werror.patch diff --git a/jerryscript-3.0.0-no-werror.patch b/jerryscript-3.0.0-no-werror.patch new file mode 100644 index 0000000..168a1ae --- /dev/null +++ b/jerryscript-3.0.0-no-werror.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/840263 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -176,7 +176,6 @@ + macro(jerry_add_compile_warnings) + foreach(_warning ${ARGV}) + jerry_add_compile_flags(-W${_warning}) +- jerry_add_compile_flags(-Werror=${_warning}) + endforeach() + endmacro() + +@@ -224,7 +223,7 @@ + if(NOT "${PLATFORM}" STREQUAL "WINDOWS") + jerry_add_compile_warnings(conversion) + endif() +- jerry_add_compile_flags(-Wno-stack-protector -Wno-attributes -Werror) ++ jerry_add_compile_flags(-Wno-stack-protector -Wno-attributes) + endif() + + if(USING_GCC) diff --git a/jerryscript.spec b/jerryscript.spec index fd1dd03..ddc31b2 100644 --- a/jerryscript.spec +++ b/jerryscript.spec @@ -42,11 +42,13 @@ Libraries and header files for %{name}. %prep %autosetup -p1 - find . -name CMakeLists.txt -print0 | xargs -0 sed -i \ - -e "s:lib/pkgconfig:%{_libdir}/pkgconfig:" \ - -e "s:DESTINATION lib):DESTINATION %{_libdir}):" - find . -name '*.pc.in' -print0 | xargs -0 sed -i \ - -e "s|/lib\$|/%{_libdir}|" +# fixes from: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-lang/jerryscript/jerryscript-3.0.0.ebuild#n27 +find . -name CMakeLists.txt -print0 | xargs -0 sed -i \ + -e "s:lib/pkgconfig:%{_libdir}/pkgconfig:" \ + -e "s:DESTINATION lib):DESTINATION %{_libdir}):" + +find . -name '*.pc.in' -print0 | xargs -0 sed -i \ + -e "s|/lib\$|/%{_libdir}|" %build mkdir build && cd build