merged from master
authorFabian Groffen <grobian@gentoo.org>
Fri, 26 Mar 2010 08:28:22 +0000 (09:28 +0100)
committerFabian Groffen <grobian@gentoo.org>
Fri, 26 Mar 2010 08:28:22 +0000 (09:28 +0100)
109 files changed:
1  2 
bin/archive-conf
bin/banned-helper
bin/clean_locks
bin/dispatch-conf
bin/dohtml.py
bin/ebuild
bin/ebuild-helpers/4/dodoc
bin/ebuild-helpers/die
bin/ebuild-helpers/dobin
bin/ebuild-helpers/doconfd
bin/ebuild-helpers/dodir
bin/ebuild-helpers/dodoc
bin/ebuild-helpers/doenvd
bin/ebuild-helpers/doexe
bin/ebuild-helpers/dohard
bin/ebuild-helpers/dohtml
bin/ebuild-helpers/doinfo
bin/ebuild-helpers/doinitd
bin/ebuild-helpers/doins
bin/ebuild-helpers/dolib
bin/ebuild-helpers/dolib.a
bin/ebuild-helpers/dolib.so
bin/ebuild-helpers/doman
bin/ebuild-helpers/domo
bin/ebuild-helpers/dosbin
bin/ebuild-helpers/dosed
bin/ebuild-helpers/dosym
bin/ebuild-helpers/ecompress
bin/ebuild-helpers/ecompressdir
bin/ebuild-helpers/elog
bin/ebuild-helpers/emake
bin/ebuild-helpers/fowners
bin/ebuild-helpers/fperms
bin/ebuild-helpers/newbin
bin/ebuild-helpers/newconfd
bin/ebuild-helpers/newdoc
bin/ebuild-helpers/newenvd
bin/ebuild-helpers/newexe
bin/ebuild-helpers/newinitd
bin/ebuild-helpers/newins
bin/ebuild-helpers/newlib.a
bin/ebuild-helpers/newlib.so
bin/ebuild-helpers/newman
bin/ebuild-helpers/newsbin
bin/ebuild-helpers/portageq
bin/ebuild-helpers/prepall
bin/ebuild-helpers/prepalldocs
bin/ebuild-helpers/prepallinfo
bin/ebuild-helpers/prepallman
bin/ebuild-helpers/prepallstrip
bin/ebuild-helpers/prepinfo
bin/ebuild-helpers/preplib
bin/ebuild-helpers/prepman
bin/ebuild-helpers/prepstrip
bin/ebuild-helpers/sed
bin/ebuild.sh
bin/egencache
bin/emerge
bin/emerge-webrsync
bin/env-update
bin/etc-update
bin/filter-bash-environment.py
bin/fixpackages
bin/glsa-check
bin/isolated-functions.sh
bin/misc-functions.sh
bin/portageq
bin/quickpkg
bin/regenworld
bin/repoman
bin/xpak-helper.py
cnf/make.conf
cnf/make.globals
pym/_emerge/AtomArg.py
pym/_emerge/Binpkg.py
pym/_emerge/BinpkgExtractorAsync.py
pym/_emerge/Blocker.py
pym/_emerge/EbuildBuild.py
pym/_emerge/EbuildBuildDir.py
pym/_emerge/EbuildFetcher.py
pym/_emerge/Package.py
pym/_emerge/RepoDisplay.py
pym/_emerge/actions.py
pym/_emerge/depgraph.py
pym/_emerge/emergelog.py
pym/_emerge/main.py
pym/portage/__init__.py
pym/portage/_deprecated.py
pym/portage/_global_updates.py
pym/portage/_legacy_globals.py
pym/portage/const.py
pym/portage/data.py
pym/portage/dbapi/bintree.py
pym/portage/dbapi/vartree.py
pym/portage/dispatch_conf.py
pym/portage/elog/mod_save.py
pym/portage/elog/mod_save_summary.py
pym/portage/getbinpkg.py
pym/portage/output.py
pym/portage/package/ebuild/config.py
pym/portage/package/ebuild/doebuild.py
pym/portage/package/ebuild/fetch.py
pym/portage/package/ebuild/prepare_build_dirs.py
pym/portage/sets/files.py
pym/portage/sets/profiles.py
pym/portage/tests/runTests
pym/portage/util/__init__.py
pym/portage/util/env_update.py
pym/portage/versions.py

