KDE doesn't compile if the ROOT is not "/". The reason is that everything is assumed to be under "/". Reproducible: Always Steps to Reproduce: 1. ROOT="/opt/" emerge kdebase 2. 3. Actual Results: Fails to find OpenSSL in /opt/usr and compile fails. Expected Results: Compile should succeed. The attached patch makes it possible to emerge kde in non "/" locations.
Created attachment 34620 [details, diff] use ${ROOT}usr instead of "/usr" for paths and make use of 'use' flags
Sorry for not responding for so long. However, dependent libraries should be installed in both "/" and "$ROOT" (if they are in DEPEND and RDEPEND), so I don't think this should be a problem, (and the code has changed a lot since then). Please reopen if you think it's still an issue.