From 25af95f6d1b833784376636231f440b0e3a5a3a1 Mon Sep 17 00:00:00 2001 From: Ron Olson Date: Wed, 23 Mar 2022 16:21:29 -0500 Subject: [PATCH] Added patch to allow for building under EPEL-8 --- libdispatch.spec | 6 +++++- noerrors.patch | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 noerrors.patch diff --git a/libdispatch.spec b/libdispatch.spec index 1a576b4..448e891 100644 --- a/libdispatch.spec +++ b/libdispatch.spec @@ -3,13 +3,14 @@ Name: libdispatch Version: 5.6.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Apple's Grand Central Dispatch library License: ASL 2.0 URL: https://github.com/apple/swift-corelibs-libdispatch Source0: https://github.com/apple/swift-corelibs-libdispatch/archive/swift-%{reltag}.tar.gz#/corelibs-libdispatch.tar.gz +Patch0: noerrors.patch BuildRequires: clang BuildRequires: libbsd-devel @@ -57,6 +58,7 @@ Development files for libdispatch %prep %setup -q -n swift-corelibs-libdispatch-swift-%{reltag} +%patch0 -p0 %build export CXX=clang++ @@ -84,6 +86,8 @@ chrpath --delete %{buildroot}%{_libdir}/libdispatch.so %changelog +* Wed Mar 23 2022 Ron Olson 5.6.0-2 +- Added patch to allow for building on EPEL-8 * Tue Mar 22 2022 Ron Olson 5.6.0-1 - Updated to 5.6.0-RELEASE * Tue Dec 14 2021 Ron Olson 5.5.2-1 diff --git a/noerrors.patch b/noerrors.patch new file mode 100644 index 0000000..9640ceb --- /dev/null +++ b/noerrors.patch @@ -0,0 +1,10 @@ +--- cmake/modules/DispatchCompilerWarnings.cmake.orig 2022-03-23 15:34:30.474065670 -0500 ++++ cmake/modules/DispatchCompilerWarnings.cmake 2022-03-23 15:46:39.228684206 -0500 +@@ -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($<$,$>:-Werror>) + add_compile_options($<$,$>:-Wall>) + add_compile_options($<$,$>:-Wextra>) +