summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2021-03-14 16:33:33 +0100
committerPiotr Karbowski <slashbeast@gentoo.org>2021-03-14 16:35:14 +0100
commitebc65b360483b27111d2f727bb4aea66aa778eba (patch)
tree4f4679c1cb44d58a2b6cc446ec10f8094a9b8765 /dev-libs/libdispatch
parentsys-boot/grub: remove accidentally added ebuild (diff)
downloadgentoo-ebc65b360483b27111d2f727bb4aea66aa778eba.tar.gz
gentoo-ebc65b360483b27111d2f727bb4aea66aa778eba.tar.bz2
gentoo-ebc65b360483b27111d2f727bb4aea66aa778eba.zip
dev-libs/libdispatch: 5.3.3: Drop -Werror; block on libobjc2.
Closes: https://bugs.gentoo.org/show_bug.cgi?id=775692 Closes: https://bugs.gentoo.org/show_bug.cgi?id=775623 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'dev-libs/libdispatch')
-rw-r--r--dev-libs/libdispatch/files/remove-Werror.patch25
-rw-r--r--dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild (renamed from dev-libs/libdispatch/libdispatch-5.3.3.ebuild)5
2 files changed, 28 insertions, 2 deletions
diff --git a/dev-libs/libdispatch/files/remove-Werror.patch b/dev-libs/libdispatch/files/remove-Werror.patch
new file mode 100644
index 000000000000..bdc3edf2d483
--- /dev/null
+++ b/dev-libs/libdispatch/files/remove-Werror.patch
@@ -0,0 +1,25 @@
+diff --git a/cmake/modules/DispatchCompilerWarnings.cmake b/cmake/modules/DispatchCompilerWarnings.cmake
+index 35b80f3..cc554ed 100644
+--- a/cmake/modules/DispatchCompilerWarnings.cmake
++++ b/cmake/modules/DispatchCompilerWarnings.cmake
+@@ -2,7 +2,6 @@
+ if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
+ # TODO: someone needs to provide the msvc equivalent warning flags
+ else()
+- add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Werror>)
+ add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wall>)
+ add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wextra>)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index adc989d..2841aa2 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -127,7 +127,7 @@ endif()
+ # FIXME(compnerd) add check for -fblocks?
+ target_compile_options(dispatch PRIVATE -fblocks)
+
+-check_c_compiler_flag("-momit-leaf-frame-pointer -Werror -Wall -O3" C_SUPPORTS_OMIT_LEAF_FRAME_POINTER)
++check_c_compiler_flag("-momit-leaf-frame-pointer -Wall -O3" C_SUPPORTS_OMIT_LEAF_FRAME_POINTER)
+ if (C_SUPPORTS_OMIT_LEAF_FRAME_POINTER)
+ target_compile_options(dispatch PRIVATE -momit-leaf-frame-pointer)
+ endif()
diff --git a/dev-libs/libdispatch/libdispatch-5.3.3.ebuild b/dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild
index d469c43530f2..d02b56e15ca3 100644
--- a/dev-libs/libdispatch/libdispatch-5.3.3.ebuild
+++ b/dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild
@@ -16,7 +16,7 @@ LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-DEPEND=""
+DEPEND="!gnustep-base/libobjc2"
RDEPEND="${DEPEND}"
BDEPEND="
sys-devel/clang
@@ -25,9 +25,10 @@ BDEPEND="
S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}/remove-Werror.patch" )
+
src_configure () {
if ! tc-is-clang ; then
- have_switched_compiler=yes
AR=llvm-ar
CC=${CHOST}-clang
CXX=${CHOST}-clang++