index 62d4f5c4bb4b68efb9719f6b1ae009e2233e8278,97c055df1e7f9de0ce6fa5a3d20aaa0cf7b8f201..b34106bbce3f17e80e62a9449df9048d290b1d49
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  #
  # archive-conf -- save off a config file in the dispatch-conf archive dir
index 80faa1b9eefe6b910a7100992646ca77438c725d,17ea9915d49f5ba4f9f28aac313a8e1ca27cb461..c3242e30a2027ae83bb48dc0b10406e950b80e79
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  die "'${0##*/}' has been banned for EAPI '$EAPI'"
  exit 1
diff --cc bin/clean_locks
index da5d099dce4b4bc6ddc9f64fedbad25b153c6d61,8c4299c925eaec4343c46153ce84f15752c99cb5..23a5485984e87e317db58d74be2adcbc75d93b2a
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python -O
 +#!@PORTAGE_PYTHON@ -O
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
index 5a72b9db747ad60a47f7a9048850e8758192048f,43fe145ae82df5c058b215171b69fd746db0a145..63c898b87162a666c51c5f5db5d37ba55a0f9578
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python -O
 +#!@PORTAGE_PYTHON@ -O
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  #
  # dispatch-conf -- Integrate modified configs, post-emerge
diff --cc bin/dohtml.py
index 3224dbbca2cc1a7210c554dbbdbc7788177d9aa5,00258ec9e22b942863c2012285a11eb46fa27ce7..b93cf84c8319e88df7bbbcae5f7f6f6973aac7d9
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  #
  # Typical usage:
diff --cc bin/ebuild
index 30f75f246bfef3ce2ac8cc74070ac0b5e1d6a1a0,3eaea9432fd4efabe707b65df9c3de4d5808cee2..5f6977fedc499d062276a1abc206142455ef8e5c
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python -O
 +#!@PORTAGE_PYTHON@ -O
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
index 66d9a4367a6451087577c46bbc9264230cbd242d,0539de11072bd57ae65e8f30e0e8ac14481fe40b..0639b3989c424d6151e9e317480b28e401ed04ef
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [ $# -lt 1 ] ; then
        vecho "${0##*/}: at least one argument needed" 1>&2
index 51d2ef1a2b7a3d0a70071b96c74c940419578f52,7e94bc7211c3558de31823fcf6fd90dc931ff46b..da703a066bf85c590d4ddef44896712acaef281a
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  # TODO: Eliminate race condition in signal delivery by using pipe or socket
  # IPC to guarantee that the ebuild process and all of its children (including
index 54b0e1a6260cec06853f1beccacd436e861617c2,821ce07c36c7c43e2d89aeae0e0d1c73e53bd1c1..1bae1b5cb9b9cfbdf126bd42d6d44afa8fe5e9b1
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ $# -lt 1 ]] ; then
        vecho "$0: at least one argument needed" 1>&2
index 683bef29c3657f313a0c7eab52862a5f4c62f3cc,718c21ecefef1348de699f67beecf901470e5481..ed2e8eca987a49fb8008ed28b26916dfc5818323
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ $# -lt 1 ]] ; then
        echo "$0: at least one argument needed" 1>&2
index 62547090cb0c6b780f900569592c4f63862fd334,50e10f45ac9e2462fc8df8876312a185a669f137..d2747be526b0be6e8b24f43595b59b0d53a963be
@@@ -1,6 -1,5 +1,5 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -exec install -d ${DIROPTIONS} "${@/#/${D}/}"
 +exec install -d ${DIROPTIONS} "${@/#/${ED}/}"
index 0aff8a75f5ed2ebc803af0d188f1d5638e9e9960,796e96c65ec5e88ab4bd8420d523c4e58579d501..6536fd405552709d063e19b5f17f21d616862dc2
@@@ -1,10 -1,9 +1,9 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [ $# -lt 1 ] ; then
 -      source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +      source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
        vecho "${0##*/}: at least one argument needed" 1>&2
        exit 1  
  fi
index 920681ea23f6b83aa50ff0f41068d3e52b72cc7f,cfc70e2a543d51e8ec0cbc03672d8caff142e6ff..a56cda2d6cebde449c43583ed5c3a1a3e0cbd0ad
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ $# -lt 1 ]] ; then
        echo "$0: at least one argument needed" 1>&2
index a99653dd10dc8c017fd13d1a0d455e366efb0ffd,fb1c5668bbeff0b7071831a7cc351de3254a5f3d..8917fc4a33a48a81c37aacbf105628a56d6392d4
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ $# -lt 1 ]] ; then
        echo "$0: at least one argument needed" 1>&2
index 33813c7e9c861e769d19526433b0db986351a1d6,22704876ce1f897cec3d1f5c961e17e0f0e91fd2..c7c568ce254ab673ed2bb8ae70c13db816e9e7c1
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ $# -ne 2 ]] ; then
        echo "$0: two arguments needed" 1>&2
index 572b1d7dc6dfa2f805f1b2611826c8e14500c12f,cfcab2af026f707e2c25426e03ce2eaa4fd58806..21535cefb9865fe46510efab7aff01944d61670b
@@@ -1,10 -1,9 +1,9 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -PORTAGE_BIN_PATH=${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}
 -PORTAGE_PYM_PATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
 +PORTAGE_BIN_PATH=${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}
 +PORTAGE_PYM_PATH=${PORTAGE_PYM_PATH:-@PORTAGE_BASE@/pym}
  # Set EPYTHON variable as empty so that dohtml doesn't try
  # to use potentially unsupported version of Python.
  EPYTHON= PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
index a00885c0cd9df5acb38558640353dc6c30a03939,1aaf7fe4c16634395f3288beefd41bb7d0f8bc63..bae3e195a1d7faf744f19b506fd7546d47ce232a
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z $1 ]] ; then
        vecho "${0##*/}: at least one argument needed"
