Added patch to allow for building under EPEL-8

epel9
Ron Olson 3 years ago
parent afb289d68d
commit 25af95f6d1

@ -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 <tachoknight@gmail.com> 5.6.0-2
- Added patch to allow for building on EPEL-8
* Tue Mar 22 2022 Ron Olson <tachoknight@gmail.com> 5.6.0-1
- Updated to 5.6.0-RELEASE
* Tue Dec 14 2021 Ron Olson <tachoknight@gmail.com> 5.5.2-1

@ -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($<$<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>)
Loading…
Cancel
Save