summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entriesZac Medico2007-11-221-0/+2
| | | | | | | so that packages installed via --buildpkg have a BINPKGMD5 entry matching the package built. svn path=/main/trunk/; revision=8597
* Filter HOSTTYPE, MACHTYPE, and OSTYPE vars that are set by bash.Zac Medico2007-11-221-1/+2
| | | | svn path=/main/trunk/; revision=8595
* In depgraph.altlist(), measure the bias of circularZac Medico2007-11-221-0/+20
| | | | | | | RDEPEND <-> PDEPEND relationships and use it to optimize merge order. svn path=/main/trunk/; revision=8593
* Replace usage of the "myarg" global variable with the equivalentZac Medico2007-11-211-34/+27
| | | | | | readonly EBUILD_SH_ARGS variable. svn path=/main/trunk/; revision=8585
* In dyn_install(), don't cleanse S from the global environment,Zac Medico2007-11-211-5/+9
| | | | | | | | in case the user wants to repeat the phase (like with FEATURES=noauto and the ebuild command). Only cleanse it from environment.bz2. svn path=/main/trunk/; revision=8583
* * Make save_ebuild_env() filter some more variables.Zac Medico2007-11-211-2/+8
| | | | | | * Make dyn_install() filter S when it's no longer needed. svn path=/main/trunk/; revision=8581
* Fix the diefunc overlay message so that it doesn't triggerZac Medico2007-11-211-0/+1
| | | | | | falsely in prerm or postrm. svn path=/main/trunk/; revision=8578
* Generate an eerror elog message when an ebuild prerm orZac Medico2007-11-212-21/+15
| | | | | | postrm phase fails. svn path=/main/trunk/; revision=8577
* Move environment saving from dyn_compile() to dyn_install()Zac Medico2007-11-211-27/+27
| | | | | | so that state from src_install() is saved. svn path=/main/trunk/; revision=8575
* Clean up some local variables that are needlessly savedZac Medico2007-11-211-2/+6
| | | | | | in the environment. svn path=/main/trunk/; revision=8573
* Move preinst IMAGE initialzation before bashrc handling.Zac Medico2007-11-211-4/+4
| | | | svn path=/main/trunk/; revision=8569
* * Remove bogus "ci" mode.Zac Medico2007-11-202-2/+1
| | | | | | * Sync "scan" mode description with 2.1.2 branch. svn path=/main/trunk/; revision=8559
* Don't unset ${S} inside save_ebuild_env().Zac Medico2007-11-201-1/+1
| | | | svn path=/main/trunk/; revision=8543
* Instead of filtering out all readonly variables, make itZac Medico2007-11-201-25/+25
| | | | | | | selective so that any readonly variables that are not explicitly filtered are allowed to be saved. svn path=/main/trunk/; revision=8542
* Fix ${EBUILD_PHASE} quoting.Zac Medico2007-11-201-1/+1
| | | | svn path=/main/trunk/; revision=8541
* Don't make variables readonly during the "depend" phase.Zac Medico2007-11-201-1/+1
| | | | svn path=/main/trunk/; revision=8540
* When ROOT != "/" we only want overrides from the callingZac Medico2007-11-201-0/+7
| | | | | | | | | environment to apply to the config that's associated with ROOT != "/", so we wipe out the "backupenv" for the config that is associated with ROOT == "/" and regenerate it's incrementals. Thanks to solar for the suggestion. svn path=/main/trunk/; revision=8539
* When ${T}/environment is available, do not source the ebuild sinceZac Medico2007-11-201-73/+71
| | | | | | that is redundant. This solves bug #46223. svn path=/main/trunk/; revision=8538
* Now that save_ebuild_env() filters variables that could causeZac Medico2007-11-201-9/+2
| | | | | | | | interference, preprocess_ebuild_env() can rely on it to clean up the environment enough so that anything left can be allowed to override variables or functions from the current environment. svn path=/main/trunk/; revision=8537
* Add some more variables to filter in filter_readonly_variables()Zac Medico2007-11-201-7/+10
| | | | | | and save_ebuild_env(). svn path=/main/trunk/; revision=8536
* Move LD_PRELOAD and FAKEROOTKEY filtering from filter_readonly_variables()Zac Medico2007-11-201-3/+3
| | | | | | to save_ebuild_env(). svn path=/main/trunk/; revision=8535
* Make AA, PF, and WORKDIR readonly.Zac Medico2007-11-191-1/+2
| | | | svn path=/main/trunk/; revision=8534
* Make save_ebuild_env() filter out lots of variables thatZac Medico2007-11-191-0/+32
| | | | | | don't need to be saved. svn path=/main/trunk/; revision=8533
* Make preprocess_ebuild_env() explicitly filter out FEATURESZac Medico2007-11-191-0/+1
| | | | | | | since the value for that variable should never come from a previously saved environment. svn path=/main/trunk/; revision=8532
* Implement loading of environment.bz2 from binary and installedZac Medico2007-11-191-14/+59
| | | | | | | | | | | | packages. For binary packages, it's loaded prior to pkg_setup(). For installed packages, it's loaded prior to pkg_prerm(). For simplicity, the current implementation will cause the current environment to override *everything* in the environment that is being processed. In the future, it should be more selective and only override the parts that are strictly necessary. svn path=/main/trunk/; revision=8531
* In bash-3.2_p20+ an attempt to assign BASH_*, FUNCNAME, GROUPS or anyZac Medico2007-11-191-27/+43
| | | | | | | | readonly variable cause the shell to exit while executing the "source" builtin command. To avoid this problem, a new save_ebuild_env() function filters those variables out and discards them. See bug #190128. svn path=/main/trunk/; revision=8528
* When creating environment.bz2 at the end of dyn_compile(),Zac Medico2007-11-191-2/+25
| | | | | | | | reduce bloat by filtering out functions that are defined internally by portage. This reduces the size of the resulting environment.bz2 file by approximately 10 KB. svn path=/main/trunk/; revision=8527
* Disable logging and ${T}/environment saving during theZac Medico2007-11-192-3/+2
| | | | | | pkg_info() phase. svn path=/main/trunk/; revision=8526
* Use the existing RootConfig class to serve as a replacement forZac Medico2007-11-191-64/+58
| | | | | | | | | the EmergeConfig class. They both served roughly the same purpose and it was messy the way that EmergeConfig inherited from the portage.config class. It's better to avoid inheritance here, expecially since it doesn't provide anything really useful. svn path=/main/trunk/; revision=8525
* Fix PROFILE_ONLY_VARIABLES handling in the config constructorZac Medico2007-11-191-6/+4
| | | | | | | so that variables are appropriately filtered from "backupenv", since otherwise they can leak in from there. svn path=/main/trunk/; revision=8524
* Bug #198398 - Enable Manifest generation when there are no hashZac Medico2007-11-182-5/+17
| | | | | | | | | | functions available for types such as RMD160. Now it's possible to generate a Manifest when python-2.5 is built without ssl support. MANIFEST1_REQUIRED_HASH and MANIFEST2_REQUIRED_HASH are the only two functions that are strictly required now (MD5 and SHA1). svn path=/main/trunk/; revision=8521
* Fix NEEDED logic in vardbapi.aux_get() so that emptyZac Medico2007-11-181-1/+1
| | | | | | NEEDED doesn't trigger unnecessary cache pulls. svn path=/main/trunk/; revision=8520
* Fix --usepkgonly code in depgraph.select_files() so that itZac Medico2007-11-171-0/+2
| | | | | | only operates on the Package type that it expects. svn path=/main/trunk/; revision=8519
* Clean up vardbapi.counter_tick_core() and replace shell codeZac Medico2007-11-171-47/+27
| | | | | | with pure python. svn path=/main/trunk/; revision=8518
* Speed up LibraryPackageMap.update() by pulling NEEDED from theZac Medico2007-11-161-2/+10
| | | | | | | | | | vardbapi.aux_get() cache. This greatly reduces the amount of needless IO that has been happening just prior to the postinst phase in dblink.treewalk(). We may want to consider having LibraryPackageMap work directly from the vardbapi instead of creating the intermediate /var/cache/edb/library_consumers file. svn path=/main/trunk/; revision=8516
* Set IMAGE for minimal backward compatibility withZac Medico2007-11-161-0/+3
| | | | | | overlays or user's bashrc, but don't export it. svn path=/main/trunk/; revision=8513
* Don't export ${IMAGE} to the ebuild environment anymore sinceZac Medico2007-11-161-2/+0
| | | | | | everything uses ${D} now (including the entire tree). svn path=/main/trunk/; revision=8512
* Bug #199311 - Make dblink.getcontents() show the path of theZac Medico2007-11-161-11/+10
| | | | | | CONTENTS file when any kind of parse error occurs. svn path=/main/trunk/; revision=8511
* Fix quoting for `source ${EBUILD}`.Zac Medico2007-11-151-1/+1
| | | | svn path=/main/trunk/; revision=8503
* Make dir_get_metadata() return early if the current user doesZac Medico2007-11-151-0/+7
| | | | | | | not have write access to /var/cache/edb. Thanks to Cardoe for reporting. svn path=/main/trunk/; revision=8502
* * Replace references to deprecated ${IMAGE} with equivalent ${D}.Zac Medico2007-11-142-29/+26
| | | | | | * Remove redundant trailing slashes and fix quoting. svn path=/main/trunk/; revision=8501
* In the slot collision display, show a maximum of 3 parentsZac Medico2007-11-141-0/+22
| | | | | | for each package in order to avoid flooding the display. svn path=/main/trunk/; revision=8500
* Make 'full' the default mode, since 'scan' can be annoying since itZac Medico2007-11-132-3/+3
| | | | | | ommits relevant info. svn path=/main/trunk/; revision=8499
* Make the slot collision display show all collisions insteadZac Medico2007-11-131-21/+27
| | | | | | of just the first one. svn path=/main/trunk/; revision=8498
* Make depgraph._complete_graph() properly specify SetArg instancesZac Medico2007-11-131-13/+24
| | | | | | | as parents of each Dependency, similar to the want that select_files() does. svn path=/main/trunk/; revision=8497
* Make depgraph._add_pkg() match the package with all possibleZac Medico2007-11-131-22/+26
| | | | | | args and add them to the digraph. svn path=/main/trunk/; revision=8496
* Remove the depgraph.pkg_node_map attribute and use otherZac Medico2007-11-121-45/+36
| | | | | | means to accomplish the same thing. svn path=/main/trunk/; revision=8495
* Add DependencyArg instances as parents of packages in theZac Medico2007-11-121-8/+21
| | | | | | | digraph since these relationships should be useful during backtracking. svn path=/main/trunk/; revision=8494
* * Remove all references to the obsolete Package.digraph_node attribute.Zac Medico2007-11-121-63/+51
| | | | | | | | * Reimplement Package comparison methods since the previous way didn't seem to function properly for dict keys. * Clean up depgraph._add_pkg() to use the Package object attributes. svn path=/main/trunk/; revision=8493
* Make the Package class emulate the interface of it's ownZac Medico2007-11-122-19/+21
| | | | | | | digraph_node tuple so that the Package instance itself can be added directly to the digraph. svn path=/main/trunk/; revision=8492