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