Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265804 - media-video/nvclock-0.8_beta4-r3: needs 'X' use flag
Summary: media-video/nvclock-0.8_beta4-r3: needs 'X' use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-11 20:01 UTC by Torbjörn Lönnemark
Modified: 2009-09-07 18:22 UTC (History)
0 users

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


Attachments
Proposed patch (nvclock-0.8_beta4-r3.ebuild.patch,835 bytes, patch)
2009-04-11 20:15 UTC, Torbjörn Lönnemark
Details | Diff
Proposed patch (nvclock-0.8_beta4-r3.ebuild.patch,821 bytes, patch)
2009-04-11 22:45 UTC, Torbjörn Lönnemark
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjörn Lönnemark 2009-04-11 20:01:54 UTC
Emerging nvclock fails on a system without X and with USE="-gtk -qt3". It happens because nvclock is configured with --enable-nvcontrol (the default), which requires x11.

Reproducible: Always

Steps to Reproduce:
1. Try to emerge nvclock on a system without X and with USE="-gtk -qt3"
2. Configure fails

Actual Results:  
[...]
checking for getopt.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking for x11... configure: error: "X11 required for nvcontrol support"


Expected Results:  
Package should install successfully.

The problem would be solved by adding a USE flag to the ebuild (named 'nvcontrol'), and making sure it depends on x11.
Comment 1 Torbjörn Lönnemark 2009-04-11 20:15:36 UTC
Created attachment 188014 [details, diff]
Proposed patch
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-11 22:33:43 UTC
I'd say the more appropriate USE flag for this would be "X" and not "nvcontrol".
Comment 3 Torbjörn Lönnemark 2009-04-11 22:45:17 UTC
Created attachment 188023 [details, diff]
Proposed patch
Comment 4 Torbjörn Lönnemark 2009-04-11 22:46:34 UTC
(In reply to comment #2)
> I'd say the more appropriate USE flag for this would be "X" and not
> "nvcontrol".
> 

Yes, that makes more sense now that I think about it. Patch updated accordingly.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-09-07 18:18:53 UTC
Comment on attachment 188023 [details, diff]
Proposed patch

We don't need another USE flag, or else what would happen when USE="X -gtk -qt3"? - It would still fail.

Rather, we need to make sure that when neither USE=qt3 or USE=gtk is set, we set --disable-nvcontrol. Also, depending on x11-base/xorg-x11 is overkill.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-09-07 18:22:17 UTC
Fixed in -r4. Please test and reopen this bug report if the fix is not satisfactory.