_want_update_pkg: fix bug #523532

This fixes depth increment to handle _UNREACHABLE_DEPTH. Note that there
are some remaining "depth > deep" and "depth + 1" expressions that are
protected by short-circuit evaluation (when deep is True).

Fixes: 336ab90212c8 ("depgraph._add_dep: fix bug #520950")
X-Gentoo-Bug: 523532
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=523532
emerge-webrsync: fix bug #523494

Use PATH instead of PORTAGE_BIN_PATH to locate emerge.

Fixes: 0cc4c1ac21a2 ("Install Portage using setup.py")
X-Gentoo-Bug: 523494
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=523494
Initial creation of a deprecated-path script

This script is for installed portage bin/ scripts that have been moved from their original installed path.
It will search the PATH for the script called and run it from there.
emerge: --autounmask-write if --ask (bug 481578)

Signed-off-by: Alexander Berntsen <bernalex@gentoo.org>
Offer to read news while calcing deps (bug 517310)

Signed-off-by: Alexander Berntsen <bernalex@gentoo.org>
setup.py: fix import line
setup.py: Move sbin scripts in bin/

Remove unused *_sbin classes
Prevent the deprecated-path script from being installed with other PORTAGE_BIN_PATH scripts.
Update the version for testing the new ebuild generated deprecated-path symlinks, bugfixes.
Re-apply "Rewrite default ebuild phase setting code" (bug 523182)"

Add empty default src_prepare() as required by PMS
Add missing bind for pkg_nofetch. Spotted-by: Zac Medico <zmedico@gentoo.org>

X-Gento-Bug: 523182
X-Gentoo-URL: https://bugs.gentoo.org/show_bug.cgi?id=523182
Merged 3 pathces by: Brian Dolbec <dolsen@gentoo.org>
Split install_qa_check() into install-qa-check.d scripts

Convert the horrendous install_qa_check() function into a plug-in system
that calls separate QA checking scripts from install-qa-check.d.
Run install-qa-check.d scripts from repositories

---
(following the remaster of install_qa_check())
Allow inheriting utility eclasses in QA checks

Allow inheriting utility eclasses for use in QA checks. The eclasses can
be used e.g. to obtain paths or other data needed for the check.
However, the eclasses must not export phases or set ebuild metadata.
Update gcc warning checks to work with colored output

Use -W indicators whenever possible, or more flexible regular
expressions so that our checks correctly match output with
-fdiagnostics-color. Also, enable a few extra warnings with some
of the currently used -W flags.

Based on the patch from Ryan Hill <rhill@gentoo.org>.
Use a single grep call for gcc warning checks

Use a single grep call with all gcc warning checks combined rather than
calling grep separately for each message being checked. Aside to being
faster, this also avoids outputting warnings in separate blocks.
create_trees: whitelist PORTAGE_DEPCACHEDIR

This fixes PORTAGE_DEPCACHEDIR to work for ROOT=/ when working with a
different target ROOT.
Support unprivileged mode for bug #433453.

This takes the existing unprivileged prefix support and enables it to
work when EPREFIX is empty. This "unprivileged" is automatically
enabled if the current user is not root, but has write access to the
EROOT directory (not due to the 0002 bit). For use in conditional logic
(for example, see fowners diff), "unprivileged" is automatically added
to the FEATURES variable.

X-Gentoo-Bug: 433453
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=433453