summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Bug #335340 - Add support for PORTAGE_BZIP2_COMMAND andZac Medico2010-08-302-1/+2
| | | | | | PORTAGE_BUNZIP2_COMMAND settings in make.conf. This only adds support for binary packages, since that's where pbzip2 can provide the most benefit in common cases.
* Invert _ebuild_helpers_path EAPI conditional in ebuild.sh.Zac Medico2010-08-301-3/+3
|
* Bug fix in canonicalize() function.Ulrich Mueller2010-08-301-3/+3
|
* Rename the portage.sets module to portage._sets since it will be usefulZac Medico2010-08-303-4/+4
| | | | | in the upcoming 2.1.9 branch which will not have sets support but will still have the code in private and disabled form.
* Rename vardbapi.plib_registry to vardbapi._plib_registry since I'mZac Medico2010-08-291-1/+1
| | | | | | trying to minimize the diff between the master branch and upcoming 2.1.9 branch which will not have preserve-libs support but will still have the code in private and disabled form.
* Add canonicalize() function, replacement for "readlink -f".v2.2_rc72Ulrich Mueller2010-08-281-16/+22
| | | | | Expand symlinks in prepcompress() completely, not only to the last directory component.
* Change a comment in prepcompress().Ulrich Mueller2010-08-281-2/+3
|
* Update copyright headers.Ulrich Mueller2010-08-284-4/+4
|
* Implement controllable compression and docompress, bug #273633.Ulrich Mueller2010-08-289-4/+142
|
* Make egencache --update-use-local-desc use codecs.open() to write toZac Medico2010-08-281-14/+21
| | | | use.local.desc (fixes possible unicode issues with python3).
* For egencache --preserve-comments, probe comments in binary mode inZac Medico2010-08-281-9/+11
| | | | | | order to avoid potential character encoding issues (both in terms of decoding and in calculating file position given variable-width character encodings like UTF-8.
* egencache: Add comment preserving to --update-use-local-desc.Michał Górny2010-08-281-5/+32
|
* Support specifying an alternate output file for --update-use-local-desc.Michał Górny2010-08-281-16/+31
|
* Define a cmp work-alike function for use in the egencacheZac Medico2010-08-271-5/+11
| | | | | --update-use-local-desc code, since it's ugly to have so many repetitions of this construct.
* Fix breakage in egencache --update-use-local-desc code.Zac Medico2010-08-271-8/+21
|
* Use cmp_sort_key() for python3 compatibility.Zac Medico2010-08-271-5/+4
|
* Support returning multiple flag descriptions when restrict is used.Michał Górny2010-08-271-1/+28
| | | | | | | Return a dict of dicts in parse_metadata_use(), with second-level keys being the restrict strings (or None when no restrict). When generating use.local.desc, use the description from the possibly-highest-matching atom.
* Fix broken reference to config.pmaskdict for repoman --without-mask.Zac Medico2010-08-271-1/+4
|
* ecompressdir: use proper exit valueJonathan Callen2010-08-271-1/+1
|
* repoman: Fix NameError on musedict when metadata is not available.Michał Górny2010-08-271-1/+1
|
* Add a IUSE.missing repoman category for packages that have a USEZac Medico2010-08-261-0/+1
| | | | | | conditional which references a flag that is not listed in IUSE. Also split out a Package._metadata_exception() method to handle IUSE.missing for *DEPEND and SRC_URI.
* Use dict.__iter__() instead of keys().Zac Medico2010-08-261-1/+1
|
* Make repoman ignore FEATURES=digest when in manifest-check mode.Zac Medico2010-08-261-1/+2
|
* Make the Atom class add 'EAPI.incompatible' category attributes toZac Medico2010-08-261-27/+0
| | | | | | | | InvalidAtom exceptions, make use_reduce() raise InvalidDependString exceptions that encapsulate InvalidAtom exceptions, and make Package._validate_deps() use the InvalidAtom categories when recording the invalid metadata for use by repoman. Also, remove the EAPI.incompatible code from repoman that's no longer used.
* Make egencache only show a warning about FEATURES=metata-transfer if theZac Medico2010-08-261-1/+1
| | | | --update option is given.
* Fix up error handling for egencache --update-use-local-desc.Zac Medico2010-08-261-3/+10
|
* egencache: Introduce the --update-use-local-desc action.Michał Górny2010-08-261-2/+72
|
* Fix repoman's allvalid variable to account for more possibly invalidZac Medico2010-08-261-1/+4
| | | | ebuilds.
* egencache: introduce the preliminary support for multiple actions.Michał Górny2010-08-261-30/+45
| | | | | | Regroup the options, splitting them into 'Actions', 'Common' and action-specific options. Always check whether the 'update' action was chosen. Support catching multiple return codes.
* Parse flag descriptions in repoman.utilities.parse_metadata_use().Michał Górny2010-08-261-5/+3
| | | | | | Grab the USE descriptions from metadata.xml within parse_metadata_use(). Instead of a plain flag list, return a dict containing both the flag names and their descriptions.
* Disable 'unused local USE-description' check if there are any invalids.Michał Górny2010-08-261-5/+9
| | | | | | If any of the ebuilds is considered invalid, the used_useflags list may not be complete. Thus, performing the test could cause a lot of useless noise.
* Remove unused myiuse variable in repoman.Zac Medico2010-08-261-5/+0
|
* Let use_reduce and Atom do EAPI checksSebastian Luther2010-08-261-3/+2
|
* Add ebuild(1) support for FEATURES=digest.Zac Medico2010-08-251-1/+6
|
* Use a PORTAGE_SIGPIPE_STATUS variable to export 128 + SIGPIPE to theZac Medico2010-08-251-2/+3
| | | | | ebuild environment. SIGPIPE is typically 13, but its better not to assume that.
* Make save_ebuild_env() filter assert_sigpipe_ok().Zac Medico2010-08-251-1/+1
|
* Fix repoman to support FEATURES=digest (reportedly it used to workZac Medico2010-08-251-0/+1
| | | | but has stopped working since recent changes).
* Add EROOT support to regenworld.Zac Medico2010-08-251-9/+9
|
* Make regenworld write changes to a temporary file, and tell the userZac Medico2010-08-251-3/+41
| | | | to update the file manually if desired.
* Use Package.iuse.is_valid_flag() to account for implicit IUSE.Zac Medico2010-08-241-1/+1
|
* repoman: Let repoman check for flags missing from IUSESebastian Luther2010-08-241-1/+2
|
* Handle SIGPIPE when unpack() extracts tar files through a pipe (bug #309001).Zac Medico2010-08-232-2/+28
| | | | | | | 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.
* Remove python-oriented checks from install_qa_check() since I'm unsureZac Medico2010-08-221-29/+0
| | | | | about these policy decisions being included in portage. Besides, these kinds of things could go in the python eclass.
* repoman: check for deprecated eclasseswired2010-08-221-0/+2
| | | | | | compare the inherited eclasses to a list of deprecated eclasses. print QA warnings for each deprecated eclass found and suggest an alternative for those that have one.
* Bug #324191 - Add support for FEATURES=compress-build-logs. The causesZac Medico2010-08-211-2/+6
| | | | | | | all build logs to be compressed while they are being written. Log file names have an extension that is appropriate for the compression type. Currently, only gzip(1) compression is supported, so build logs will have a '.gz' extension when this feature is enabled.
* 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.