Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 694032 - x11-misc/bumblebee with x11-misc/primus and without x11-misc/virtualgl - /etc/init.d/bumblebee fails to start as /etc/init.d/vgl cannot be started
Summary: x11-misc/bumblebee with x11-misc/primus and without x11-misc/virtualgl - /etc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adam Feldman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-11 11:00 UTC by David Carlos Manuelda
Modified: 2020-09-19 17:48 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2019-09-11 11:00:23 UTC
When installing bumblebee having x11-misc/primus previously installed I realized the init.d script does not start as it requires the non existant service vgl.

This service is provided by x11-misc/virtualgl, however, once manually removing dependency from init.d file, bumblebee starts and optirun works as with virtualgl.

Looking at the ebuild the dependency is specified as:

PDEPEND="
	|| (
		x11-misc/primus
		x11-misc/virtualgl
	)
"

I am not sure which would be the best way to address this problem, but for sure a different init.d file is needed depending on which of those two dependencies were installed, probably a IUSE flag for virtualgl?
Comment 1 Pacho Ramos gentoo-dev 2020-06-04 20:27:35 UTC
is vgl init.d really needed? At least on systemd it works nice without needing to start vgl.service unit
Comment 2 David Carlos Manuelda 2020-06-04 20:28:42 UTC
(In reply to Pacho Ramos from comment #1)
> is vgl init.d really needed? At least on systemd it works nice without
> needing to start vgl.service unit

It is not if you use primus, but it is a hard dependency on init.d file, as the line says: need vgl, which is not installed in this scenario.

I manually removed that line and made it work.
Comment 3 Pacho Ramos gentoo-dev 2020-06-04 20:33:21 UTC
But I am not using primus, and Vgl is properly started by optirun when needed, that is the reason I wondered if it is really needed even not using primus
Comment 4 David Carlos Manuelda 2020-06-04 20:34:24 UTC
(In reply to Pacho Ramos from comment #3)
> But I am not using primus, and Vgl is properly started by optirun when
> needed, that is the reason I wondered if it is really needed even not using
> primus

That I don't know, only know that the init.d should not reference it when it is not enabled/used/installed.
Comment 5 Stefano 2020-09-19 16:33:56 UTC
(In reply to David Carlos Manuelda from comment #4)
> (In reply to Pacho Ramos from comment #3)
> > But I am not using primus, and Vgl is properly started by optirun when
> > needed, that is the reason I wondered if it is really needed even not using
> > primus
> 
> That I don't know, only know that the init.d should not reference it when it
> is not enabled/used/installed.

I agree, it causes all sorts of issues and crashes, and it's just not needed AFAICT
Comment 6 Pacho Ramos gentoo-dev 2020-09-19 17:48:47 UTC
I think Rick fixed this some hours ago
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a2c5cc6300432cfb106b74373fa5fe02941c24