summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-27 01:37:14 +0000
committerSam James <sam@gentoo.org>2021-03-27 02:57:37 +0000
commit0098ec8fad775917aeaeddc0fa4d2f7f2ad992e7 (patch)
tree92556f0cd9429332d6c7bcbe3ff36eb849db51f5 /media-libs/cogl
parentdev-cpp/libmcpp: (security) bump to 2.7.2_p5 (Debian) (diff)
downloadgentoo-0098ec8fad775917aeaeddc0fa4d2f7f2ad992e7.tar.gz
gentoo-0098ec8fad775917aeaeddc0fa4d2f7f2ad992e7.tar.bz2
gentoo-0098ec8fad775917aeaeddc0fa4d2f7f2ad992e7.zip
media-libs/cogl: fix build with slibtool
(Closing the NEEDED bug too which I filed in the past as I can't reproduce right now. Possibly fixed by this.) Thanks-to: orbea <orbea@riseup.net> Closes: https://bugs.gentoo.org/778041 Closes: https://bugs.gentoo.org/739644 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/cogl')
-rw-r--r--media-libs/cogl/cogl-1.22.8.ebuild8
-rw-r--r--media-libs/cogl/files/cogl-1.22.8-slibtool.patch26
2 files changed, 34 insertions, 0 deletions
diff --git a/media-libs/cogl/cogl-1.22.8.ebuild b/media-libs/cogl/cogl-1.22.8.ebuild
index 9396a6fa5d46..c2fb848a363e 100644
--- a/media-libs/cogl/cogl-1.22.8.ebuild
+++ b/media-libs/cogl/cogl-1.22.8.ebuild
@@ -3,6 +3,10 @@
EAPI=6
+# Temporarily needed for slibtool patch
+# It's upstreamed so should be able to drop in future
+# bug #778041
+GNOME2_EAUTORECONF="yes"
inherit gnome2 multilib
DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
@@ -57,6 +61,10 @@ DEPEND="${COMMON_DEPEND}
# For some reason GL3 conformance test all fails again...
RESTRICT="test"
+PATCHES=(
+ "${FILESDIR}"/${P}-slibtool.patch
+)
+
src_prepare() {
# Do not build examples
sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \
diff --git a/media-libs/cogl/files/cogl-1.22.8-slibtool.patch b/media-libs/cogl/files/cogl-1.22.8-slibtool.patch
new file mode 100644
index 000000000000..631ba13c5630
--- /dev/null
+++ b/media-libs/cogl/files/cogl-1.22.8-slibtool.patch
@@ -0,0 +1,26 @@
+https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/35
+https://bugs.gentoo.org/778041
+
+From 2bd3cbed45d633fb15625d58e6b7cb8721b0ba98 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Thu, 25 Mar 2021 07:17:20 -0700
+Subject: [PATCH] cogl-gles2: Fix undefined references.
+
+---
+ cogl-gles2/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cogl-gles2/Makefile.am b/cogl-gles2/Makefile.am
+index 72ec1eae..1328444e 100644
+--- a/cogl-gles2/Makefile.am
++++ b/cogl-gles2/Makefile.am
+@@ -17,6 +17,7 @@ endif
+ AM_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
+
+ libcogl_gles2_la_SOURCES = cogl-gles2-api.c
++libcogl_gles2_la_LIBADD = $(top_builddir)/cogl/libcogl.la
+ libcogl_gles2_la_LDFLAGS = \
+ -no-undefined \
+ -version-info @COGL_LT_CURRENT@:@COGL_LT_REVISION@:@COGL_LT_AGE@ \
+--
+GitLab