index 527874dae2cac019cc4c5b3ede55c9711c794785,56c8396c834f6f009c92607f071c53e7e94884da..f8edd1efe0c1c4df36061e9b8ceb10cbdb625844
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ $# -lt 1 ]] ; then
        echo "$0: at least one argument needed" 1>&2
index c5ac50dfa37fe2958bbaf4df47f89a89d358a6d7,64d2af23cf08f8add70e1b022fbc434d6d88eabb..6030eb4c988361be88dfb759d1077b93c2f2abff
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [ $# -lt 1 ] ; then
        echo "${0##*/}: at least one argument needed" 1>&2
index 7c4e03186465580319067fad9f18c8a5e6156dfe,794fdb64fa6cc390e9920f0e4b674141b9f93443..89047ab6f1a290fb26295b96479fb3f66fb2f13d
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  # Setup ABI cruft
  LIBDIR_VAR="LIBDIR_${ABI}"
index f65f9423f28b6cf792d211ef62e11deb4d330bfb,d2279dc9e074cf1b95bda9b1e2020f3a7681c35d..a7843ea3faf5d4a16a20d6d361ee4cee40d413b3
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  exec env LIBOPTIONS="-m0644" \
        dolib "$@"
index 0732ca5d3ee4dd8659315db75b76a061b179ce1b,4bdbfabba08b9af3ffc8df68ba6d1d7141d09857..d37f40038bf479866789b0639a8620eb0e950c4e
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  exec env LIBOPTIONS="-m0755" \
        dolib "$@"
index e07bfa77a05c051d11857dd83c44084bbdfe637b,85d5e2b4f3b80e63b79698ba3824f7261e6be39e..cc9563340da4b1f34594eb4bb5d81d14ad2f1f03
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ $# -lt 1 ]] ; then
        echo "$0: at least one argument needed" 1>&2
index 8c8faf0fe6836c1afaa4789b57b8b1c8270f85de,5a1e808e71f9698fc5d6b3c47779f235dda8bd9e..37cf1401bf44cfb96c970c5b08d992122e05f049
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  mynum=${#}
  if [ ${mynum} -lt 1 ] ; then
index a02a7fba4cf284314bdc2372ffe4e4bc0f6f6764,8920d37e8418ffc4cff16dd2287af71dc2fbe998..6f40fa406b827b66d5db2318ef1247802480b49b
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ $# -lt 1 ]] ; then
        echo "$0: at least one argument needed" 1>&2
index 63774be433c073b8cb17bf0e8e5ca43b94d1aa45,afc949ba53b4fb48935acefad7e41ab76463197e..40cf39a05c1f126856451b9f07df58018b484b06
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ $# -lt 1 ]] ; then
        echo "!!! ${0##*/}: at least one argument needed" >&2
index 32043d24751f9ea660a1733da089738069fbca45,52defbe8579910f81f47b4e5f13438ae39bef6ba..0a138a4904acd7ee81e14814666eec613affe2c7
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ $# -ne 2 ]] ; then
        echo "$0: two arguments needed" 1>&2
index d6e3519d08640a3a7b031bef8f88723847476ed0,c6817ec3a02f91a10d54227ad40f89c17ecd5ba0..87999c3c2b2c48aa850337cc2cb2d2cd80eb8ce4
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ -z $1 ]] ; then
        vecho "${0##*/}: at least one argument needed" 1>&2
