Package portage :: Package util :: Module env_update
[hide private]

Module env_update

source code

Classes [hide private]
  long
int(x=0) -> int or long int(x, base=10) -> int or long
Functions [hide private]
 
env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None, env=None, writemsg_level=None, vardbapi=None)
Parse /etc/env.d and use it to generate /etc/profile.env, csh.env, ld.so.conf, and prelink.conf.
source code
 
_env_update(makelinks, target_root, prev_mtimes, contents, env, writemsg_level) source code
Variables [hide private]
  __package__ = 'portage.util'

Imports: errno, glob, io, stat, sys, time, portage, os, _encodings, _unicode_decode, _unicode_encode, prelink_capable, ostype, ParseError, _, find_binary, atomic_ofstream, ensure_dirs, getconfig, normalize_path, writemsg, listdir, vartree, config


Function Details [hide private]

env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None, env=None, writemsg_level=None, vardbapi=None)

source code 

Parse /etc/env.d and use it to generate /etc/profile.env, csh.env, ld.so.conf, and prelink.conf. Finally, run ldconfig. When ldconfig is called, its -X option will be used in order to avoid potential interference with installed soname symlinks that are required for correct operation of FEATURES=preserve-libs for downgrade operations. It's not necessary for ldconfig to create soname symlinks, since portage will use NEEDED.ELF.2 data to automatically create them after src_install if they happen to be missing.

Parameters:
  • makelinks - True if ldconfig should be called, False otherwise
  • target_root (String (Path)) - root that is passed to the ldconfig -r option, defaults to portage.settings["ROOT"].