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.
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...
Should be fixed with bug 262623
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.
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