index 301a68fb0a642aef0f31f724586d0d2c03dbb68d,5d7fdf04ba413734c8683f3a7ab2851b03d200c8..ffb60281b73e2ae728cd1ae2a5621ba0e45e8ec5
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ -z $1 ]] ; then
        vecho "${0##*/}: at least one argument needed" 1>&2
index 628861579655ca727d7b8613516135a3cf271817,a2303afab93d993f4beb36cb0598e25376c2464c..3b3d5f618a2d4405e0b76419cac5e05061549958
@@@ -1,8 -1,7 +1,7 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  ${0##*/} "$@"
index 450f7e14815556c685540a23c261d067bf88c05e,97ea13660d8db9d3947b817920f371cf2c4b0f42..d302091c1db4e11bc7917356d869f580f50a3484
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  #
  # emake: Supplies some default parameters to GNU make. At the moment the
  #        only parameter supplied is -jN, where N is a number of
index d71e62a8bd29d225fd103e738ba426970810d4bd,1097296da25994407679992b6c00b44bff0dff75..99be171a16d5dd96d1ea95f128783a2e1d484136
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  # we can't prefix all arguments because
  # chown takes random options
index 88782d17382c72f7c4fad9f1bea26ed9aeacb614,6c236ab687fbf331d970fc1a6a6be2f25473ba15..0450af12808510cf83e13067e76a370b59d0ea9d
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  # we can't prefix all arguments because
  # chmod takes random options
index 925229329c2a0e078bc91b042df7288420817a86,fb2752a1027511d1555090dc9f9170c78947f773..f9600f4914c07ba68dcf85041e6bb7f661df295e
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 877ddfdc18d03e92dcc5a4820fe9da7d7ab9edd8,94497d18d047bd1bc3310f748de74fa25ce99829..bc485e46e7e0f662e60bcb5274a829332cca525f
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 82e8c5ca83dce82f26016beb099aad2b48feb200,1bc6a05f81c8bf2d7e2f6145a07aa9e765414f55..4705be614321e805e368c47324efc2ac6b822ece
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 5628cc7d22392db61614d9a3e6b550d28f1326f3,06b44050a9ed38e8b6206ef4c62f41fb17f4904b..4c873e995d6659cdb14afa924911f298fe4ce998
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 007bcdaa836c96c7218a8196983eade88006b07e,63dff5002631d8392444554f87ba6f93bcb06701..ee878427a2fe78d6ab26696bd16198da74afa2a0
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 9f5ed7296e10e9a4a2ba59df8a1bd657f0f2b122,e74a6aaf62f90d9f8a98f1503a0db0f74221cef3..2f8f14b4fdae6571ec32f5663efd66e2fcfde29a
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index d1756df959275093380f8a3deadcfc1813aab232,1e11b432e4113ae48e117d5ba6b36268653ba81c..19ffbd73bbaa5960de8184f70253aa8fbdc720bc
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index b84dc1295b9cd722ef744315c5c3275385bc6910,120e8a25758801b2edba5ee038c705067a2770ba..f3de697c9d1cb78c592f9f2a3e0eed45e5a5765b
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 649f188952d66fd58e4261d01dca568fa14fa74a,2fbe59a1fafc8b910883a9e4601b10290ee45241..fad4efab3d026651900ce06adc8c88bde80a3954
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 32e4486b4891fd0c755f89baa161894e4263ad49,758112c3df2b5d0ba0125e5262a2d302e81e4e01..7a586dbd77f017b1cba9c43bb1fcd772787bfba6
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 8240edf8a50ab4d127c291b1cc1cff1c9fa5209a,bf1fbc8e696c8ccbedac17caa2048c13c66a3580..c2d14d3f57a70484594074ba68d1e6b7b266d386
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
        echo "$0: Need two arguments, old file and new file" 1>&2
index 6dc5d7a7d9b3a3070a6da602d958cacbf21d31fb,d1a1fb52ba566486615fd7124f6ea7f970b706f6..575390091e59984e1cd9aa31e8427d252d9746a2
@@@ -1,10 -1,9 +1,9 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -PORTAGE_BIN_PATH=${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}
 -PORTAGE_PYM_PATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
 +PORTAGE_BIN_PATH=${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}
 +PORTAGE_PYM_PATH=${PORTAGE_PYM_PATH:-@PORTAGE_BASE@/pym}
  # Set EPYTHON variable as empty so that dohtml doesn't try
  # to use potentially unsupported version of Python.
  EPYTHON= PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
index 84e41f2139de77ea99823bc5a7d33caedb6805ee,19db415524dc781baa395507dad1bc70e44756e7..bc3362e5c43b8b4a2a1d22e7dd823cd8a228760a
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if hasq chflags $FEATURES ; then
        # Save all the file flags for restoration at the end of prepall.
index 3c0abbc5aa34e9f50fdf1fba789f652b395c37d3,6705f5e791ccd50d32c2d41ade005d5e07e2bb1b..4dda218b0f908d9be5c66d621aeb1f403543bfdd
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ -n $1 ]] ; then
        vecho "${0##*/}: invalid usage; takes no arguments" 1>&2
