Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254807 - app-admin/conky fails to compile with USE="nvidia -X"
Summary: app-admin/conky fails to compile with USE="nvidia -X"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-13 11:02 UTC by Jonas Fietz
Modified: 2009-07-11 11:06 UTC (History)
3 users (show)

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


Attachments
conky-1.7.1.1 build log (app-admin:conky-1.7.1.1:20090711-092517.log,10.42 KB, text/plain)
2009-07-11 09:48 UTC, Daniel Pielmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Fietz 2009-01-13 11:02:48 UTC
If you try to compile app-admin/conky with USE="nvidia -X" it fails with an "undeclared identifier"-error. 

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\"    -march=core2 -O2 -pipe -Wall -W -MT users.o -MD -MP -MF .deps/users.Tpo -c -o users.o users.c
conky.c: In function 'generate_text_internal':
conky.c:6317: error: 'display' undeclared (first use in this function)
conky.c:6317: error: (Each undeclared identifier is reported only once
conky.c:6317: error: for each function it appears in.)
make[2]: *** [conky.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/users.Tpo .deps/users.Po


Reproducible: Always

Steps to Reproduce:
1. Set the USE-Flags for conky to -X nvidia
2. try to compile
3. crash



Expected Results:  
the ebuild should not start compiling.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-14 15:13:38 UTC
USE=X should usually be set globally, i.e. you should set it for all packages or for none of them. For USE=nvidia things seem to be different, as the same USE flag serves different purposes for different packages...
Comment 2 Brenden Matthews 2009-03-16 05:27:16 UTC
Should be fixed with bug 262623
Comment 3 Daniel Pielmeier gentoo-dev 2009-07-11 09:48:29 UTC
Created attachment 197506 [details]
conky-1.7.1.1 build log

With conky-1.7.1.1 I have changed the logic so if you set USE -X the nvidia flag has no effect. Now when trying to compile conky without X support I get the error you can see in the attached build.log. Looks like there is no conky_no_x11.conf below the data dir. The conky_no_x11.conf has been added to conkys git on 2009-05-16. conky-1.7.1.1 has been released on 2009-06-10. Somehow that file did not make it into the tarball.
Comment 4 Daniel Pielmeier gentoo-dev 2009-07-11 11:06:43 UTC
Looks like this is already fixed upstream [1] so new versions should contain this file. To fix conky-1.7.1.1 i just used the conky_no_x11.conf from upstream git.

[1] http://git.omp.am/?p=conky.git;a=commitdiff;h=7cbc8dc13fe784c9523244166a21c2971a9fe78c