From f06daf5beb7b4f48d875ea818ba29d5ad385767c Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Thu, 3 Oct 2019 14:35:58 +0200 Subject: kde-apps/kdepim-runtime: Add another upstream race condition fix Tested-by: Rutger van Bergen Closes: https://bugs.gentoo.org/691938 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner --- ...ime-19.04.3-ui_compactpage-race-condition.patch | 50 ++++++++++++++++++++++ .../kdepim-runtime/kdepim-runtime-19.04.3.ebuild | 5 ++- .../kdepim-runtime/kdepim-runtime-19.08.1.ebuild | 2 + 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 kde-apps/kdepim-runtime/files/kdepim-runtime-19.04.3-ui_compactpage-race-condition.patch (limited to 'kde-apps') diff --git a/kde-apps/kdepim-runtime/files/kdepim-runtime-19.04.3-ui_compactpage-race-condition.patch b/kde-apps/kdepim-runtime/files/kdepim-runtime-19.04.3-ui_compactpage-race-condition.patch new file mode 100644 index 000000000000..cfee20094953 --- /dev/null +++ b/kde-apps/kdepim-runtime/files/kdepim-runtime-19.04.3-ui_compactpage-race-condition.patch @@ -0,0 +1,50 @@ +From 8ec4db907c403b24685a961b48be5f8a288d9bd9 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Wed, 2 Oct 2019 11:26:29 +0200 +Subject: Fix the dependencies on generated files differently. + +Some Gentoo users were still having build issues with the mbox resource. + +BUG: 410474 +FIXED-IN: 19.08.1 +--- + resources/mbox/CMakeLists.txt | 17 +++++++++++++---- + 1 file changed, 13 insertions(+), 4 deletions(-) + +diff --git a/resources/mbox/CMakeLists.txt b/resources/mbox/CMakeLists.txt +index c52230f..ca8bc1e 100644 +--- a/resources/mbox/CMakeLists.txt ++++ b/resources/mbox/CMakeLists.txt +@@ -14,10 +14,18 @@ set( mboxresource_SRCS + ${mboxresource_common_SRCS} + ) + +-# Fix a race condition. mboxresource.cpp needs compactpage.h which includes ui_compactpage.h. +-# Make sure the ui file is generated before building the akonadi_mbox_resource target. +-set_source_files_properties(mboxresource.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ui_compactpage.h) +-set_source_files_properties(mboxresource.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ui_lockfilepage.h) ++# mboxresource.cpp needs UI files generated for another target. We must be sure the files ++# were created before building the akonadi_mbox_resource target. ++add_custom_target(generated_headers ++ DEPENDS ++ ${CMAKE_CURRENT_BINARY_DIR}/ui_compactpage.h ++ ${CMAKE_CURRENT_BINARY_DIR}/ui_lockfilepage.h ++) ++set_source_files_properties( ++ ${CMAKE_CURRENT_BINARY_DIR}/ui_compactpage.h ++ ${CMAKE_CURRENT_BINARY_DIR}/ui_lockfilepage.h ++ PROPERTIES GENERATED TRUE ++) + + ecm_qt_declare_logging_category(mboxresource_SRCS HEADER mboxresource_debug.h IDENTIFIER MBOXRESOURCE_LOG CATEGORY_NAME org.kde.pim.mboxresource) + +@@ -29,6 +37,7 @@ qt5_add_dbus_adaptor(mboxresource_SRCS + ) + + add_executable(akonadi_mbox_resource ${mboxresource_SRCS}) ++add_dependencies(akonadi_mbox_resource generated_headers) + + if( APPLE ) + set_target_properties(akonadi_mbox_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template) +-- +cgit v1.1 diff --git a/kde-apps/kdepim-runtime/kdepim-runtime-19.04.3.ebuild b/kde-apps/kdepim-runtime/kdepim-runtime-19.04.3.ebuild index a187fe09102e..418ba9202700 100644 --- a/kde-apps/kdepim-runtime/kdepim-runtime-19.04.3.ebuild +++ b/kde-apps/kdepim-runtime/kdepim-runtime-19.04.3.ebuild @@ -74,7 +74,10 @@ RDEPEND="${COMMON_DEPEND} !kde-misc/akonadi-ews " -PATCHES=( "${FILESDIR}/${P}-ui_lockfilepage-race-condition.patch" ) +PATCHES=( + "${FILESDIR}/${P}-ui_lockfilepage-race-condition.patch" + "${FILESDIR}/${P}-ui_compactpage-race-condition.patch" +) RESTRICT+=" test" diff --git a/kde-apps/kdepim-runtime/kdepim-runtime-19.08.1.ebuild b/kde-apps/kdepim-runtime/kdepim-runtime-19.08.1.ebuild index 1afb7ce36c0e..88e85dc3bb79 100644 --- a/kde-apps/kdepim-runtime/kdepim-runtime-19.08.1.ebuild +++ b/kde-apps/kdepim-runtime/kdepim-runtime-19.08.1.ebuild @@ -74,6 +74,8 @@ RDEPEND="${COMMON_DEPEND} !kde-misc/akonadi-ews " +PATCHES=( "${FILESDIR}/${PN}-19.04.3-ui_compactpage-race-condition.patch" ) # bug #691938 + RESTRICT+=" test" src_prepare() { -- cgit v1.2.3-65-gdbad