The ebuild author tried to address the "nethack" USE flag with use nethack && append-flags "-DNETHACK" though #define NETHACK is default anyways, resulting in screen being compiled with a config.h #define NETHACK though the corresponding USE flag is not set. use nethack && append-flags "-DNETHACK" || append-flags "-DNONETHACK" or use nethack || append-flags "-DNONETHACK" resolves the problem. See attached patch. Reproducible: Always Steps to Reproduce: 1. USE=-nethack emerge screen 2. touch ~/.nethackrc 3. screen -ls Actual Results: Your inventory: 9111.pts-0.nexus (Attached) 12057.pts-17.nexus (Attached) 2 Sockets in /var/run/screen/S-bigfoot. Expected Results: There are screens on: 9111.pts-0.nexus (Attached) 12057.pts-17.nexus (Attached) 2 Sockets in /var/run/screen/S-bigfoot.
Created attachment 41553 [details, diff] ebuild patch to 4.0.2-r1
Fixed in CVS. I did not bump the revision as this only affects a minority of users.