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 80FA4138331 for ; Fri, 13 Apr 2018 23:57:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8622DE0891; Fri, 13 Apr 2018 23:57:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 56034E088F for ; Fri, 13 Apr 2018 23:57:20 +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 1242E335C8C for ; Fri, 13 Apr 2018 23:57:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD244285 for ; Fri, 13 Apr 2018 23:01:58 +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: <1523660498.55e92020241c75ab99daf2662062cc14709ddb36.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/phonon-gstreamer/files/, media-libs/phonon-gstreamer/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/phonon-gstreamer/files/phonon-gstreamer-4.9.0-qt-5.11.patch media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild X-VCS-Directories: media-libs/phonon-gstreamer/ media-libs/phonon-gstreamer/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 55e92020241c75ab99daf2662062cc14709ddb36 X-VCS-Branch: master Date: Fri, 13 Apr 2018 23:01:58 +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-Archives-Salt: 70a195bf-12ad-40bb-8f91-a153125ce259 X-Archives-Hash: e74058841cc985931c5f4cd61a169037 commit: 55e92020241c75ab99daf2662062cc14709ddb36 Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Apr 13 21:53:17 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Apr 13 23:01:38 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55e92020 media-libs/phonon-gstreamer: Fix build with Qt 5.11_beta3 Package-Manager: Portage-2.3.28, Repoman-2.3.9 .../files/phonon-gstreamer-4.9.0-qt-5.11.patch | 62 ++++++++++++++++++++++ .../phonon-gstreamer-4.9.0-r2.ebuild | 2 + 2 files changed, 64 insertions(+) diff --git a/media-libs/phonon-gstreamer/files/phonon-gstreamer-4.9.0-qt-5.11.patch b/media-libs/phonon-gstreamer/files/phonon-gstreamer-4.9.0-qt-5.11.patch new file mode 100644 index 00000000000..1e500058cf3 --- /dev/null +++ b/media-libs/phonon-gstreamer/files/phonon-gstreamer-4.9.0-qt-5.11.patch @@ -0,0 +1,62 @@ +From 38532b45ea32d5355cc19ff32ef69c2f462cad5d Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Fri, 13 Apr 2018 23:47:34 +0200 +Subject: [PATCH] Fix build with Qt 5.11_beta3 (dropping qt5_use_modules) + +Also replace automoc4_add_library with add_library. +--- + gstreamer/CMakeLists.txt | 26 +++++++++++++++----------- + 1 file changed, 15 insertions(+), 11 deletions(-) + +diff --git a/gstreamer/CMakeLists.txt b/gstreamer/CMakeLists.txt +index cb01285c..4536d042 100644 +--- a/gstreamer/CMakeLists.txt ++++ b/gstreamer/CMakeLists.txt +@@ -104,18 +104,26 @@ if (BUILD_X11RENDERER) + add_definitions(-DBUILD_X11RENDERER) + endif() + +-automoc4_add_library(phonon_gstreamer MODULE ${phonon_gstreamer_SRCS}) ++add_library(phonon_gstreamer MODULE ${phonon_gstreamer_SRCS}) + set_target_properties(phonon_gstreamer PROPERTIES + PREFIX "" + AUTOMOC_MOC_OPTIONS ${AUTOMOC_MOC_OPTIONS} + ) + +-qt5_use_modules(phonon_gstreamer Core Widgets) +- +-if(Qt5X11Extras_FOUND) +- qt5_use_modules(phonon_gstreamer X11Extras) +- target_link_libraries(phonon_gstreamer Qt5::X11Extras) +-endif(Qt5X11Extras_FOUND) ++if(PHONON_BUILD_PHONON4QT5) ++ target_link_libraries(phonon_gstreamer Qt5::Core Qt5::Widgets) ++ if(Qt5X11Extras_FOUND) ++ target_link_libraries(phonon_gstreamer Qt5::X11Extras) ++ endif() ++ if(OPENGL_FOUND) ++ target_link_libraries(phonon_gstreamer Qt5::OpenGL ${OPENGL_gl_LIBRARY}) ++ endif() ++else() ++ target_link_libraries(phonon_gstreamer ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}) ++ if(OPENGL_FOUND) ++ target_link_libraries(phonon_gstreamer ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY}) ++ endif() ++endif() + + target_link_libraries(phonon_gstreamer + ${PHONON_LIBRARY} +@@ -126,10 +134,6 @@ target_link_libraries(phonon_gstreamer + if(USE_INSTALL_PLUGIN) + target_link_libraries(phonon_gstreamer ${GSTREAMER_PLUGIN_PBUTILS_LIBRARIES}) + endif(USE_INSTALL_PLUGIN) +-if(OPENGL_FOUND) +- qt5_use_modules(phonon_gstreamer OpenGL) +- target_link_libraries(phonon_gstreamer ${OPENGL_gl_LIBRARY}) +-endif(OPENGL_FOUND) + + install(TARGETS phonon_gstreamer DESTINATION ${BACKEND_INSTALL_DIR}) + +-- +2.17.0 + diff --git a/media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild b/media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild index cf14d133e9d..67c68221168 100644 --- a/media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild +++ b/media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild @@ -42,6 +42,8 @@ DEPEND="${RDEPEND} virtual/pkgconfig " +PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" ) + src_configure() { local mycmakeargs=( -DPHONON_BUILD_PHONON4QT5=ON ) cmake-utils_src_configure