summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* _eapi4_src_install: handle empty DOCS like PMSZac Medico2011-02-191-1/+1
| | | | This will fix bug #355635.
* docompress, prepcompress: Add missing quotes.Ulrich Mueller2011-02-191-2/+2
|
* default_src_test: handle EAPI 4 emake failureZac Medico2011-02-061-4/+10
| | | | This will fix bug #353897.
* econf: check confgure --help for --disable-dep...Zac Medico2011-01-121-1/+3
| | | | This is the new behavior, for bug #211529.
* ebuild.sh: skip QA_* init in "depend" phaseZac Medico2011-01-091-20/+21
|
* dyn_clean: remove .pretendedZac Medico2010-12-311-1/+1
|
* unpack: handle echo failure in unzip pipeZac Medico2010-12-291-1/+1
| | | | This will fix bug #338744.
* bash: as a general rule, use read -rZac Medico2010-12-291-2/+2
| | | | This solves cases like bug #350045.
* Substitute bash builtin >> for touch command.Zac Medico2010-12-191-15/+25
| | | | | It should be faster to use the bash builtin, and also allows us to avoid issues with touch breakage (like in bug #348640).
* ebuild.sh: only run pretend once for ebuild(1)Zac Medico2010-12-051-1/+9
|
* EAPI 4: Support MERGE_TYPE (bug #347351)Zac Medico2010-12-031-1/+2
|
* fix QA_EXECSTACK spelling for QA_PREBUILTZac Medico2010-12-021-1/+1
| | | | | Thanks to Sébastien Fabbro <bicatali@gentoo.org> for reporting in bug #346847.
* debug-print: don't stat $T during depend phasev2.2.0_alpha2Zac Medico2010-10-271-1/+1
|
* ebuild: move SANDBOX_ON=0 setting laterZac Medico2010-10-271-3/+3
|
* Only addwrite for tmp dirs if sandbox is enabled.Zac Medico2010-10-271-1/+1
| | | | This should fix bug #307729.
* debug-print-function: output like older portageZac Medico2010-10-271-1/+1
|
* debug-print: permission fixesZac Medico2010-10-271-4/+7
|
* Simplify retval checks in has_version() and best_version().Michał Górny2010-10-241-10/+4
|
* Simplify debug-print*() functions code.Michał Górny2010-10-241-20/+12
| | | | | Make debug-print() and friends a lot simpler. Thanks to Mike Frysinger for his suggestions.
* Fix default() and default_src_install() definitions to account forZac Medico2010-09-201-0/+10
| | | | the new EAPI 4 default src_install implementation.
* Revert "Add option -s to docompress command."Ulrich Mueller2010-09-201-7/+1
| | | | This reverts commit f2375609adc80ebe5395d84902af4045ecea2f73.
* Put more variables in PORTAGE_READONLY_VARS instead of usingZac Medico2010-09-171-4/+14
| | | | save_ebuild_env() to unset them.
* Rename READONLY_EBUILD_METADATA and READONLY_PORTAGE_VARS to startZac Medico2010-09-171-4/+5
| | | | with PORTAGE_, and make them both readonly.
* Add PORTAGE_BUILDDIR to READONLY_PORTAGE_VARS since it's extremelyZac Medico2010-09-171-1/+1
| | | | important now that ebuild-ipc relies on it.
* Add option -s to docompress command.Ulrich Mueller2010-09-141-1/+7
|
* Remove redundant local retval declaration in has_version().Zac Medico2010-09-101-1/+0
|
* Bug #336644 - Make ebuild-ipc.py use array.fromfile() to read picklesZac Medico2010-09-091-8/+7
| | | | | | | in single atomic non-blocking read() calls, similar to how AbstractPollTask._read_buf() does it. If the read fails, exit with status 2 so that best_version() and has_version() can detect the error and die when necessary.
* Filter the FEATURES variable out of the environment between phases,Zac Medico2010-09-071-2/+3
| | | | | | | so that it always matches the latest value from the config class and it can never be stale. With the ability to use package.env for per-package FEATURES settings, there's no need for bashrc to make persistent modifications to the FEATURES variable.
* Fix dyn_setup 'already setup' message to refer to setup instead ofZac Medico2010-09-071-1/+1
| | | | prepare.
* Move stale elog cleanup code from ebuild.sh to _doebuild_spawn(), soZac Medico2010-09-071-10/+11
| | | | that elog messages generated by bashrc are preserved when appropriate.
* Define EBUILD_MASTER_PID earlier in ebuild.sh, before $EBUILD isv2.2_rc76Zac Medico2010-09-061-4/+8
| | | | sourced.
* Bug #336285 - Add workaround to unpack() in order to prevent unzipZac Medico2010-09-061-0/+3
| | | | from interactively prompting under some error conditions.
* Remove all \a (alert/bell/beep) tokens (bug 336024)Sebastian Luther2010-09-061-1/+0
|
* print up-to-date copyright yearsFabian Groffen2010-09-051-1/+1
|
* Take the code which displays ebuild information before pkg_setup,Zac Medico2010-09-051-5/+0
| | | | | and move it from ebuild.sh to EbuildPhase. This way we can easily use python to extend it for bug #336019.
* Unify to different pieces of code that handle sandbox considerations forZac Medico2010-09-021-12/+12
| | | | TEMP, TMP, and TMPDIR variables.
* Prevent local x variable in ebuild_main() from showing up inZac Medico2010-09-021-2/+2
| | | | environment.bz2.
* Prevent the local filter_opts variable in filter_readonly_variables()Zac Medico2010-09-021-5/+6
| | | | from being saved in environment.bz2.
* Add a _SANDBOX_COMPAT_LEVEL constant which will be used to enableZac Medico2010-09-021-0/+9
| | | | a workaround for bug #288863 in the stable branch.
* When signaling successful exit from an ebuild phase via ebuild-ipc,Zac Medico2010-09-021-1/+23
| | | | | | first check for non-empty $SANDBOX_LOG and signal unsuccessful exit if necessary. This fixes an issue with phases being treated as successful even when there were sandbox violations.
* Add support to config.setcpv() for caching USE settings from builtZac Medico2010-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packages, and use it for evaluating conditional USE deps in atoms passed via IPC to helpers like has_version and best_version. Since the pickled object that contains the IPC command will no longer contain USE, it should solve cases that have been reported in which large USE strings trigger poor handling of non-blocking read in pickle.load(): Traceback (most recent call last): File "/usr/bin/emerge", line 43, in <module> retval = emerge_main() File "/usr/lib64/portage/pym/_emerge/main.py", line 1649, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/lib64/portage/pym/_emerge/actions.py", line 437, in action_build retval = mergetask.merge() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1033, in merge rval = self._merge() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1349, in _merge self._main_loop() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1498, in _main_loop self._poll_loop() File "/usr/lib64/portage/pym/_emerge/PollScheduler.py", line 139, in _poll_loop handler(f, event) File "/usr/lib64/portage/pym/_emerge/EbuildIpcDaemon.py", line 36, in _input_handler obj = pickle.load(self._files.pipe_in) File "/usr/lib64/python2.6/pickle.py", line 1370, in load return Unpickler(file).load() File "/usr/lib64/python2.6/pickle.py", line 858, in load dispatch[key](self) File "/usr/lib64/python2.6/pickle.py", line 1195, in load_setitem value = stack.pop() IndexError: pop from empty list
* Add a fallback PORTAGE_BZIP2_COMMAND setting in ebuild.sh, as aZac Medico2010-08-311-0/+6
| | | | workaround for portage-9999 users.
* Bug #335340 - Use PORTAGE_BUNZIP2_COMMAND and PORTAGE_BZIP2_COMMAND inZac Medico2010-08-301-9/+9
| | | | | | ebuild.sh where appropriate: * unpack() * environment.bz2 compression
* Invert _ebuild_helpers_path EAPI conditional in ebuild.sh.Zac Medico2010-08-301-3/+3
|
* Implement controllable compression and docompress, bug #273633.Ulrich Mueller2010-08-281-0/+28
|
* Handle SIGPIPE when unpack() extracts tar files through a pipe (bug #309001).Zac Medico2010-08-231-2/+2
| | | | | | | When checking ${PIPESTATUS[@]} for extraction of tar files in unpack(), use a new assert_sigpipe_ok() function which behaves the same as the existing assert() function except that it tolerates pipe writers being killed by SIGPIPE.
* Quote arrays in QA_PREBUILT handling.Zac Medico2010-08-211-1/+1
|
* Add support for a QA_PREBUILT variable should contain a list ofZac Medico2010-08-211-0/+20
| | | | | | pre-built binaries. Paths listed here will be appended to each of the other QA_* variables. Thanks to Diego Pettenò <flameeyes@g.o> for the suggestion.
* At some point we may want to stop exporting FEATURES to the ebuildZac Medico2010-08-201-1/+1
| | | | | | | environment, in order to prevent ebuilds from abusing it. In preparation for that, export it as PORTAGE_FEATURES so that bashrc users will be able to migrate any FEATURES conditional code to use this alternative variable.
* * In helpers_die arguments, display ${0##*/} instead of $0 since $0Zac Medico2010-08-181-4/+4
| | | | | | is needlessly long. * When calling helpers_die from a function, use ${FUNCNAME[0]} in arguments instead of $0.