Be aware that both cscope and make honor $SOURCEDIRS
Emerging media-sound/cdparanoia failed lately on my box when I was running "sudo emerge...". The error was that an archive file was missing. However, I didn't find any bug report related to that on bug.g.o. So, I decided to take a look myself. I found that if I emerged it using root user, then everything was ok. So, I suspected this might have something to do with my environment setting, coz I don't reset env for users in wheel group(so that I can "USE=... sudo emerge"). I ran ebuild unpack/install/compile/install separately using normal user and root to determine which stage caused the difference. Finally, I found the difference happened when "make"ing in the paranoia directory. An target called "lib" defines the rule to build that archive file. The lib is not a real file, however it is not labeled as PHONY. Apparently, the target is not run. But why? I straced make as normal user. I found something strange. The strange thing was mak