Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666394 - sci-libs/ViSP can not be emerged: 'ois' USE flag dropped on >=dev-games/ogre-1.10
Summary: sci-libs/ViSP can not be emerged: 'ois' USE flag dropped on >=dev-games/ogre-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Alexis Ballier
URL: https://bugs.gentoo.org/647266#c15
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-17 08:21 UTC by Sven Eden
Modified: 2018-09-23 09:27 UTC (History)
1 user (show)

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


Attachments
Update ViSP-3.0.1.ebuild (update_ViSP-3.0.1.ebuild.patch,652 bytes, patch)
2018-09-17 08:26 UTC, Sven Eden
Details | Diff
Update ViSP-3.1.0.ebuild (update_ViSP-3.1.0.ebuild.patch,652 bytes, patch)
2018-09-17 08:28 UTC, Sven Eden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Eden 2018-09-17 08:21:10 UTC
From dev-games/ogre-1.10.12 on, the 'ois' USE flag was dropped.
It makes little sense to use Ogre3D without it, and dev-games/ois is tiny (232 K total).

However, ViSP depends on ogre[ois] which makes sense for older ogre versions where this USE flag is still present.

But on later ogre the result of attempting to emerge/update ogre is:
--------
WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-games/ogre:0

  (dev-games/ogre-1.10.12:0/1.10.0::gentoo, ebuild scheduled for merge) conflicts with
    dev-games/ogre[ois] required by (sci-libs/ViSP-3.1.0:0/3.1::gentoo, installed)
                   ^^^ 
--------

Attached are two patches for the ViSP ebuilds, which:
 a) Fix EAPI to 6 and
 b) Handle the dev-games/ogre dependency.

Cheers

Sven
Comment 1 Sven Eden 2018-09-17 08:26:59 UTC
Created attachment 547072 [details, diff]
Update ViSP-3.0.1.ebuild

Update to EAPI 6, Drop 'ois' requirement on >=dev-games/ogre-1.10
Comment 2 Sven Eden 2018-09-17 08:28:10 UTC
Created attachment 547074 [details, diff]
Update ViSP-3.1.0.ebuild

Fix EAPI to 6 and drop 'ois' USE flag requirement on >=dev-games/ogre-1.10
Comment 3 Sven Eden 2018-09-17 11:44:39 UTC
After applying the fixes I was able to update ogre and ViSP.
Comment 4 Andreas Sturmlechner gentoo-dev 2018-09-21 19:11:56 UTC
Thanks for your fix, rather than a || () construct we can simply use [ois(+)] which will make portage assume that ois functionality is present if the USE flag is not present.
Comment 5 Andreas Sturmlechner gentoo-dev 2018-09-21 19:31:52 UTC
Bump to EAPI 6 would also require eliminating dohtml.
Comment 6 Larry the Git Cow gentoo-dev 2018-09-21 19:50:21 UTC
The bug has been closed via the following commit(s):

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

commit 06579d40944ed103a11553a682f449255305fc59
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-09-21 19:38:07 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-09-21 19:50:08 +0000

    sci-libs/ViSP: Drop old
    
    Closes: https://bugs.gentoo.org/666394
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 sci-libs/ViSP/ViSP-3.0.1.ebuild | 104 ----------------------------------------
 sci-libs/ViSP/ViSP-3.1.0.ebuild | 101 --------------------------------------
 sci-libs/ViSP/metadata.xml      |   1 -
 3 files changed, 206 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 888dbd3f58d7354ff5f37e5e28ebc3eecc2df349
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-09-21 19:37:27 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-09-21 19:50:08 +0000

    sci-libs/ViSP: Merge USE ois into ogre
    
    From dev-games/ogre-1.10.12 on, the 'ois' USE flag was dropped. It makes
    little sense to use Ogre3D without it, and dev-games/ois is tiny.
    
    Thanks-to: Sven Eden <yamakuzure@gmx.net>
    Bug: https://bugs.gentoo.org/666394
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 sci-libs/ViSP/ViSP-3.0.1-r1.ebuild | 103 +++++++++++++++++++++++++++++++++++++
 sci-libs/ViSP/ViSP-3.1.0-r1.ebuild |  98 +++++++++++++++++++++++++++++++++++
 2 files changed, 201 insertions(+)
Comment 7 Sven Eden 2018-09-23 09:27:01 UTC
(In reply to Andreas Sturmlechner from comment #4)
> Thanks for your fix, rather than a || () construct we can simply use
> [ois(+)] which will make portage assume that ois functionality is present if
> the USE flag is not present.

That's ingenious! I had looked up the dev manual pages about USE flags and dependencies, but must have missed that one.