index 6bd2f619f5a01f2c4c6f90b6d89fa2f4e50dbe11,0d978034b24d086a3b76509f27a225ac292f2fd3..249e897a21f1a507e61b1f978a7425457c8d6a44
@@@ -1,8 -1,9 +1,7 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 -
 -[[ ! -d ${D}usr/share/info ]] && exit 0
 +[[ ! -d ${ED}usr/share/info ]] && exit 0
  
  exec prepinfo
index b201115e050164bc1806f9238baadd47b39cff80,f41bcb81677116068b23e6fe91718bfa85a5c9e1..ea0485bf35bc7166ec4d9368c5228006e7ed6273
@@@ -1,15 -1,14 +1,14 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 -
  ret=0
  
 -find "${D}" -type d -name man > "${T}"/prepallman.filelist
 +[[ -d ${ED} ]] || exit ${ret}
 +
 +find "${ED}" -type d -name man > "${T}"/prepallman.filelist
  while read mandir ; do
 -      mandir=${mandir#${D}}
 +      mandir=${mandir#${ED}}
        prepman "${mandir%/man}"
        ((ret|=$?))
  done < "${T}"/prepallman.filelist
index 6787f7a7df62b3b6f3bfd171d688871583ce9d86,ec12ce663197ff1938c47589d1b233ed402a58d8..18ce4cc3c14cf927dbee078df407394f586e0f55
@@@ -1,6 -1,5 +1,5 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -exec prepstrip "${D}"
 +exec prepstrip "${ED}"
index f294a3c601c972139c789fb402d5a19f0c2375f9,1d8c7d1f0311e120877303fbebe5444477b9e7a0..d372c1bb8f4670b1d155c97ff128b17a805208bf
@@@ -1,17 -1,16 +1,16 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ -z $1 ]] ; then
 -      infodir="/usr/share/info"
 +      infodir="${EPREFIX}/usr/share/info"
  else
 -      if [[ -d ${D}$1/share/info ]] ; then
 -              infodir="$1/share/info"
 +      if [[ -d ${ED}$1/share/info ]] ; then
 +              infodir="${EPREFIX}$1/share/info"
        else
 -              infodir="$1/info"
 +              infodir="${EPREFIX}$1/info"
        fi
  fi
  
index b22efe74d7600bfc47d9ad7d447964705d5f8e4a,76aabe64c098f0496bf5d34bfbba49355be507ca..8b9e04d48b4ae90867baea313aa1c0fc8dd02dba
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  eqawarn "QA Notice: Deprecated call to 'preplib'"
  
index ced966240b895993e5c2a1bab8b692117b0d8bcf,cfbcdd41a8da3a32eafa6c14905b32b15da72e0c..78f91012b6e2241fc6e1a4f8a455d3ae70070646
@@@ -1,14 -1,13 +1,13 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  if [[ -z $1 ]] ; then 
 -      mandir="${D}usr/share/man"
 +      mandir="${ED}usr/share/man"
  else
 -      mandir="${D}$1/man"
 +      mandir="${ED}$1/man"
  fi
  
  if [[ ! -d ${mandir} ]] ; then
