From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E33D138334 for ; Thu, 3 Oct 2019 17:43:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C64EFE0817; Thu, 3 Oct 2019 17:42:59 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A3BE5E0817 for ; Thu, 3 Oct 2019 17:42:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4E37634B7E1 for ; Thu, 3 Oct 2019 17:42:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1C70676A for ; Thu, 3 Oct 2019 17:42:56 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1570124543.f06daf5beb7b4f48d875ea818ba29d5ad385767c.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/kdepim-runtime/files/, kde-apps/kdepim-runtime/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/kdepim-runtime/files/kdepim-runtime-19.04.3-ui_compactpage-race-condition.patch kde-apps/kdepim-runtime/kdepim-runtime-19.04.3.ebuild kde-apps/kdepim-runtime/kdepim-runtime-19.08.1.ebuild X-VCS-Directories: kde-apps/kdepim-runtime/ kde-apps/kdepim-runtime/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: f06daf5beb7b4f48d875ea818ba29d5ad385767c X-VCS-Branch: master Date: Thu, 3 Oct 2019 17:42:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bd5fe0a0-828e-4cec-b6a3-6a19b0ebd29b X-Archives-Hash: a2481b1cf447a9be308bfbd7a1b63edf commit: f06daf5beb7b4f48d875ea818ba29d5ad385767c Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Oct 3 12:35:58 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Oct 3 17:42:23 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f06daf5b kde-apps/kdepim-runtime: Add another upstream race condition fix Tested-by: Rutger van Bergen xs4all.nl> Closes: https://bugs.gentoo.org/691938 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner gentoo.org> ...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(-) 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 00000000000..cfee2009495 --- /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 a187fe09102..418ba920270 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 1afb7ce36c0..88e85dc3bb7 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() {