From: DongHun Kwak Date: Wed, 5 Jun 2024 10:41:05 +0000 (+0900) Subject: Fix Werrors with GCC-14.1.0 X-Git-Tag: accepted/tizen/9.0/unified/20241030.231433^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8462f14b353e6ce98d3ef367784ac0b52d2ae62d;p=platform%2Fupstream%2Flibzypp.git Fix Werrors with GCC-14.1.0 include types.h at eventdispatcher.h Change-Id: I11ba3321e128bc4fc1b6a6b0ce656ca842f964a6 --- diff --git a/packaging/add_type_header_to_eventdispatcher_header.patch b/packaging/add_type_header_to_eventdispatcher_header.patch new file mode 100644 index 0000000..b33ae4f --- /dev/null +++ b/packaging/add_type_header_to_eventdispatcher_header.patch @@ -0,0 +1,12 @@ +diff --git a/zypp/zyppng/base/eventdispatcher.h b/zypp/zyppng/base/eventdispatcher.h +index 07a2b6690..3fc67486e 100644 +--- a/zypp/zyppng/base/eventdispatcher.h ++++ b/zypp/zyppng/base/eventdispatcher.h +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + + namespace zyppng { + diff --git a/packaging/libzypp.spec b/packaging/libzypp.spec index 2061fa4..b80716a 100644 --- a/packaging/libzypp.spec +++ b/packaging/libzypp.spec @@ -10,6 +10,7 @@ Source10: Exclude_subdirectory.patch Source11: add_pie_compile_option.patch Source12: fix_swig_syntax_error.patch Source13: add_time_header_to_random.patch +Source14: add_type_header_to_eventdispatcher_header.patch Source1001: libzypp.manifest # Features we provide (update doc/autoinclude/FeatureTest.doc): @@ -111,6 +112,7 @@ cp %{SOURCE1001} . %{__patch} -p1 < %{SOURCE11} %{__patch} -p1 < %{SOURCE12} %{__patch} -p1 < %{SOURCE13} +%{__patch} -p1 < %{SOURCE14} %build mkdir build