index 84095f43467928dadbf9b490e7afcd0e782e35aa,2bd5bb10290e92e712525fe5a0d1bf80b9f70001..959a085f4a19135f4fd04e5304bb8d4c25f6ae42
@@@ -1,9 -1,8 +1,8 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
 +source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
  
  banner=false
  SKIP_STRIP=false
index 72b2182826da11c8df1078822cf0dde7da1bfeb0,b21e8569c7eba2017166274434db6efb7b9dc1f4..8c979e92f84001a4e31b0feaaefcdce03d7fe0ac
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  scriptpath=${BASH_SOURCE[0]}
  scriptname=${scriptpath##*/}
diff --cc bin/ebuild.sh
index 3e127ac3a7a3d711d7185858eba7042bdf30f7cc,57ceb28486bb87e0ae3066d8bbc1f691b1cfac3d..5e7e9eb77498d0c0d027f59e09fb0772758b58e6
@@@ -1,10 -1,9 +1,9 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -PORTAGE_BIN_PATH="${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"
 -PORTAGE_PYM_PATH="${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}"
 +PORTAGE_BIN_PATH="${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"
 +PORTAGE_PYM_PATH="${PORTAGE_PYM_PATH:-@PORTAGE_BASE@/pym}"
  
  # Don't use sandbox's BASH_ENV for new shells because it does
  # 'source /etc/profile' which can interfere with the build
diff --cc bin/egencache
index 1385044e4ec1d2f2d8bafba65172be37e0022a39,0766d99cb692545a9a55705a345c261357cbbb84..a89445228a111202fcff001164f17fb99e42e3d4
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
diff --cc bin/emerge
index 5321a9440d26b24dc46c3b64a790da504d3b37d6,5d74bfa00d760dd4be8f3c7638dc9336daa980ab..eaf6fc6af2df91bd5ceeddd37d2dff742cccf211
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 2006-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
index cb28cc988484e20a3d0c45f47f74a65982545d46,9b2fcbb95d050759f05940997b50a747595b4fb5..20681a8f6c7986cfd49397bc016720518381541d
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2008 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  # Author: Karl Trygve Kalleberg <karltk@gentoo.org>
  # Rewritten from the old, Perl-based emerge-webrsync script
  # Author: Alon Bar-Lev <alon.barlev@gmail.com>
diff --cc bin/env-update
index 73bb2b39ed466d2b2d2b9c9e248ecc5336608d38,8a69f2bb2c8186e7b1a3af3135e4f572bee1ef33..7455c51077ac9343e83bd8acfb679cf8e39efec9
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python -O
 +#!@PORTAGE_PYTHON@ -O
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
diff --cc bin/etc-update
index d927accfb721e8e10cb9a1b8a3adee29de83de0b,e282a307c5ffa2d9c75bf12075283916848b151a..660bc03253903d1e4b352255ce8e51f2154e5502
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  # Author Brandon Low <lostlogic@gentoo.org>
  #
index 012756cb1727155d9498e7284e4ffb49f44aa416,53f395eadafff349eaba288122fabdd62abf2981..58a77843355a5d9fa96985b3d050a4d66ec88190
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  import codecs
  import os, re, sys
diff --cc bin/fixpackages
index 391102e2cb02a0ef64398c8bc7738026d1a40c47,5e1df704503f5119cd689aaf083a333111edbf3f..396f3aa97ed19790aa07a64249ec8f8b29185eaa
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
diff --cc bin/glsa-check
index dcc635b47079526b890f0dee4c471df82f7da1c9,d8745b062938d8fa60616f5d93c35a87b7dc9d86..8892a852d8b03cd06bdf2e5bede10841f3062bb1
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 2008-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
index d951c74b7fd571ae9a9d5207ccf21c04303a072f,e7d0d4ee997109c6cb7be70cd4aedc2b28f325ee..878fc7b7c7942c03d7512ac058dbf12dcd966bed
mode 100755,100644..100644
index 9ce59aac083838f514ec1543ae7e767d227269eb,39d8ca3dcb224662fb20c5e7313861bfedd574f9..ba2df1b4dcfc4c47d48285674c135b18bff151df
mode 100644,100755..100644
@@@ -1,7 -1,6 +1,6 @@@
 -#!/bin/bash
 +#!@PORTAGE_BASH@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  #
  # Miscellaneous shell functions that make use of the ebuild env but don't need
  # to be included directly in ebuild.sh.
diff --cc bin/portageq
index 4efefe51df6d33cb622c5451748aab940300dcdc,5a4364fe8c2d8aea93a05cd02a0bb50c4da9eaf1..3bbffcd3aa100ac62c19818b49d7a8d280c34bb6
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python -O
 +#!@PORTAGE_PYTHON@ -O
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
diff --cc bin/quickpkg
index 208a88aefb83706b6afaad09659ff6cc76d98d5a,0dfaa55fd6cd2cd998cb69c9f0ceceeb4701c3d0..4d8b5bfb8e9d34fece28fe793b0bc487f5b44f73
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 1999-2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from __future__ import print_function
  
diff --cc bin/regenworld
index dffdcc1f0ec57bd617e7f41473a562eab3833a68,12692daf49cfdab25f52e768341b404f3f9b202e..03815858a216079caae484c0b1bbba1f35ec1af4
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  # NOTE: this file does not respect ROOT
  
diff --cc bin/repoman
index b43f902970f0d0c8331a5427467be2cc70f7d189,ffc4c948bbea6c7f521258c8e8a7af99c0c911e6..813a812a1b18125a9b94d3d3b85be333f4088ebd
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python -O
 +#!@PORTAGE_PYTHON@ -O
  # Copyright 1999-2006 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  # Next to do: dep syntax checking in mask files
  # Then, check to make sure deps are satisfiable (to avoid "can't find match for" problems)
index a9b24a62d0ac9f5c4720bed0393a13ed8d6be285,4766d990dfed9e9b7ee32b51c3430b726727de29..43ed18b01d9c53886d88b48259da55d0ba3e14d7
@@@ -1,7 -1,6 +1,6 @@@
 -#!/usr/bin/python
 +#!@PORTAGE_PYTHON@
  # Copyright 2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  import optparse
  import sys
diff --cc cnf/make.conf
Simple merge
Simple merge
index 71cc22273a7aabda9a50768d0ceb119a2e162634,244ea28e742229a90eb5f1531227c564a1404083..d9485d7fb61591a8c72b2708b6c94e0d4a7b9f0a
@@@ -1,18 -1,14 +1,17 @@@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from _emerge.DependencyArg import DependencyArg
 -try:
 -      import portage
 -except ImportError:
 -      from os import path as osp
 -      import sys
 -      sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
 -      import portage
 +
 +# for an explanation on this logic, see pym/_emerge/__init__.py
 +import os
 +import sys
 +if os.environ.__contains__("PORTAGE_PYTHONPATH"):
 +      sys.path.insert(0, os.environ["PORTAGE_PYTHONPATH"])
 +else:
 +      sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "pym"))
 +import portage
 +
  class AtomArg(DependencyArg):
        def __init__(self, atom=None, **kwargs):
                DependencyArg.__init__(self, **kwargs)
