Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639314 - media-gfx/opencsg-1.4.2 : Project ERROR: Could not find feature opengles2.
Summary: media-gfx/opencsg-1.4.2 : Project ERROR: Could not find feature opengles2.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch, PullRequest
Depends on:
Blocks:
 
Reported: 2017-11-30 19:21 UTC by Toralf Förster
Modified: 2021-11-02 17:41 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.33 KB, text/plain)
2017-11-30 19:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,81.89 KB, text/plain)
2017-11-30 19:21 UTC, Toralf Förster
Details
environment (environment,51.38 KB, text/plain)
2017-11-30 19:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.13 KB, application/x-bzip)
2017-11-30 19:21 UTC, Toralf Förster
Details
media-gfx:opencsg-1.4.2:20171130-092541.log (media-gfx:opencsg-1.4.2:20171130-092541.log,1.95 KB, text/plain)
2017-11-30 19:21 UTC, Toralf Förster
Details
opencsg-1.4.2-r1.ebuild.diff (opencsg-1.4.2-r1.ebuild.diff,1.72 KB, text/plain)
2018-12-23 19:36 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-11-30 19:21:18 UTC
 * Running qmake ...
Info: creating stash file /var/tmp/portage/media-gfx/opencsg-1.4.2/work/OpenCSG-1.4.2/src/.qmake.stash
Project ERROR: Could not find feature opengles2.
 [ !! ]

 * Running qmake has failed! (see above for details)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-plasma-systemd_abi32+64_20171128-221102

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python3.5 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
  [2]   ruby24 (with Rubygems)
java-config:
The following VMs are available for generation-2:


emerge -qpv media-gfx/opencsg
[ebuild  N    ] media-gfx/opencsg-1.4.2
Comment 1 Toralf Förster gentoo-dev 2017-11-30 19:21:20 UTC
Created attachment 507350 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-11-30 19:21:23 UTC
Created attachment 507352 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-11-30 19:21:26 UTC
Created attachment 507354 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-11-30 19:21:29 UTC
Created attachment 507356 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-11-30 19:21:32 UTC
Created attachment 507358 [details]
media-gfx:opencsg-1.4.2:20171130-092541.log
Comment 6 Matthew Marlowe (RETIRED) gentoo-dev 2018-10-18 07:16:29 UTC
I'm the original dev that added opencsg to the tree to meet the requirements of other packages, and I'm willing to take over maintainership of opencsg again.

I'm just trying to figure out how to resolve this bug.  

Add build dep for either virtual/opengl (full opengl implementation) or mesa with gles2 use flag (minimal implementation)?  As far as I know, there isn't a virtual gles2 package ....
Comment 7 Matthew Marlowe (RETIRED) gentoo-dev 2018-10-22 09:25:43 UTC
Bumping to 1.4.2-r1 in an attempt to fix all open bugs with opencsg.  Temporary package mask during testing.  Minimal changes.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-10-30 11:34:28 UTC
I honestly doubt this being the correct solution.  I don't see any trace of 'gles' occurring anywhere in the package, so it's probably a transient breakage from something else.
Comment 9 Bernd 2018-11-25 22:08:28 UTC
The patch doesn't seem to work. The error just popped up in an attempt to install =media-gfx/openscad-9999 into a clean amd64 stage3 chroot.

* Package:    media-gfx/opencsg-1.4.2-r1
 * Repository: gentoo
 * Maintainer: mattm@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Applying opencsg-1.4.2-includepath.patch ...
 [ ok ]
 * Running qmake ...
Info: creating stash file /var/tmp/portage/media-gfx/opencsg-1.4.2-r1/work/OpenCSG-1.4.2/src/.qmake.stash
Project ERROR: Could not find feature opengles2.
 [ !! ]

 * Running qmake has failed! (see above for details)
Comment 10 Bernd 2018-12-23 19:30:52 UTC
I found, the issue is related to CONFIG += opengl in src/src.pro. Using -d switch to qmake revealst that this call /usr/lib64/qt5/mkspecs/features/unix/opengl.prf which in turn requires dev-qt/qtgui beside dev-qt/qtcore.
Adding this dependency solves the issue.
Comment 11 Bernd 2018-12-23 19:36:00 UTC
Created attachment 558424 [details]
opencsg-1.4.2-r1.ebuild.diff

diff between in-tree opencsg-1.4.2-r1 and my changes.

Note, that I added a few more things, beside the dev-qt/qtgui dependency. 

* The other dependency are shown by ldd /usr/lib64/libopencsg.so, so I decided to add them to the ebuild. Still need to verify, that mesa dependency isn't really needed.
* ${S} points to the core source directory, to allow installation of docs and a possible addition of an "example" USE flag. This would also need to add freeglut as a dependency.
* Add a doc USE flag to allow installation of html docs, additionally installing base docs.
Comment 12 Bernd 2018-12-23 19:52:49 UTC
Now confirmed, it does compile without having mesa[gles2] installed.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-27 14:11:37 UTC
@Bernd, would you be interested in taking this package over?  Also it seems that your diff is done the wrong way around.
Comment 14 Bernd 2019-10-28 08:26:48 UTC
Yes, I can take the package. I'm going to look at the diff and open up a PR for the fix.
Comment 15 Larry the Git Cow gentoo-dev 2020-04-05 19:47:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf12696b2f18ba3843984a54d3a1ec7ade416fbb

commit bf12696b2f18ba3843984a54d3a1ec7ade416fbb
Author:     Bernd Waibel <waebbl@gmail.com>
AuthorDate: 2019-11-03 15:04:24 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-04-05 19:47:14 +0000

    media-gfx/opencsg: fix build failure with GLES2
    
    Fix an issue where qmake isn't able to find opengles2 feature.
    Add myself as proxy-maintainer.
    
    Closes: https://bugs.gentoo.org/639314
    Reported-by: Toralf Förster <toralf@gentoo.org>
    Package-Manager: Portage-2.3.96-r1, Repoman-2.3.22
    Signed-off-by: Bernd Waibel <waebbl@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/13537
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../opencsg/files/opencsg-1.4.2-includepath.patch  |  4 +--
 media-gfx/opencsg/metadata.xml                     |  9 ++++-
 media-gfx/opencsg/opencsg-1.4.2-r1.ebuild          | 40 +++++++++++++++++-----
 3 files changed, 41 insertions(+), 12 deletions(-)