|
|
ExtractKernelVersion(base_dir)
Try to figure out what kernel version we are running
@param base_dir: Path to sources (usually /usr/src/linux)
@type base_dir: string
@rtype: tuple( version[string], error[string])
@returns:
1. |
source code
|
|
|
|
|
|
|
_check_build_log(mysettings,
out=None)
Search the content of $PORTAGE_LOG_FILE if it exists
and generate the following QA Notices when appropriate: |
source code
|
|
|
|
|
|
|
_check_distfile(filename,
digests,
eout,
show_errors=1)
@return a tuple of (match, stat_obj) where match is True if filename
matches all given digests (if any) and stat_obj is a stat result, or
None if the file does not exist. |
source code
|
|
|
|
|
|
|
|
|
tuple
|
|
|
|
|
|
|
_doebuild_exit_status_check(mydo,
settings)
Returns an error string if the shell appeared to exit unsuccessfully,
None otherwise. |
source code
|
|
|
|
| _doebuild_exit_status_check_and_log(settings,
mydo,
retval) |
source code
|
|
|
|
|
|
|
_expand_new_virtuals(mysplit,
edebug,
mydbapi,
mysettings,
myroot='/',
trees=None,
**kwargs)
Recursively expand new-style virtuals so as to collapse one or more
levels of indirection. |
source code
|
|
|
None or List
|
|
|
|
|
|
|
_movefile(src,
dest,
**kwargs)
Calls movefile and raises a PortageException if an error occurs. |
source code
|
|
|
|
|
|
|
_post_pkg_postinst_cmd(mysettings)
Post phase logic and tasks that have been factored out of build.sh. |
source code
|
|
|
|
|
|
|
|
|
|
_post_src_install_uid_fix(mysettings)
Files in $D with user and group bits that match the
"portage" user or group are automatically mapped to
PORTAGE_INST_UID and PORTAGE_INST_GID if necessary. |
source code
|
|
|
|
|
|
|
|
|
|
_shell_quote(s)
Quote a string in double-quotes and use backslashes to escape any
backslashes, double-quotes, dollar signs, or backquotes in the
string. |
source code
|
|
|
|
_spawn_fetch(settings,
args,
**kwargs)
Spawn a process with appropriate settings for fetching, including
userfetch and selinux support. |
source code
|
|
|
int
|
|
|
|
|
|
|
abssymlink(symlink)
This reads symlinks, resolving the relative symlinks, and returning
the absolute. |
source code
|
|
|
string
|
autouse(myvartree,
use_cache=1,
mysettings=None)
autuse returns a list of USE variables auto-enabled to packages being
installed |
source code
|
|
|
|
| best_from_dict(key,
top_dict,
key_order,
EmptyOnError=1,
FullCopy=1,
AllowEmpty=1) |
source code
|
|
|
|
| cacheddir(my_original_path,
ignorecvs,
ignorelist,
EmptyOnError,
followSymlinks=True) |
source code
|
|
|
|
|
|
|
|
|
|
cpv_expand(mycpv,
mydb=None,
use_cache=1,
settings=None)
Given a string (packagename or virtual) expand it into a valid
cat/package string. |
source code
|
|
|
|
|
|
|
| create_trees(config_root=None,
target_root=None,
trees=None) |
source code
|
|
|
|
dep_check(depstring,
mydbapi,
mysettings,
use='yes',
mode=None,
myuse=None,
use_cache=1,
use_binaries=0,
myroot='/',
trees=None)
Takes a depend string and parses the condition. |
source code
|
|
|
|
|
|
|
| dep_expand(mydep,
mydb=None,
use_cache=1,
settings=None) |
source code
|
|
|
|
dep_virtual(mysplit,
mysettings)
Does virtual dependency conversion |
source code
|
|
|
|
dep_wordreduce(mydeplist,
mysettings,
mydbapi,
mode,
use_cache=1)
Reduces the deplist to ones and zeros |
source code
|
|
|
|
dep_zapdeps(unreduced,
reduced,
myroot,
use_binaries=0,
trees=None)
Takes an unreduced and reduced deplist and removes satisfied
dependencies. |
source code
|
|
|
|
|
|
|
digestParseFile(myfilename,
mysettings=None)
(filename) -- Parses a given file for entries matching:
<checksumkey> <checksum_hex_string> <filename> <filesize>
Ignores lines that don't start with a valid checksum identifier
and returns a dict with the filenames as keys and {checksumkey:checksum}
as the values. |
source code
|
|
|
|
|
|
|
digestgen(myarchives,
mysettings,
overwrite=1,
manifestonly=0,
myportdb=None)
Generates a digest file if missing. |
source code
|
|
|
|
doebuild(myebuild,
mydo,
myroot,
mysettings,
debug=0,
listonly=0,
fetchonly=0,
cleanup=0,
dbkey=None,
use_cache=1,
fetchall=0,
tree=None,
mydbapi=None,
vartree=None,
prev_mtimes=None,
fd_pipes=None,
returnpid=False)
Wrapper function that invokes specific ebuild phases through the spawning
of ebuild.sh |
source code
|
|
|
|
| doebuild_environment(myebuild,
mydo,
myroot,
mysettings,
debug,
use_cache,
mydbapi) |
source code
|
|
|
|
|
|
|
| env_update(makelinks=1,
target_root=None,
prev_mtimes=None,
contents=None,
env=None,
writemsg_level=<function writemsg_level at 0x8a18e64>) |
source code
|
|
|
|
fetch(myuris,
mysettings,
listonly=0,
fetchonly=0,
locks_in_subdir='.locks',
use_locks=1,
try_mirrors=1)
fetch files. |
source code
|
|
|
|
flatten(mytokens)
this function now turns a [1,[2,3]] list into a [1,2,3] list and
returns it. |
source code
|
|
|
|
|
|
|
getCPFromCPV(mycpv)
Calls pkgsplit on a cpv and returns only the cp. |
source code
|
|
|
|
getcwd()
this fixes situations where the current directory doesn't exist |
source code
|
|
|
|
| getmaskingreason(mycpv,
metadata=None,
settings=None,
portdb=None,
return_location=False) |
source code
|
|
|
|
| getmaskingstatus(mycpv,
settings=None,
portdb=None) |
source code
|
|
|
|
|
|
|
|
|
|
| key_expand(mykey,
mydb=None,
use_cache=1,
settings=None) |
source code
|
|
|
List
|
listdir(mypath,
recursive=False,
filesonly=False,
ignorecvs=False,
ignorelist=[],
followSymlinks=True,
EmptyOnError=False,
dirsonly=False)
Portage-specific implementation of os.listdir |
source code
|
|
|
|
|
|
|
| merge(mycat,
mypkg,
pkgloc,
infloc,
myroot,
mysettings,
myebuild=None,
mytree=None,
mydbapi=None,
vartree=None,
prev_mtimes=None,
blockers=None,
scheduler=None) |
source code
|
|
|
|
movefile(src,
dest,
newmtime=None,
sstat=None,
mysettings=None)
moves a file from src to dest, preserving all permissions and
attributes; mtime will be preserved even when moving across
filesystems. |
source code
|
|
|
|
pkgmerge(mytbz2,
myroot,
mysettings,
mydbapi=None,
vartree=None,
prev_mtimes=None,
blockers=None)
will merge a .tbz2 file, returning a list of runtime dependencies
that must be satisfied, or None if there was a merge error. |
source code
|
|
|
|
|
|
|
| prepare_build_dirs(myroot,
mysettings,
cleanup) |
source code
|
|
|
|
spawn(mystring,
mysettings,
debug=0,
free=0,
droppriv=0,
sesandbox=0,
fakeroot=0,
**keywords)
Spawn a subprocess with extra portage-specific options. |
source code
|
|
|
|
| spawnebuild(mydo,
actionmap,
mysettings,
debug,
alwaysdep=0,
logfile=None,
fd_pipes=None,
returnpid=False) |
source code
|
|
|
|
| unmerge(cat,
pkg,
myroot,
mysettings,
mytrimworld=1,
vartree=None,
ldpath_mtimes=None,
scheduler=None) |
source code
|
|
|
|
VERSION = '2.2_rc8_p11503'
|
|
|
_disable_openpty = False
|
|
|
_doebuild_broken_ebuilds = set([])
|
|
|
_doebuild_broken_manifests = set([])
|
|
|
_doebuild_manifest_cache = None
|
|
|
_doebuild_manifest_exempt_depend = 0
|
|
|
_fetch_resume_size_re = re.compile(r'(^\d+)([KMGTPEZY]?$)')
|
|
|
_globals_initialized = False
|
|
|
_legacy_global_var_names = ('archlist', 'db', 'features', 'gro...
|
|
|
_mtimedb_initialized = False
|
|
|
_portdb_initialized = False
|
|
|
_post_phase_cmds = {'install': ['install_qa_check', 'install_s...
|
|
|
_size_suffix_map = {'': 0, 'E': 60, 'G': 30, 'K': 10, 'M': 20,...
|
|
|
_userpriv_spawn_kwargs = (('uid', 250), ('gid', 250), ('groups...
|
|
|
_userpriv_test_write_cmd_script = 'touch %(file_path)s 2>/dev/...
|
|
|
_userpriv_test_write_file_cache = {}
|
|
|
archlist = ['ppc', '~ppc', 's390', '~s390', 'amd64', '~amd64',...
|
|
|
auxdbkeylen = 22
|
|
|
auxdbkeys = ['DEPEND', 'RDEPEND', 'SLOT', 'SRC_URI', 'RESTRICT...
|
|
|
bsd_chflags = None
|
|
|
cacheHit = 0
|
|
|
cacheMiss = 0
|
|
|
cacheStale = 0
|
|
|
db = {'/': {'virtuals': None, 'bintree': None, 'vartree': None...
|
|
|
dircache = {}
|
|
|
expandcache = {}
|
|
|
features = ['assume-digests', 'collision-protect', 'distlocks'...
|
|
|
groups = ['x86', '~x86']
|
|
|
k = 'flushmtimedb'
|
|
|
mtimedb = {'info': {'/usr/share/info': 1220735393L, '/usr/shar...
|
|
|
mtimedbfile = '/var/cache/edb/mtimedb'
|
|
|
pkglines = ['*virtual/dev-manager', '*virtual/gzip', '*app-she...
|
|
|
portdb = _PortdbProxy()
|
|
|
profiledir = '/etc/make.profile'
|
|
|
root = '/'
|
|
|
selinux_enabled = 0
|
|
|
settings = <portage.config object at 0x84a114c>
|
|
|
thirdpartymirrors = {'3dgamers': ['ftp://ftp.planetmirror.com/...
|
|
|
usedefaults = {'aalib': ['media-libs/aalib'], 'acl': ['sys-app...
|