Simple merge
index 45af54136be44b610273b59c3bb89314f3782ba1,a4941fccf06ce470f302a034aaeb4d7dede59a5b..510c465369e7886ab6747d1838830baf185a1305
@@@ -1,16 -1,9 +1,15 @@@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from _emerge.SpawnProcess import SpawnProcess
 -import portage
 +# for an explanation on this logic, see pym/_emerge/__init__.py
  import os
 +import sys
 +if os.environ.__contains__("PORTAGE_PYTHONPATH"):
 +      sys.path.insert(0, os.environ["PORTAGE_PYTHONPATH"])
 +else:
 +      sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "pym"))
 +import portage
  
  class BinpkgExtractorAsync(SpawnProcess):
  
index c9815d71a14331a7675c81549ba23b07b674f8da,04b6bb1d489f28f14e8b67a1b2bb4a157f99c538..0cdc3e6b3e20e3324074daf957f83e7ee5d3209c
@@@ -1,16 -1,14 +1,15 @@@
  # Copyright 1999-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  from _emerge.Task import Task
 -try:
 -      import portage
 -except ImportError:
 -      from os import path as osp
 -      import sys
 -      sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
 -      import portage
 +# for an explanation on this logic, see pym/_emerge/__init__.py
 +import os
 +import sys
 +if os.environ.__contains__("PORTAGE_PYTHONPATH"):
 +      sys.path.insert(0, os.environ["PORTAGE_PYTHONPATH"])
 +else:
 +      sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "pym"))
 +import portage
  class Blocker(Task):
  
        __hash__ = Task.__hash__
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index fd26f486e71495a2261cc5fa8c6a9b632a14a70c,1450fe2e8a550d9542c9067fde1d1fbb30b68947..82953ce5b814773ab7544cefbf5b8efbb9daa18a
@@@ -1,21 -1,9 +1,20 @@@
  # portage: Constants
  # Copyright 1998-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 +# ===========================================================================
 +# autotool supplied constants.
 +# ===========================================================================
 +from portage.const_autotool import *
 +
  import os
  
 +# save the original prefix
 +BPREFIX = EPREFIX
 +# pick up EPREFIX from the environment if set
 +if "EPREFIX" in os.environ:
 +      EPREFIX = os.path.normpath(os.environ["EPREFIX"])
 +
  # ===========================================================================
  # START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF
  # ===========================================================================
