summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
* Bug #215673 - Make ebuild.sh leave IUSE defaults intact instead of filteringZac Medico2008-04-131-14/+0
| | | | | | | them out. The built_with_use() function in eutils.eclass needs to be updated for compatibility. (trunk r9674) svn path=/main/branches/2.1.2/; revision=9863
* Bug #217444 - Send debug-print() output to stderr so that it can't interfereZac Medico2008-04-121-1/+1
| | | | | | | with command substitution. Thanks to Fabio Rossi <rossi.f@inwind.it> for this patch. (trunk r9856) svn path=/main/branches/2.1.2/; revision=9857
* When dyn_unpack() automatically cleans ${WORKDIR}, also remove thingsZac Medico2008-03-301-0/+1
| | | | | | | like .unpacked and .compiled so that the state is consistent. (trunk r9606) svn path=/main/branches/2.1.2/; revision=9609
* Remove the killparent() function and associated SIGINT trap since thisZac Medico2008-03-281-8/+0
| | | | | | | should already be handled on the python side and it won't work with dropped privileges anyway. (trunk r9327) svn path=/main/branches/2.1.2/; revision=9581
* Make dyn_clean() consistent wrt removal of ${PORTAGE_BUILDDIR}/image andZac Medico2008-03-281-1/+1
| | | | | | | | | ${PORTAGE_BUILDDIR}/.installed since otherwise with FEATURES=keepwork dyn_install() will not call src_install() as necessary to repopulate ${PORTAGE_BUILDDIR}/image (resulting in install_qa_check failure due to absence of ${PORTAGE_BUILDDIR}/image). (trunk r9527) svn path=/main/branches/2.1.2/; revision=9579
* Bug #213698 - Make FEAUTURES=keepwork and keeptemp preserve ${T}/environmentZac Medico2008-03-281-7/+3
| | | | | | since it may contain essential state. (trunk r9526) svn path=/main/branches/2.1.2/; revision=9578
* Bug #174634 - Fix ebuild 'digest' and 'manifest' behave 100% identically andZac Medico2008-03-281-1/+1
| | | | | | update the docs to reflect this. (trunk r9475) svn path=/main/branches/2.1.2/; revision=9557
* Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt from sandbox forZac Medico2008-03-281-1/+1
| | | | | | | things like writing metadata cache. Thanks to ferringb for the suggestion. (trunk r9448) svn path=/main/branches/2.1.2/; revision=9550
* Bug #210449 - Reset exeinto(), docinto(), insinto(), and into() stateZac Medico2008-03-281-0/+9
| | | | | | | variables in case the user is running the install phase multiple times consecutively via the ebuild command. (trunk r9357) svn path=/main/branches/2.1.2/; revision=9531
* Sync the fixes for bug #211949 from trunk.Zac Medico2008-03-141-19/+5
| | | | svn path=/main/branches/2.1.2/; revision=9465
* Bug #211949 - Fix the regex so that it won't match the = character (equalsZac Medico2008-03-041-1/+1
| | | | | | sign). (trunk r9429) svn path=/main/branches/2.1.2/; revision=9430
* Bug #211949 - Tweak the regex so that a leading whitespace characterZac Medico2008-03-031-1/+2
| | | | | | cannot match the required non-alphanumeric group. (trunk r9421) svn path=/main/branches/2.1.2/; revision=9422
* Fix the regex for bug #211949 so that it correctly matches variableZac Medico2008-03-031-1/+1
| | | | | | names that contain more than one non-alphanumeric character. (trunk r9419) svn path=/main/branches/2.1.2/; revision=9420
* Bug #211949 - As suggested by vapier, tighten the variable filter to alsoZac Medico2008-03-021-2/+4
| | | | | | | exclude variable names that begin with a digit or that contain any non-alphanumeric characters that are not be supported by bash. (trunk r9416) svn path=/main/branches/2.1.2/; revision=9417
* Bug #211949 - Make filter_readonly_variables() remove any variablesZac Medico2008-03-011-3/+7
| | | | | | | with names containing a hyphen since bash does not allow them. (trunk r9402) svn path=/main/branches/2.1.2/; revision=9403
* For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] insteadZac Medico2008-02-091-1/+1
| | | | | | | of egrep since apparently it's compatible in this case. Thanks to igli for this. (trunk r9279) svn path=/main/branches/2.1.2/; revision=9305
* Make qa_source and qa_call save the return value and return it. ThanksZac Medico2008-02-091-4/+8
| | | | | | to igli for suggesting. (trunk r9278) svn path=/main/branches/2.1.2/; revision=9304
* Bug #155993 - Update environment.bz2 after postinst in caseZac Medico2008-02-071-0/+10
| | | | | | | installation phases need to pass some variables to uninstallation phases. (trunk r9281) svn path=/main/branches/2.1.2/; revision=9282
* Make the autotools.eclass functions exempt from the autotoolsZac Medico2008-01-311-2/+7
| | | | | | QA Notice. (trunk r9249) svn path=/main/branches/2.1.2/; revision=9250
* - Remove ebuild.autotools repoman check since it produces lotsZac Medico2008-01-311-14/+29
| | | | | | | | | | | of false positives (bug #207104) and its hard to parse bash - Use QA_INTERCEPTORS in ebuild.sh to implement a runtime 'QA Notice' when autotools is called directly trunk r9235 svn path=/main/branches/2.1.2/; revision=9247
* Bug #206772 - Enable bashrc once again for the clean phase. (trunk r9220)Zac Medico2008-01-311-0/+3
| | | | svn path=/main/branches/2.1.2/; revision=9246
* In preprocess_ebuild_env(), move a filter_readonly_variables callZac Medico2008-01-121-2/+3
| | | | | | | | | out of a subshell since FreeBSD and prefix users have reported apparent corruption of the PATH environment variable that triggers calls to the wrong version of sed (one that does not support the -r option). (trunk r9193:9195) svn path=/main/branches/2.1.2/; revision=9196
* Bug#204668 - Fix WORKDIR quoting in econf() when updatingZac Medico2008-01-111-2/+4
| | | | | | config.guess and config.sub. (trunk r9162) svn path=/main/branches/2.1.2/; revision=9171
* After loading the environment, make sure the color variablesZac Medico2008-01-111-0/+12
| | | | | | are in sync with the current NOCOLOR setting. (trunk r9158) svn path=/main/branches/2.1.2/; revision=9170
* Make filter_readonly_variables() filter PATH in any case sinceZac Medico2008-01-051-2/+2
| | | | | | we never want to save of reload it. (trunk r9147) svn path=/main/branches/2.1.2/; revision=9148
* Filter PATH along with FEATURES when loading environment.bz2.Zac Medico2008-01-051-1/+1
| | | | | | (trunk r9145) svn path=/main/branches/2.1.2/; revision=9146
* Recognize export statements when filtering the environment. ThisZac Medico2008-01-031-1/+1
| | | | | | | is needed for compatibility with environment.bz2 files generated by paludis. (trunk r9137) svn path=/main/branches/2.1.2/; revision=9138
* Bug #202697 - Add / to the default initial SANDBOX_READ in order toZac Medico2007-12-281-1/+1
| | | | | | | avoid a situation where attempts to read arbitrary files trigger sandbox violations. (trunk r9085) svn path=/main/branches/2.1.2/; revision=9086
* Fixes for logic related to FEATURES=test to USE=test mapping:Zac Medico2007-12-281-3/+0
| | | | | | | | | | | | | | | | * Add EBUILD_FORCE_TEST to the environment whitelist and filter it from the saved environment in save_ebuild_env(). * Tweak logic inside the ebuild command and config.regenerate() so that EBUILD_FORCE_TEST works even in odd cases like when USE=test is masked. * Only make FEATURES=test map to USE=test when "test" is actually in IUSE. * Remove USE=test from the set of implicit IUSE so that useq() calls in ebuild.sh properly generate a QA Notice when "test" is missing from IUSE. (trunk r9063:9065) svn path=/main/branches/2.1.2/; revision=9076
* Bug #203239 - With FEATURES=noauto, always source ${EBUILD}.Zac Medico2007-12-281-4/+9
| | | | | | | | This will load the ${T}/environment file if available and then source ${EBUILD} to overwrite any functions that have changed. (trunk r9051 and r9062) svn path=/main/branches/2.1.2/; revision=9068
* Only enable the PORTAGE_IUSE check during build time phasesZac Medico2007-12-181-1/+6
| | | | | | since that's the only time it's valid for now. (trunk r8951) svn path=/main/branches/2.1.2/; revision=8952
* Create a PORTAGE_IUSE variable containing an egrep patternZac Medico2007-12-181-10/+6
| | | | | | | | for use by the QA check that's built into useq(). This allows the IUSE logic for this check to be isolated in the python code. (trunk r8945) svn path=/main/branches/2.1.2/; revision=8948
* Allow FEATURES to persist between phases since the user mightZac Medico2007-12-131-3/+14
| | | | | | | | | | | want to modify it via bashrc to enable things like splitdebug and installsources for specific packages. They should be able to modify it in pre_pkg_setup() and have it persist all the way through the install phase. However, if FEATURES exist inside environment.bz2 then they should be overridden by current settings. (trunk r8909) svn path=/main/branches/2.1.2/; revision=8910
* Properly filter SANDBOX_ON from the environment. When sourcingZac Medico2007-12-131-1/+16
| | | | | | | | | | ${T}/environment it's a bit tricky because we have to temporarily disable sandbox since the SANDBOX_{DENY,READ,PREDICT,_WRITE} values we've just loaded may be unusable (triggering in spurious sandbox violations) until we've merged them with our current values. (trunk r8905:8907) svn path=/main/branches/2.1.2/; revision=8908
* Bug #201771 - Make unpack() detect common errors such as absoluteZac Medico2007-12-131-5/+6
| | | | | | | paths that start with ${DISTDIR} and die an appropriate error message. Thanks to grobian for this patch. (trunk r8896) svn path=/main/branches/2.1.2/; revision=8903
* * In filter_readonly_variables(), replace 'declare -r ' with 'declare 'Zac Medico2007-12-131-3/+3
| | | | | | | | | | | | | | | | instead of removing it completely. * Bug #202068 - In order to filter unwanted variable assignments out of the bash environment, use a filter-bash-environment.py script that behaves similar to egrep -v except that it leaves bash here- documents intact. * Use the sed -r option to enable extended regular expressions so that commonly used characters like (, ), and + don't have to be escaped. (trunk r8890:8893) svn path=/main/branches/2.1.2/; revision=8899
* * When installing a binary package, export the file name of the packageZac Medico2007-12-111-1/+6
| | | | | | | | | | | | | | | as PORTAGE_BINPKG_FILE in order to give bashrc users an opportunity to do various things such as remove binary packages after they're installed. * Add a note in ebuild.sh explaining why hardcoded bash lists are needed for backward compatibility with <portage-2.1.4 since they assume that a newly installed version of ebuild.sh will work for pkg_postinst, pkg_prerm, and pkg_postrm when portage is upgrading itself. (trunk r8878) svn path=/main/branches/2.1.2/; revision=8881
* Declare retval as a local variable. (trunk r8859)Zac Medico2007-12-061-0/+1
| | | | svn path=/main/branches/2.1.2/; revision=8860
* Prevent the filter_opts local variable from leaking into theZac Medico2007-12-061-1/+2
| | | | | | environment in preprocess_ebuild_env(). (trunk r8857) svn path=/main/branches/2.1.2/; revision=8858
* Remove redundant successful exit call from the "depend" phaseZac Medico2007-12-061-3/+0
| | | | | | | and let it run to the bottom of ebuild.sh just like the other phases. (trunk r8852) svn path=/main/branches/2.1.2/; revision=8856
* Bug #201506 - Make preprocess_ebuild_env() preserveZac Medico2007-12-061-9/+13
| | | | | | | | SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases, except when the environment comes directly from environment.bz2. (trunk r8853) svn path=/main/branches/2.1.2/; revision=8854
* Synchronize the conditional that triggers "${T}"/environmentZac Medico2007-12-031-4/+3
| | | | | | | generation with the conditional that triggers distcc and ccache FEATURES setup. (trunk r8833) svn path=/main/branches/2.1.2/; revision=8834
* Fix useq() so that it won't generate a bogus IUSE QA NoticeZac Medico2007-12-021-0/+2
| | | | | | | if called during the "depend" phase with a flag that uses IUSE defaults. (trunk r8805) svn path=/main/branches/2.1.2/; revision=8806
* Update comments about ROOTPATH:Zac Medico2007-12-011-1/+2
| | | | | | | sandbox's bashrc sources /etc/profile which unsets ROOTPATH, so we have to back it up and restore it. (trunk r8775:8777) svn path=/main/branches/2.1.2/; revision=8778
* Fix quoting for PORTAGE_ROOTPATH. (trunk r8774)Zac Medico2007-12-011-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8775
* sandbox unsets ROOTPATH, so we have to back it up on the pythonZac Medico2007-11-301-0/+6
| | | | | | side then restore it on the bash side. (trunk r8768) svn path=/main/branches/2.1.2/; revision=8769
* Bug #200775 - Save more portage generated environmentZac Medico2007-11-301-7/+20
| | | | | | | variables that are in environment.bz2 so that they are available for use by tools such as epm. (trunk r8765) svn path=/main/branches/2.1.2/; revision=8766
* Don't use sandbox's BASH_ENV for new shells because it doesZac Medico2007-11-301-0/+4
| | | | | | | 'source /etc/profile' which can interfere with the build environment by modifying our PATH. (trunk r8761) svn path=/main/branches/2.1.2/; revision=8762
* Bug #189417 - When ${T}/environment exists, isolate the ebuildZac Medico2007-11-301-23/+5
| | | | | | | | | environment from the calling environment. This makes it possible for the build to unset a variable that was inherited from the calling environment, and the variable will remain unset between phases. (trunk r8752:8755) svn path=/main/branches/2.1.2/; revision=8756
* Adjust PYTHONPATH when calling portageq so that variableZac Medico2007-11-291-0/+3
| | | | | | PORTAGE_PYM_PATH works. (trunk r8745) svn path=/main/branches/2.1.2/; revision=8746