summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Try again to make bashrc sourcing compatible with previousZac Medico2007-11-231-32/+37
| | | | | | | behavior. The bashrcs get an opportunity to set aliases that will be expanded during sourcing of ebuilds and eclasses. svn path=/main/trunk/; revision=8621
* unset x to avoid global env pollution.Zac Medico2007-11-231-0/+1
| | | | svn path=/main/trunk/; revision=8619
* For compatibility with previous behavior, so the bashrc sourcingZac Medico2007-11-231-33/+31
| | | | | | after the ebuild environment is fully loaded. svn path=/main/trunk/; revision=8617
* Use %% instead of % parameter expansion where appropriateZac Medico2007-11-231-1/+1
| | | | | | for md5sum output. svn path=/main/trunk/; revision=8613
* Make the sed expression in filter_readonly_variables() handleZac Medico2007-11-231-1/+3
| | | | | | '^declare -r ' by simply removing it. svn path=/main/trunk/; revision=8611
* Allow any errors from save_ebuild_env() to go to stderr instead ofZac Medico2007-11-221-1/+1
| | | | | | directing them to /dev/null. svn path=/main/trunk/; revision=8607
* Generalize the sed expression in filter_readonly_variables() so thatZac Medico2007-11-221-1/+1
| | | | | | it will work with things like 'declare -xr' as well as 'declare -rx'. svn path=/main/trunk/; revision=8605
* Don't call preprocess_ebuild_env() unless EBUILD_SH_ARGS is setZac Medico2007-11-221-1/+1
| | | | | | | since otherwise it can interfere with the environment for things like the "package" phase. svn path=/main/trunk/; revision=8603
* When portage reinstalls itself, during inst/rm phases, theZac Medico2007-11-221-0/+7
| | | | | | | | environment may have been saved by a different version of ebuild.sh, so it can't trusted that it's been properly filtered. Therefore, always preprocess the environment when ${PN} == portage. svn path=/main/trunk/; revision=8601
* Document dohtml -p. Thanks to robbat2 for reporting.Zac Medico2007-11-221-0/+1
| | | | svn path=/main/trunk/; revision=8599
* 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
* 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
* 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-201-1/+0
| | | | | | * 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 ${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-191-2/+1
| | | | | | pkg_info() phase. svn path=/main/trunk/; revision=8526
* 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
* Fix quoting for `source ${EBUILD}`.Zac Medico2007-11-151-1/+1
| | | | svn path=/main/trunk/; revision=8503
* * 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
* Make 'full' the default mode, since 'scan' can be annoying since itZac Medico2007-11-131-2/+2
| | | | | | ommits relevant info. svn path=/main/trunk/; revision=8499
* Bug #197797 - Set umask to 022 so that created files (such as theZac Medico2007-11-121-0/+4
| | | | | | world file) have sane permissions. svn path=/main/trunk/; revision=8491
* Make diefunc() clean up QA_INTERCEPTORS in case it isZac Medico2007-11-111-1/+6
| | | | | | called from inherit() since sed called below. svn path=/main/trunk/; revision=8490
* Convert all the checks in repoman.checks to use a new LineCheckZac Medico2007-11-101-30/+9
| | | | | | | | | | | | | | | | | interface that takes a single line as an argument. This has at least a few of benefits: * Eliminates lots of redundant code * Error messages are ordered by line number across all checks The performance is slightly worse due to the increased number of method calls, but it's not really noticeable in comparison to the time consumed by dependency checks. Thanks to Petteri Räty <betelgeuse@gentoo.org> for the initial patch which I only made a few minor modifications to. svn path=/main/trunk/; revision=8483
* move checkfile parsing into its own functionMarius Mauch2007-11-091-5/+1
| | | | svn path=/main/trunk/; revision=8479
* Move glsa-check from gentoolkit into portage so the gentoolkit version can ↵Marius Mauch2007-11-092-2/+341
| | | | | | be removed after 2.2 is released svn path=/main/trunk/; revision=8478
* Bug #198492 - Make quickpkg create $PKGDIR if it doesn'tZac Medico2007-11-081-0/+4
| | | | | | already exist. svn path=/main/trunk/; revision=8464
* Remove the usage.obsolete "KEYWORDS contain -*" warning since peopleZac Medico2007-11-061-3/+0
| | | | | | | are using -* to indicate that a package should not be tried on archs other than those for which it already has KEYWORDS. svn path=/main/trunk/; revision=8447
* Remove references to ${O} in dyn_spec() since antarusZac Medico2007-11-061-1/+1
| | | | | | made that variable mutable. svn path=/main/trunk/; revision=8444
* Go ahead and exempt selected profile-specific USE_EXPANDZac Medico2007-11-061-1/+6
| | | | | | | | | | | | | flags from IUSE QA Notices since we are planning to make these particular flags into implicit members of IUSE. We can make this extensible later, but for now we just want to eliminate some useless QA Notices (a subset of bug #70648). We're not exempting any non profile- specific USE_EXPAND flags here. For non profile-specific flags, we intend to implement an IUSE syntax extension (bug #133327). svn path=/main/trunk/; revision=8442
* remove O and PPID from being readonly. O is set python side (and we will ↵Alec Warner2007-11-061-1/+1
| | | | | | hopefully stop being exported soon. PPID is ro by bash, so no need to declare it twice svn path=/main/trunk/; revision=8437
* Make WorldHandler lock the world file when in --fix mode.Zac Medico2007-11-051-11/+23
| | | | svn path=/main/trunk/; revision=8432