summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Remove some unsafe assumptions from preprocess_ebuild_env() andZac Medico2007-11-251-2/+4
| | | | | | | note the remaining assumption that save_ebuild_env() is not overridden by the environment being loaded. (trunk r8662) svn path=/main/branches/2.1.2/; revision=8664
* Allow the pkg_info and pkg_config pre/post hooks to run evenZac Medico2007-11-251-1/+0
| | | | | | when the ebuild function is not defined. (trunk r8659) svn path=/main/branches/2.1.2/; revision=8660
* Remove the empty default pkg_setup, src_install, pkg_preinst,Zac Medico2007-11-251-29/+1
| | | | | | | | pkg_postinst, pkg_prerm, pkg_postrm, and pkg_config functions since they do nothing more than clutter the environment. (trunk r8655) svn path=/main/branches/2.1.2/; revision=8658
* Test if ebuild functions are defined before calling them. ThisZac Medico2007-11-251-25/+21
| | | | | | | | | will be useful if an environment.bz2 has been loaded and it has missing functions for some reason. For example, there are a lot of default functions that are empty and could simply be omitted from the environment. (trunk r8654) svn path=/main/branches/2.1.2/; revision=8657
* The qa_call() function and anything before it are portage internalsZac Medico2007-11-251-1/+11
| | | | | | | that the user will not be interested in. Therefore, the stack trace should only show calls that come after qa_call(). (trunk r8653) svn path=/main/branches/2.1.2/; revision=8656
* * Load environment.bz2 for the pkg_config() phase.Zac Medico2007-11-252-2/+8
| | | | | | | * Run the "clean" phase if pkg_config() succeeds. (trunk r8651) svn path=/main/branches/2.1.2/; revision=8652
* Implement loading of environment.bz2 for the pkg_info() phase.Zac Medico2007-11-251-1/+2
| | | | | | | | | | | Since a temporary directory is required for processing of ${T}/environment, and we want a user who's not in the portage group to be able to run the pkg_info() phase, PORTAGE_TMPDIR is temporarily overridden with a directory created by mkdtemp. To make this work, doebuild() creates the tempdir and cleans it up in a finally block. (trunk r8649) svn path=/main/branches/2.1.2/; revision=8650
* Bug #200238 - Make ebuild.sh properly bail out when the pkg_info()Zac Medico2007-11-241-1/+1
| | | | | | function doesn't exist. (trunk r8647) svn path=/main/branches/2.1.2/; revision=8648
* Bug #140180 - Never trigger a LICENSE.missing violation for old styleZac Medico2007-11-241-2/+4
| | | | | | virtuals since they don't directly install anything. (trunk r8645) svn path=/main/branches/2.1.2/; revision=8646
* Use `md5` if `md5sum` is not available (useful for FreeBSD users).Zac Medico2007-11-241-2/+10
| | | | | | (trunk r8643) svn path=/main/branches/2.1.2/; revision=8644
* Fix quoting to work properly with eval. (trunk r8640)Zac Medico2007-11-241-3/+3
| | | | svn path=/main/branches/2.1.2/; revision=8641
* Unconditionally filter some of the SANDBOX_* variables from theZac Medico2007-11-241-1/+7
| | | | | | | | | environment in order to avoid potential interference problems. For example, having an invalid value for SANDBOX_LOG prevents the sandbox from killing the ebuild when a violation occurs. (trunk r8636) svn path=/main/branches/2.1.2/; revision=8637
* Fix the var_grep variable in filter_readonly_variables() so thatZac Medico2007-11-241-1/+1
| | | | | | it's properly local. (trunk r8634) svn path=/main/branches/2.1.2/; revision=8635
* In the grep expression that's generated in filter_readonly_variables(),Zac Medico2007-11-241-8/+10
| | | | | | condense redundant identical expressions into a single one. (trunk r8630) svn path=/main/branches/2.1.2/; revision=8633
* Filter _E_DOCDESTTREE_ and _E_EXEDESTTREE_ from environment.bz2. (trunk r8629)Zac Medico2007-11-241-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8632
* Add support for persistence of colon separatedZac Medico2007-11-241-8/+27
| | | | | | | | | SANDBOX_{DENY,READ,PREDICT,WRITE} variables between phases so things like the global scope addpredict() call in qt3.eclass will continue to work. (trunk r8628) svn path=/main/branches/2.1.2/; revision=8631
* Make save_ebuild_env() filter the new source_all_bashrcs() functionZac Medico2007-11-231-1/+2
| | | | | | from the environment. (trunk r8623) svn path=/main/branches/2.1.2/; revision=8624
* 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. (trunk r8621) svn path=/main/branches/2.1.2/; revision=8622
* unset x to avoid global env pollution. (trunk r8619)Zac Medico2007-11-231-0/+1
| | | | svn path=/main/branches/2.1.2/; revision=8620
* For compatibility with previous behavior, so the bashrc sourcingZac Medico2007-11-231-33/+31
| | | | | | after the ebuild environment is fully loaded. (trunk r8617) svn path=/main/branches/2.1.2/; revision=8618
* Use %% instead of % parameter expansion where appropriateZac Medico2007-11-231-1/+1
| | | | | | for md5sum output. (trunk r8613) svn path=/main/branches/2.1.2/; revision=8614
* Make the sed expression in filter_readonly_variables() handleZac Medico2007-11-231-1/+3
| | | | | | '^declare -r ' by simply removing it. (trunk r8611) svn path=/main/branches/2.1.2/; revision=8612
* Allow any errors from save_ebuild_env() to go to stderr instead ofZac Medico2007-11-221-1/+1
| | | | | | directing them to /dev/null. (trunk r8607) svn path=/main/branches/2.1.2/; revision=8608
* 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'. (trunk r8605) svn path=/main/branches/2.1.2/; revision=8606
* 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. (trunk r8603) svn path=/main/branches/2.1.2/; revision=8604
* 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. (trunk r8601) svn path=/main/branches/2.1.2/; revision=8602
* Document dohtml -p. Thanks to robbat2 for reporting. (trunk r8599)Zac Medico2007-11-221-0/+1
| | | | svn path=/main/branches/2.1.2/; revision=8600
* 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. (trunk r8597) svn path=/main/branches/2.1.2/; revision=8598
* Filter HOSTTYPE, MACHTYPE, and OSTYPE vars that are set by bash.Zac Medico2007-11-221-1/+2
| | | | | | (trunk r8595). svn path=/main/branches/2.1.2/; revision=8596
* In depgraph.altlist(), measure the bias of circularZac Medico2007-11-221-0/+20
| | | | | | | RDEPEND <-> PDEPEND relationships and use it to optimize merge order. (trunk r8593) svn path=/main/branches/2.1.2/; revision=8594
* Replace usage of the "myarg" global variable with the equivalentZac Medico2007-11-211-34/+27
| | | | | | readonly EBUILD_SH_ARGS variable. (trunk r8585) svn path=/main/branches/2.1.2/; revision=8586
* 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. (trunk r8583) svn path=/main/branches/2.1.2/; revision=8584
* * 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. (trunk r8581) svn path=/main/branches/2.1.2/; revision=8582
* Generate an eerror elog message when an ebuild prerm orZac Medico2007-11-211-21/+0
| | | | | | postrm phase fails. (trunk r8577) svn path=/main/branches/2.1.2/; revision=8580
* Fix the diefunc overlay message so that it doesn't triggerZac Medico2007-11-211-0/+1
| | | | | | falsely in prerm or postrm. (trunk r8578) svn path=/main/branches/2.1.2/; revision=8579
* Move environment saving from dyn_compile() to dyn_install()Zac Medico2007-11-211-27/+27
| | | | | | so that state from src_install() is saved. (trunk r8575) svn path=/main/branches/2.1.2/; revision=8576
* Clean up some local variables that are needlessly savedZac Medico2007-11-211-2/+6
| | | | | | in the environment. (trunk r8573) svn path=/main/branches/2.1.2/; revision=8574
* Sync with ebuild.sh and isolated-functions.sh as of trunk r8569. ThisZac Medico2007-11-212-202/+313
| | | | | | | includes all the environment filtering enhancements that solve bugs #46223 and #190128. svn path=/main/branches/2.1.2/; revision=8570
* Disable logging and ${T}/environment saving during theZac Medico2007-11-211-2/+1
| | | | | | pkg_info() phase. (trunk r8526) svn path=/main/branches/2.1.2/; revision=8568
* Set IMAGE for minimal backward compatibility withZac Medico2007-11-211-0/+3
| | | | | | | overlays or user's bashrc, but don't export it. (trunk r8511:8513) svn path=/main/branches/2.1.2/; revision=8564
* Fix quoting for `source ${EBUILD}`. (trunk r8503)Zac Medico2007-11-211-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8562
* * Replace references to deprecated ${IMAGE} with equivalent ${D}.Zac Medico2007-11-202-29/+26
| | | | | | | * Remove redundant trailing slashes and fix quoting. (trunk r8501) svn path=/main/branches/2.1.2/; revision=8560
* Make 'full' the default mode, since 'scan' can be annoying when itZac Medico2007-11-201-4/+4
| | | | | | omits relevant info. (trunk r8499) svn path=/main/branches/2.1.2/; revision=8558
* In the slot collision display, show a maximum of 3 parentsZac Medico2007-11-201-0/+14
| | | | | | | for each package in order to avoid flooding the display. (trunk r8500) svn path=/main/branches/2.1.2/; revision=8557
* Make the slot collision display show all collisions insteadZac Medico2007-11-201-21/+33
| | | | | | of just the first one. (trunk r8498) svn path=/main/branches/2.1.2/; revision=8556
* Fix blocker handling to properly handle SLOT atoms inZac Medico2007-11-201-1/+3
| | | | | | depgraph.validate_blockers(). (trunk r8495) svn path=/main/branches/2.1.2/; revision=8555
* Bug #197797 - Set umask to 022 so that created files (such as theZac Medico2007-11-201-0/+4
| | | | | | world file) have sane permissions. svn path=/main/branches/2.1.2/; revision=8554
* Make diefunc() clean up QA_INTERCEPTORS in case it isZac Medico2007-11-201-1/+6
| | | | | | | called from inherit() since sed called below. (trunk r8490) svn path=/main/branches/2.1.2/; revision=8553
* Convert all the checks in repoman.checks to use a new LineCheckZac Medico2007-11-201-108/+90
| | | | | | | | | | | | | | | | | | | | | | | | | 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. (trunk r8483) Make the EbuildQuote.missing_quotes regex accept single quotes where it accepts double quotes in order to eliminate some false positives. Thanks to Krzysiek Pawlik <nelchael@gentoo.org> for reporting. (trunk r8485) svn path=/main/branches/2.1.2/; revision=8552
* Bug #198492 - Make quickpkg create $PKGDIR if it doesn'tZac Medico2007-11-201-0/+5
| | | | | | already exist. (trunk r8464) svn path=/main/branches/2.1.2/; revision=8546