missed patch and note

This commit is contained in:
2026-02-24 21:23:05 -05:00
parent 4427ddf66a
commit 51bb46d128
2 changed files with 27 additions and 5 deletions

View File

@@ -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)

View File

@@ -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