Deskbar-applet-2.16.0 fails to build when being built from an ssh connection with "checking for gnomeapplet module... X11 connection rejected because of wrong authentication.". Setting DISPLAY="" or emerging from a VT both work just fine.
Created attachment 101962 [details] r1 ebuild that applies the patch
Created attachment 101963 [details, diff] patch for configure.ac to unset DISPLAY This is a bug that should be fixed upstream. Regardless, I've attached a hack/patch that runs 'unset DISPLAY' before doing the python gnomeapplet checks. When python imports the gtk module (req'd by gnomeapplet) it won't see an X connection regardless, and thus does not try to connect to it. It doesn't matter, because the shell session doesn't need an X server to build a package :) This only will appear in very rare cases...for me, I had to ssh from one box to another, with -X, and then delete the .Xauthority file to mimic the behaviour as described. This will fix it for everyone. If anyone knows a bit more about python and can come up with a way to tell the importing of gtk to not try to connect to X, that'd be useful...else, I'll also file this upstream at bgo.
Fixed.
Closing as per dang's comment.