Zac Medico [Sun, 13 May 2012 21:42:08 +0000 (14:42 -0700)]
egencache: use vercmp instead of pkgcmp
Zac Medico [Sun, 13 May 2012 20:36:59 +0000 (13:36 -0700)]
best_match_to_list: use _pkg_str
Zac Medico [Sun, 13 May 2012 20:21:55 +0000 (13:21 -0700)]
match_from_list: avoid multiple meanings of mycpv
Zac Medico [Sun, 13 May 2012 20:10:52 +0000 (13:10 -0700)]
cpvequal: use _pkg_str
Zac Medico [Sun, 13 May 2012 19:49:41 +0000 (12:49 -0700)]
_pms_eapi_re: require whitespace before comment
See discussion on gentoo-pms mailing list here:
http://archives.gentoo.org/gentoo-pms/msg_1f76a55d04b4f2a3721cddc611434aad.xml
Zac Medico [Sun, 13 May 2012 09:31:15 +0000 (02:31 -0700)]
match_from_list: preserve input in result
This fixes an unintended change in behavior from commit
f31320b67c9f593a2a8592e1a4e547f5f641943a.
Zac Medico [Sun, 13 May 2012 09:05:14 +0000 (02:05 -0700)]
Use _pkg_str.version more.
Zac Medico [Sun, 13 May 2012 08:44:07 +0000 (01:44 -0700)]
Don't cache vercmp results.
It's probably not very helpful to cache vercmp results, since identical
version comparisons probably don't recur very often.
Zac Medico [Sun, 13 May 2012 08:36:25 +0000 (01:36 -0700)]
_pkg_str: add version attribute for comparisons
This attribute can be passed directly into vercmp, avoiding the need to
generate this string many times.
Zac Medico [Sun, 13 May 2012 07:32:04 +0000 (00:32 -0700)]
depgraph: minimize match_from_list operations
In _iter_match_pkgs, call match_from_list on one cpv at a time, in
order to avoid unnecessary match_from_list comparisons on versions that
are never yielded from this method.
Zac Medico [Sun, 13 May 2012 06:23:35 +0000 (23:23 -0700)]
SimpleResolverTestCase: handle PYTHONHASHSEED
Zac Medico [Sun, 13 May 2012 01:07:29 +0000 (18:07 -0700)]
_pkg_str: add slot and repo attributes
Zac Medico [Sat, 12 May 2012 23:27:32 +0000 (16:27 -0700)]
match_from_list: handle Package.UNKNOWN_REPO
Zac Medico [Sat, 12 May 2012 22:57:03 +0000 (15:57 -0700)]
_pkg_str: add cpv attribute for match_from_list
Arfrever Frehtes Taifersar Arahesis [Sat, 12 May 2012 22:30:46 +0000 (00:30 +0200)]
Check type of xml.etree.ElementTree.TreeBuilder before applying
workaround for http://bugs.python.org/issue14007.
Zac Medico [Sat, 12 May 2012 22:16:23 +0000 (15:16 -0700)]
test_digraph: fix get_cycles for PYTHONHASHSEED
Zac Medico [Sat, 12 May 2012 21:11:32 +0000 (14:11 -0700)]
test_digraph: fix bfs for PYTHONHASHSEED=random
Zac Medico [Sat, 12 May 2012 19:27:17 +0000 (12:27 -0700)]
test_stackLists: fix for PYTHONHASHSEED="random"
Arfrever Frehtes Taifersar Arahesis [Sat, 12 May 2012 16:25:16 +0000 (18:25 +0200)]
Add workaround for bugs.python.org/issue14007.
Zac Medico [Sat, 12 May 2012 09:25:39 +0000 (02:25 -0700)]
Add a _pkg_str class to cache catpkgsplit results
This will compensate for the removal of the catpkgsplit cache in commit
68888b0450b1967cb70673a5f06b04c167ef879c.
Zac Medico [Sat, 12 May 2012 07:36:15 +0000 (00:36 -0700)]
catpkgsplit: don't cache results
The cache has been subtly broken since commit
eb2056631021a04b62c228206e44376f5c7a81ba when the eapi parameter was
added. If necessary, we can add a cpv class (or something like that) in
order to avoid redundant catpkgsplit calls in places like
match_from_list.
Mike Frysinger [Fri, 11 May 2012 16:36:22 +0000 (12:36 -0400)]
prepstrip/ecompressdir: parallelize operations
Stealing some ideas from ferringb, add a new API for doing parallel
processing in bash, and then deploy this with the stripping and
compressing stages.
For stripping coreutils which has about 100 ELFs, this brings time
to strip down from ~7 seconds to ~0.7 seconds on my system.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Arfrever Frehtes Taifersar Arahesis [Sat, 12 May 2012 04:07:12 +0000 (06:07 +0200)]
Add portage.eapi.eapi_allows_dots_in_use_flags().
Arfrever Frehtes Taifersar Arahesis [Sat, 12 May 2012 03:58:38 +0000 (05:58 +0200)]
Allow dots in package names in EAPI="4-python".
Zac Medico [Sat, 12 May 2012 01:34:36 +0000 (18:34 -0700)]
Fix handling of empty PORTDIR{,_OVERLAY} setting.
Zac Medico [Fri, 11 May 2012 23:39:06 +0000 (16:39 -0700)]
Cleanup profile-formats code.
Zac Medico [Fri, 11 May 2012 23:28:05 +0000 (16:28 -0700)]
RepoConfig: sort __slots__
Zac Medico [Fri, 11 May 2012 23:17:32 +0000 (16:17 -0700)]
Avoid redundant layout.conf parsing.
By passing the RepoConfigLoader instance into LocationsManager, we can
re-use previously parsed layout.conf data. The RepoConfigLoader
instance will also be useful for bug #414961.
Zac Medico [Fri, 11 May 2012 22:53:50 +0000 (15:53 -0700)]
config: load repositories before profile
This is useful for bug #414961, since we want to have access to the
repositories when we're loading the profile.
Zac Medico [Fri, 11 May 2012 21:49:29 +0000 (14:49 -0700)]
config: propagate SYNC to self.repositories
This resolves a circular dependency on the SYNC variable, which is
useful for bug #414961, since we want to be able to initialize
self.repositories before the SYNC variable is known.
Zac Medico [Fri, 11 May 2012 21:04:15 +0000 (14:04 -0700)]
config: use shlex to split known_repos
Zac Medico [Fri, 11 May 2012 06:32:26 +0000 (23:32 -0700)]
PollScheduler: use local EventLoop (thread safe)
For API consumers, this makes the doebuild() function compatible with
threads, avoiding a ValueError raised by the signal module, as reported
at http://bugs.sabayon.org/show_bug.cgi?id=3305. Classes derived from
PollScheduler still use the signal module when possible.
Zac Medico [Thu, 10 May 2012 21:23:56 +0000 (14:23 -0700)]
Don't write or trust cache for unsupported EAPIs.
Since we're supposed to be able to efficiently obtain the EAPI from
_parse_eapi_ebuild_head, we don't need to write or trust cache entries
for unsupported EAPIs.
Arfrever Frehtes Taifersar Arahesis [Thu, 10 May 2012 19:54:25 +0000 (21:54 +0200)]
Make REPOSITORY variable again available in global scope of ebuilds,
which use EAPI="4-python".
This fixes regression introduced in commit
1c26d24dfc869a6f5ef426f7c02e1d25abcda34e.
Zac Medico [Wed, 9 May 2012 22:28:54 +0000 (15:28 -0700)]
porttree.py: remove unused imports
Zac Medico [Wed, 9 May 2012 22:23:24 +0000 (15:23 -0700)]
Refer to bug #402167 where appropriate.
Zac Medico [Wed, 9 May 2012 22:08:08 +0000 (15:08 -0700)]
doebuild_environment: clean up EAPI related code
Zac Medico [Wed, 9 May 2012 20:31:52 +0000 (13:31 -0700)]
EbuildMetadataPhase: handle empty EAPI from bash
Zac Medico [Wed, 9 May 2012 20:00:32 +0000 (13:00 -0700)]
Split out eapi_invalid function.
Zac Medico [Wed, 9 May 2012 18:21:15 +0000 (11:21 -0700)]
ebuild.sh: remove redundant EAPI=0 default
Zac Medico [Wed, 9 May 2012 18:10:56 +0000 (11:10 -0700)]
Show unsatisfied REQUIRED_USE for bug #415125.
Zac Medico [Wed, 9 May 2012 08:12:58 +0000 (01:12 -0700)]
doebuild_environment: remove unused eapi parsing
Zac Medico [Wed, 9 May 2012 06:38:47 +0000 (23:38 -0700)]
Parse EAPI with pattern from PMS section 7.3.1.
This implements the specification that was approved in Gentoo's council
meeting on May 8, 2012 (see bug #402167). The parse-eapi-ebuild-head
FEATURES setting is now enabled by default, and causes non-conformant
ebuilds to be treated as invalid. This behavior will soon become
enabled unconditionally.
Zac Medico [Wed, 9 May 2012 00:45:53 +0000 (17:45 -0700)]
die: fix ${T}/build.log{,.gz} message
Zac Medico [Tue, 8 May 2012 16:38:44 +0000 (09:38 -0700)]
make.conf.5: COLLISION_IGNORE s/shell/fnmatch/
Zac Medico [Tue, 8 May 2012 15:42:12 +0000 (08:42 -0700)]
Strip EPREFIX in RESTRICT=binchecks QA Notice.
Zac Medico [Tue, 8 May 2012 07:39:36 +0000 (00:39 -0700)]
NEEDED.ELF.2: include sonames from $ORIGIN
This reverts the behavior change from bug #205531 (see commit
5baa57a65368472c2c22b9bd2b30e634ef644b92). That special handling should
be unnecessary since the changes from bug #289180 (see commit
296fc63fee262600811520fccf4692f47a39ffba), where the
LinkageMapELF.findConsumers() exclude_providers argument is used to
exclude irrelevant consumers.
Zac Medico [Tue, 8 May 2012 06:23:40 +0000 (23:23 -0700)]
COLLISION_IGNORE: support fnmatch patterns
This allows it to be combined with the COLLISION_IGNORE_UNOWNED
variable from commit
33545ea18e8816addb3c54bb26a0cc788b8512e6, so only
one variable is needed.
Zac Medico [Sat, 5 May 2012 16:54:14 +0000 (09:54 -0700)]
COLLISION_IGNORE: handle prefix
Zac Medico [Sat, 5 May 2012 16:37:51 +0000 (09:37 -0700)]
COLLISION_IGNORE_UNOWNED: tweak default *.py[co]
Arfrever Frehtes Taifersar Arahesis [Sat, 5 May 2012 16:00:57 +0000 (18:00 +0200)]
Enable globstar shell option by default in EAPI="4-python".
Zac Medico [Sat, 5 May 2012 07:32:34 +0000 (00:32 -0700)]
QA Notice for RESTRICT=binchecks + ELF files
Zac Medico [Sat, 5 May 2012 07:16:41 +0000 (00:16 -0700)]
Create NEEDED.ELF.2 despite RESTRICT=binchecks.
This info is too useful not to have (it's required for things like
preserve-libs), and it's tempting for ebuild authors to set
RESTRICT=binchecks for packages containing pre-built binaries.
Krzysztof Pawlik [Sat, 5 May 2012 06:47:27 +0000 (23:47 -0700)]
Support COLLISION_IGNORE_UNOWNED="*.pyc *.pyo"
This will fix bug #410691.
Zac Medico [Thu, 3 May 2012 01:32:33 +0000 (18:32 -0700)]
composite_db._visible: fix AttributeError
Zac Medico [Wed, 2 May 2012 19:55:31 +0000 (12:55 -0700)]
dispatch-conf: use shlex to parse diff command
Zac Medico [Tue, 1 May 2012 21:21:44 +0000 (14:21 -0700)]
validate_desktop_entry: handle Python 3.1
Arfrever Frehtes Taifersar Arahesis [Tue, 1 May 2012 19:51:16 +0000 (21:51 +0200)]
Bug #413983: Add portage.util.urlopen(), which transparently
handles authentication in the way compatible with Python 3.
Zac Medico [Tue, 1 May 2012 13:10:42 +0000 (06:10 -0700)]
Quote atoms in die message for bug #414201.
This allows zsh users to copy/paste while avoiding = expansion.
Zac Medico [Tue, 1 May 2012 02:26:52 +0000 (19:26 -0700)]
repoman: ignore false Service desktop entry error
This will fix bug #414125.
Zac Medico [Mon, 30 Apr 2012 19:17:06 +0000 (12:17 -0700)]
repoman: check LIVEVCS.stable for gentoo only
This will fix bug #414123.
James Le Cuirot [Sat, 28 Apr 2012 16:33:07 +0000 (17:33 +0100)]
ebuild.sh: source /etc/portage/env scripts after /etc/portage/bashrc
This will fix bug #413895.
Zac Medico [Wed, 25 Apr 2012 16:37:48 +0000 (09:37 -0700)]
LocationsManager: empty profiles_complex on error
This prevents an IndexError in code which assumes that profiles and
profiles_complex are the same length.
Zac Medico [Mon, 23 Apr 2012 20:15:56 +0000 (13:15 -0700)]
repoman: fix portage.internal false positives
Zac Medico [Sun, 22 Apr 2012 23:01:07 +0000 (16:01 -0700)]
EapiDefinition: handle impossible "%d" % None
Zac Medico [Sun, 22 Apr 2012 22:11:16 +0000 (15:11 -0700)]
doebuild: cleanup tempfile if package phase fails
Zac Medico [Sun, 22 Apr 2012 21:58:55 +0000 (14:58 -0700)]
portageq: use return instead of sys.exit
Zac Medico [Sun, 22 Apr 2012 21:41:03 +0000 (14:41 -0700)]
dep.__init__: move writemsg import to top
Zac Medico [Sun, 22 Apr 2012 21:10:07 +0000 (14:10 -0700)]
repoman: cleanup code for KEYWORDS.invalid
Zac Medico [Sun, 22 Apr 2012 20:34:18 +0000 (13:34 -0700)]
fakedbapi.cp_list: remove obsolete virtual code
This should have been included in commit
d30db49bcaecbdeb20f6d4e180979b60b6260f69.
Arfrever Frehtes Taifersar Arahesis [Sun, 22 Apr 2012 19:49:49 +0000 (21:49 +0200)]
Print working directory in die message to simplify debugging.
Zac Medico [Sun, 22 Apr 2012 19:13:58 +0000 (12:13 -0700)]
portdbapi: update comment about repoman caches
Zac Medico [Sun, 22 Apr 2012 18:57:25 +0000 (11:57 -0700)]
dbapi.cp_list: remove special case for virtuals
Since commit
d603f1440c814377fbc1965729fd9b6b008cf76d, the match caches
use the result from dep_expand for the cache_key, so the caches are
free of old-style virtual mappings. This allows the match caches to be
safely shared with cp_list.
Zac Medico [Sun, 22 Apr 2012 17:56:01 +0000 (10:56 -0700)]
Add ${T}/build.log symlink to PORT_LOGDIR.
This will fix bug #412865. This makes it easier on people who
`emerge foo`, do stuff, `emerge foo`, do stuff, etc... to have
the same path to the log in between runs.
Zac Medico [Sun, 22 Apr 2012 17:41:04 +0000 (10:41 -0700)]
repoman: support * and ~* keywords
These special keywords are used by Funtoo, and have been supported in
KeywordsManager since commit
9144faeb653b9f1dbe74c69f85cd48f26761aa2f.
Zac Medico [Sat, 21 Apr 2012 06:38:17 +0000 (23:38 -0700)]
dbapi: account for unevaluated_atom in caches
This will fix bug 412391. This is analogous to the bug fixed in
commit
5438bb29c996d777b6343515995176912a7c137f.
Zac Medico [Sat, 21 Apr 2012 01:01:30 +0000 (18:01 -0700)]
Show config updates later for bug #412845.
Greg Turner [Wed, 18 Apr 2012 01:48:32 +0000 (18:48 -0700)]
mergeme: cleanup hardlink_candidates, bug #412453
Zac Medico [Mon, 16 Apr 2012 07:15:56 +0000 (00:15 -0700)]
Avoid redundant news display for bug #412161.
Zac Medico [Sun, 15 Apr 2012 22:21:49 +0000 (15:21 -0700)]
repoman: update EAPI.definition check for PMS
The plan is to update PMS section 8.3.1 as discussed here:
http://archives.gentoo.org/gentoo-pms/msg_ef7635aa655913f2386e64e385f5a6ae.xml
Zac Medico [Sat, 14 Apr 2012 02:47:13 +0000 (19:47 -0700)]
Handle SystemError when importing xml libraries.
Zac Medico [Sat, 14 Apr 2012 00:56:24 +0000 (17:56 -0700)]
perform_all: fix TypeError for bug #411897
Zac Medico [Sat, 14 Apr 2012 00:37:34 +0000 (17:37 -0700)]
dohtml: support FEATURES=force-prefix
Zdenek Behan [Fri, 13 Apr 2012 21:51:46 +0000 (14:51 -0700)]
portageq mass_best_visible: optional "type" arg
Zac Medico [Fri, 13 Apr 2012 19:30:40 +0000 (12:30 -0700)]
EbuildBinpkg: remove temp file on failure
Zac Medico [Fri, 13 Apr 2012 18:27:44 +0000 (11:27 -0700)]
ebuild.5: use example.com for bug #411835
Zac Medico [Wed, 11 Apr 2012 16:55:22 +0000 (09:55 -0700)]
phases.docbook: add phases for new EAPIs
Zac Medico [Thu, 5 Apr 2012 21:37:35 +0000 (14:37 -0700)]
depgraph._complete_graph: fix for --root-deps
Zac Medico [Thu, 5 Apr 2012 19:54:28 +0000 (12:54 -0700)]
config: populate expand map with profile.env
This behavior got disabled by commit
ed8a457e265ea1c23b66aeb12d00f1abd3d79e60, and now it's restored.
Zac Medico [Thu, 5 Apr 2012 19:37:40 +0000 (12:37 -0700)]
Limit long slot conflict loop for bug #410801.
Zac Medico [Thu, 5 Apr 2012 18:52:51 +0000 (11:52 -0700)]
Scheduler: optimize action_uninstall
Zac Medico [Thu, 5 Apr 2012 18:22:49 +0000 (11:22 -0700)]
depgraph._validate_blockers: optimize --root-deps
Zac Medico [Thu, 5 Apr 2012 18:08:52 +0000 (11:08 -0700)]
depgraph._load_vdb: optimize --root-deps
Sven Vermeulen [Thu, 5 Apr 2012 16:40:55 +0000 (09:40 -0700)]
Support /sys/fs/selinux/context for bug #410687.
Boris Minev [Tue, 3 Apr 2012 17:56:48 +0000 (10:56 -0700)]
unmerge: display progress counter, bug #386901
Zac Medico [Tue, 3 Apr 2012 16:06:38 +0000 (09:06 -0700)]
test_getconfig: add case for bug #410625
Zac Medico [Tue, 3 Apr 2012 15:38:13 +0000 (08:38 -0700)]
_check_temp_dir: explicitly close temp file
Zac Medico [Tue, 3 Apr 2012 06:52:09 +0000 (23:52 -0700)]
Don't use varexpand for profile.env, bug #410625.
Zac Medico [Sun, 1 Apr 2012 17:15:57 +0000 (10:15 -0700)]
repoman: only assume cvs preserves mtimes
Zac Medico [Sun, 1 Apr 2012 16:48:38 +0000 (09:48 -0700)]
repoman: disable header/timestamp check for svn