summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-02-09 20:50:52 +0100
committerLars Wendler <polynomial-c@gentoo.org>2016-02-09 20:51:30 +0100
commitfe5dc79e3f08966ed5dedeffbce7446995351b8f (patch)
tree85a5ab3ca4cc318576e8172e825f63d9d28a4efe
parentdev-vcs/git: Move patches into PATCHES array and get rid of epatch command. (diff)
downloadgentoo-fe5dc79e.tar.gz
gentoo-fe5dc79e.tar.bz2
gentoo-fe5dc79e.zip
media-video/vlc: Fixed compilation with qt5 (bug #574256).
Patch provided by Nick Andrade in bug #574064 Package-Manager: portage-2.2.27 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r--media-video/vlc/files/vlc-2.2.2-qt5widgets.patch13
-rw-r--r--media-video/vlc/vlc-2.2.2.ebuild3
2 files changed, 16 insertions, 0 deletions
diff --git a/media-video/vlc/files/vlc-2.2.2-qt5widgets.patch b/media-video/vlc/files/vlc-2.2.2-qt5widgets.patch
new file mode 100644
index 000000000000..a024d0032b6d
--- /dev/null
+++ b/media-video/vlc/files/vlc-2.2.2-qt5widgets.patch
@@ -0,0 +1,13 @@
+--- vlc-2.2.2/configure.ac
++++ vlc-2.2.2/configure.ac
+@@ -3754,10 +3754,6 @@
+ AC_MSG_WARN([Not building Qt Interface with X11 helpers.])
+ ])
+
+- PKG_CHECK_EXISTS([Qt5Core >= 5.5.0 Qt5Core < 5.6.0], [
+- AC_MSG_ERROR(["You cannot build VLC with Qt-5.5.0. You need to backport I78ef29975181ee22429c9bd4b11d96d9e68b7a9c"])
+- ])
+-
+ QT_PATH="$(eval $PKG_CONFIG --variable=exec_prefix Qt5Core)"
+ QT_HOST_PATH="$(eval $PKG_CONFIG --variable=host_bins Qt5Core)"
+ AC_PATH_PROGS(MOC, [moc-qt5 moc], moc, ["${QT_HOST_PATH}" "${QT_PATH}/bin" "${CONTRIB_DIR}/bin"])
diff --git a/media-video/vlc/vlc-2.2.2.ebuild b/media-video/vlc/vlc-2.2.2.ebuild
index e930d06f1a55..b263cf5f58cb 100644
--- a/media-video/vlc/vlc-2.2.2.ebuild
+++ b/media-video/vlc/vlc-2.2.2.ebuild
@@ -222,6 +222,9 @@ PATCHES=(
# Bug #541678
"${FILESDIR}"/qt4-select.patch
+
+ # Allow QT5.5 since Gentoo has a patched QTwidgets
+ "${FILESDIR}"/${PN}-2.2.2-qt5widgets.patch
)
S="${WORKDIR}/${MY_P}"