commit:     f0e7d3a13581b299286888b7c5080d18906a29c5
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 27 16:27:48 2016 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Aug 27 16:27:48 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0e7d3a1

media-libs/quarter: fix GL underlinking, bug #369967

Before the change shared library had undefined
glEnable() symbol. Easy to test as:
    $ LDFLAGS="-Wl,--no-undefined" emerge -1 quarter
    .libs/libQuarter_la-QuarterWidget.o: In function 
`SIM::Coin3D::Quarter::QuarterWidget::initializeGL()':
    QuarterWidget.cpp:(.text+0xac6): undefined reference to `glEnable'

Reported-by: Diego Elio Pettenò
Bug: https://bugs.gentoo.org/show_bug.cgi?id=369967

Package-Manager: portage-2.3.0

 media-libs/quarter/quarter-1.0.0-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/media-libs/quarter/quarter-1.0.0-r1.ebuild 
b/media-libs/quarter/quarter-1.0.0-r1.ebuild
index 4d863b3..e6e370a 100644
--- a/media-libs/quarter/quarter-1.0.0-r1.ebuild
+++ b/media-libs/quarter/quarter-1.0.0-r1.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit autotools-utils
+inherit autotools-utils flag-o-matic
 
 MY_P="${P/q/Q}"
 
@@ -23,6 +23,7 @@ RDEPEND="
        dev-qt/qtcore:4
        dev-qt/qtgui:4
        dev-qt/qtopengl:4
+       virtual/opengl
 "
 DEPEND="${RDEPEND}
        virtual/pkgconfig
@@ -38,6 +39,8 @@ PATCHES=(
 DOCS=(AUTHORS NEWS README)
 
 src_configure() {
+       append-libs -lGL #369967, library calls glEnable()
+
        local myeconfargs=(
                htmldir="${ROOT}usr/share/doc/${PF}/html"
                --enable-pkgconfig

Reply via email to