generated from pool/new_package
missed patch and note
This commit is contained in:
20
jerryscript-3.0.0-no-werror.patch
Normal file
20
jerryscript-3.0.0-no-werror.patch
Normal 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)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user