sci-electronics/gazebo: fix build with openal 1.20
authorAlexis Ballier <aballier@gentoo.org>
Tue, 10 Dec 2019 14:48:22 +0000 (15:48 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 10 Dec 2019 17:34:45 +0000 (18:34 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
sci-electronics/gazebo/files/oal.patch [new file with mode: 0644]
sci-electronics/gazebo/gazebo-10.1.0.ebuild

diff --git a/sci-electronics/gazebo/files/oal.patch b/sci-electronics/gazebo/files/oal.patch
new file mode 100644 (file)
index 0000000..4a09793
--- /dev/null
@@ -0,0 +1,19 @@
+Fixes build with openal 1.20
+
+Index: gazebo-10.1.0/gazebo/util/OpenALPrivate.hh
+===================================================================
+--- gazebo-10.1.0.orig/gazebo/util/OpenALPrivate.hh
++++ gazebo-10.1.0/gazebo/util/OpenALPrivate.hh
+@@ -37,10 +37,10 @@ namespace gazebo
+     class OpenALPrivate
+     {
+       /// \brief OpenAL audio context pointer.
+-      public: ALCcontext_struct *context;
++      public: ALCcontext *context;
+       /// \brief OpenAL audio device pointer.
+-      public: ALCdevice_struct *audioDevice;
++      public: ALCdevice *audioDevice;
+       /// \brief OpenAL sink pointer.
+       public: OpenALSinkPtr sink;
index 2ba6f5bb35d414275212cfae53857a5b1e8fadc4..dbc0c2f89e3d1cee9636e045368f3b43811f78de 100644 (file)
@@ -58,7 +58,7 @@ DEPEND="${RDEPEND}
        test? ( dev-libs/libxslt )
 "
 CMAKE_BUILD_TYPE=RelWithDebInfo
-PATCHES=( "${FILESDIR}/qwt.patch" )
+PATCHES=( "${FILESDIR}/qwt.patch" "${FILESDIR}/oal.patch" )
 
 src_configure() {
        # doesnt build without it