diff --git a/pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch b/pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch new file mode 100644 index 0000000..5078f3b --- /dev/null +++ b/pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch @@ -0,0 +1,22 @@ +--- pegasus/src/Pegasus/Common/InternalException.cpp.orig 2020-03-25 04:14:59.507215411 +0000 ++++ pegasus/src/Pegasus/Common/InternalException.cpp 2020-03-25 04:06:31.545770255 +0000 +@@ -982,7 +982,7 @@ SocketWriteError::~SocketWriteError() + // PEGASUS_MAXELEMENTS_NUM HTTP header fields in a single HTTP message + //============================================================================== + TooManyHTTPHeadersException::TooManyHTTPHeadersException() +- : Exception("more than "PEGASUS_MAXELEMENTS ++ : Exception("more than " PEGASUS_MAXELEMENTS + " header fields detected in HTTP message") + { + } +--- pegasus/src/Pegasus/Client/tests/slp/slpclient.cpp.orig 2020-03-25 04:21:46.078970915 +0000 ++++ pegasus/src/Pegasus/Client/tests/slp/slpclient.cpp 2020-03-25 04:22:16.302878401 +0000 +@@ -49,7 +49,7 @@ int main(int argc, char** argv) + + Array criteria; + Attribute attr( +- PEG_WBEM_SLP_SERVICE_ID"="PEG_WBEM_SLP_SERVICE_ID_DEFAULT); ++ PEG_WBEM_SLP_SERVICE_ID"=" PEG_WBEM_SLP_SERVICE_ID_DEFAULT); + Array connections; + SLPClientOptions* opts = (SLPClientOptions*)NULL; + if (argc == 2) diff --git a/tog-pegasus.spec b/tog-pegasus.spec index 030d753..f0d9c2e 100644 --- a/tog-pegasus.spec +++ b/tog-pegasus.spec @@ -8,7 +8,7 @@ Name: tog-pegasus Version: %{major_ver}.1 -Release: 51%{?dist} +Release: 52%{?dist} Epoch: 2 Summary: OpenPegasus WBEM Services for Linux @@ -97,6 +97,8 @@ Patch40: pegasus-2.14.1-tesid.patch Patch41: pegasus-2.14.1-ssl-cert-path.patch # 42: port to openssl-1.1 Patch42: pegasus-2.14.1-openssl-1.1-fix.patch +# 43: fix -Wreserved-user-defined-literal warnings which prevents building with clang +Patch43: pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch BuildRequires: procps, libstdc++, pam-devel BuildRequires: openssl, openssl-devel @@ -247,6 +249,7 @@ yes | mak/CreateDmtfSchema 238 %{SOURCE9} cim_schema_2.38.0 %patch40 -p1 -b .testid %patch41 -p1 -b .ssl-cert-path %patch42 -p1 -b .openssl-1.1-fix +%patch43 -p1 -b .Wreserved-user-defined-literal-fix %build @@ -548,6 +551,9 @@ fi %changelog +* Wed Mar 25 2020 Tom Stellard - 2:2.14.1-52 +- Fix -Wreserved-user-defined-literal warnings + * Thu Feb 27 2020 Vitezslav Crhonek - 2:2.14.1-51 - Fix tmpfiles path