@@@ -73,12 -59,15 +72,15 @@@ PORTAGE_PYM_PATH         = PORTAGE_BASE
  LOCALE_DATA_PATH         = PORTAGE_BASE_PATH + "/locale"  # FIXME: not used
  EBUILD_SH_BINARY         = PORTAGE_BIN_PATH + "/ebuild.sh"
  MISC_SH_BINARY           = PORTAGE_BIN_PATH + "/misc-functions.sh"
 -SANDBOX_BINARY           = "/usr/bin/sandbox"
 -FAKEROOT_BINARY          = "/usr/bin/fakeroot"
 -BASH_BINARY              = "/bin/bash"
 -MOVE_BINARY              = "/bin/mv"
 -PRELINK_BINARY           = "/usr/sbin/prelink"
 +SANDBOX_BINARY           = BPREFIX + "/usr/bin/sandbox"
 +FAKEROOT_BINARY          = BPREFIX + "/usr/bin/fakeroot"
 +BASH_BINARY              = PORTAGE_BASH
 +MOVE_BINARY              = PORTAGE_MV
 +PRELINK_BINARY           = EPREFIX + "/usr/sbin/prelink"
  
+ PORTAGE_GROUPNAME        = os.environ.get("PORTAGE_GROUPNAME", 'portage')
+ PORTAGE_USERNAME         = os.environ.get("PORTAGE_USERNAME", 'portage')
+ 
  INVALID_ENV_FILE         = "/etc/spork/is/not/valid/profile.env"
  REPO_NAME_FILE           = "repo_name"
  REPO_NAME_LOC            = "profiles" + "/" + REPO_NAME_FILE
index f2e24140481fe94406b3d280f035f67a271e7489,ff23dbe001de381ee14e62a65bd37a2a36759e41..c0278626b632113f0c1bbb638a012fa55df2b3a6
@@@ -1,10 -1,9 +1,9 @@@
  # data.py -- Calculated/Discovered Data Values
  # Copyright 1998-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  import os, sys, pwd, grp, platform
- from portage.const import rootuid, portageuser, portagegroup, EPREFIX
 -from portage.const import PORTAGE_GROUPNAME, PORTAGE_USERNAME
++from portage.const import PORTAGE_GROUPNAME, PORTAGE_USERNAME ,rootuid, EPREFIX
  
  import portage
  portage.proxy.lazyimport.lazyimport(globals(),
Simple merge
index bf7ccd807f3f09c481069e8a9503bc872bfe07d8,38622df459b78eb981b1645fd9457f94919ed15c..bc77858180800b1e85caa56f5fa4e9961843d4d8
@@@ -1,9 -1,7 +1,8 @@@
  # Copyright 1998-2009 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
  __all__ = ["PreservedLibsRegistry", "LinkageMap",
 +      "LinkageMapMachO", "LinkageMapPeCoff", "LinkageMapXCoff"
        "vardbapi", "vartree", "dblink"] + \
        ["write_contents", "tar_contents"]
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index de606d675d6b9d36ecbe100153b1beba9440dfdc,2380fc5467c1b9f1dd0c3df2b04f946e36c92d52..dad253dc4830548c656b87f38b45c2b2343475a3
@@@ -1,7 -1,7 +1,6 @@@
  # Copyright 2007 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
- # $Id$
  
 -import errno
  import re
  from itertools import chain
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge