portage.git
15 years agoAdjust chunk.section.depth and generate.section.toc.level so that the EAPI 2
Zac Medico [Thu, 11 Sep 2008 05:50:42 +0000 (05:50 -0000)]
Adjust chunk.section.depth and generate.section.toc.level so that the EAPI 2
draft docs appear on a single page which includes it's own table of contents.

svn path=/main/trunk/; revision=11503

15 years agoRemove docs for the proposed eapi* default phase functions since they are
Zac Medico [Thu, 11 Sep 2008 05:03:35 +0000 (05:03 -0000)]
Remove docs for the proposed eapi* default phase functions since they are
unpopular.

svn path=/main/trunk/; revision=11502

15 years agoRemove docs for the proposed unpack() gitweb snapshot extension since it's
Zac Medico [Thu, 11 Sep 2008 04:56:08 +0000 (04:56 -0000)]
Remove docs for the proposed unpack() gitweb snapshot extension since it's
unpopular.

svn path=/main/trunk/; revision=11501

15 years agoNew debugedit support for FEATURES=splitdebug, by Sven Wegener:
Zac Medico [Wed, 10 Sep 2008 20:46:05 +0000 (20:46 -0000)]
New debugedit support for FEATURES=splitdebug, by Sven Wegener:

This will create new-style buildid symlinks for the splitted debuginfo and also
a symlink to the binary that belongs to the debuginfo. Requires debugedit from
rpm 5. Old versions of debugedit ignore all unkown command line arguments, so
this is a no-op for them.

Information: http://fedoraproject.org/wiki/Releases/FeatureBuildId
New debugedit tarball: http://dev.gentoo.org/~swegener/distfiles/debugedit-5.0.0.tar.bz2

svn path=/main/trunk/; revision=11500

15 years agoDon't mention log files in $T for eqawarn messages since the logs are likely
Zac Medico [Sat, 6 Sep 2008 22:57:28 +0000 (22:57 -0000)]
Don't mention log files in $T for eqawarn messages since the logs are likely
to get removed and the user can just use the log from elog anyway. Thanks
to Jeremy Olexa <darkside@g.o> for the suggestion.

svn path=/main/trunk/; revision=11498

15 years agoIn the ignored LDFLAGS check, filter out anything under /usr/lib/debug/ in
Zac Medico [Sat, 6 Sep 2008 21:23:17 +0000 (21:23 -0000)]
In the ignored LDFLAGS check, filter out anything under /usr/lib/debug/ in
order to avoid duplicate warnings for splitdebug files. Thanks to Cardoe for
the suggestion.

svn path=/main/trunk/; revision=11497

15 years agoSplit the doman language code documentation into it's own section.
Zac Medico [Thu, 4 Sep 2008 22:44:03 +0000 (22:44 -0000)]
Split the doman language code documentation into it's own section.

svn path=/main/trunk/; revision=11495

15 years agoDocument EAPI 2 support in the unpack helper function for gitweb snapshots.
Zac Medico [Thu, 4 Sep 2008 22:39:05 +0000 (22:39 -0000)]
Document EAPI 2 support in the unpack helper function for gitweb snapshots.
A patch implementing this feature has been submitted by Daniel Robbins.

svn path=/main/trunk/; revision=11494

15 years agoAdd EAPI 2 documentation for customization of output file names in SRC_URI
Zac Medico [Thu, 4 Sep 2008 21:34:14 +0000 (21:34 -0000)]
Add EAPI 2 documentation for customization of output file names in SRC_URI
(bug #177863).

svn path=/main/trunk/; revision=11493

15 years agoNest the EAPI 2 "Dependencies" section inside a "Metadata" section.
Zac Medico [Thu, 4 Sep 2008 20:55:21 +0000 (20:55 -0000)]
Nest the EAPI 2 "Dependencies" section inside a "Metadata" section.

svn path=/main/trunk/; revision=11492

15 years agos/blocking/conflicting/ for consistency
Zac Medico [Thu, 4 Sep 2008 19:35:53 +0000 (19:35 -0000)]
s/blocking/conflicting/ for consistency

svn path=/main/trunk/; revision=11491

15 years agoDocument EAPI 2 blocker atom extensions (not yet implemented).
Zac Medico [Thu, 4 Sep 2008 19:22:59 +0000 (19:22 -0000)]
Document EAPI 2 blocker atom extensions (not yet implemented).

svn path=/main/trunk/; revision=11490

15 years agoNest the EAPI 2 "USE Dependencies" section inside a "Dependencies" section.
Zac Medico [Thu, 4 Sep 2008 18:50:58 +0000 (18:50 -0000)]
Nest the EAPI 2 "USE Dependencies" section inside a "Dependencies" section.

svn path=/main/trunk/; revision=11489

15 years agoAdjust toc.section.depth in the stylesheet so that deeper sections appear
Zac Medico [Thu, 4 Sep 2008 03:45:13 +0000 (03:45 -0000)]
Adjust toc.section.depth in the stylesheet so that deeper sections appear
in the table of contents.

svn path=/main/trunk/; revision=11488

15 years agoAdd a new "EAPI 2 Draft" section which unifies the content of the EAPI 2_pre*
Zac Medico [Wed, 3 Sep 2008 21:27:21 +0000 (21:27 -0000)]
Add a new "EAPI 2 Draft" section which unifies the content of the EAPI 2_pre*
sections.

svn path=/main/trunk/; revision=11487

15 years agoAdjust StaticFileSet._validate() to allow set tokens, so that sets can contain
Zac Medico [Wed, 3 Sep 2008 02:13:35 +0000 (02:13 -0000)]
Adjust StaticFileSet._validate() to allow set tokens, so that sets can contain
other sets.

svn path=/main/trunk/; revision=11486

15 years agoBug #222091 - Filter out any instances of the \1 character from variable
Zac Medico [Mon, 1 Sep 2008 19:32:26 +0000 (19:32 -0000)]
Bug #222091 - Filter out any instances of the \1 character from variable
values since this character multiplies each time that the environment
is saved (strange bash behavior). This can eventually result in
mysterious 'Argument list too long' errors from programs that have
huge strings of \1 characters in their environment.

svn path=/main/trunk/; revision=11485

15 years agoUpdate PORTAGE_RSYNC_OPTS docs to reflect that --delete-after is no longer
Zac Medico [Mon, 1 Sep 2008 17:06:38 +0000 (17:06 -0000)]
Update PORTAGE_RSYNC_OPTS docs to reflect that --delete-after is no longer
used by default.

svn path=/main/trunk/; revision=11483

15 years agoAdjust EMakeParallelDisabled.re to require at least one space after emake.
Zac Medico [Mon, 1 Sep 2008 06:31:39 +0000 (06:31 -0000)]
Adjust EMakeParallelDisabled.re to require at least one space after emake.

svn path=/main/trunk/; revision=11482

15 years agoCheck for calls to the deprecated bindnow-flags function. Thanks to Diego
Zac Medico [Sun, 31 Aug 2008 08:05:50 +0000 (08:05 -0000)]
Check for calls to the deprecated bindnow-flags function. Thanks to Diego
"Flameeyes" Pettenò for the suggestion.

svn path=/main/trunk/; revision=11481

15 years agoAdd a warning for emake -j1 calls which disable parallelization. Thanks to
Zac Medico [Sun, 31 Aug 2008 07:13:54 +0000 (07:13 -0000)]
Add a warning for emake -j1 calls which disable parallelization. Thanks to
Diego "Flameeyes" Pettenò for the suggestion.

svn path=/main/trunk/; revision=11480

15 years agoAdd support for FEATURES="protect-owned" which is identical to the
Zac Medico [Sat, 30 Aug 2008 21:43:52 +0000 (21:43 -0000)]
Add support for FEATURES="protect-owned" which is identical to the
collision-protect feature except that files may be overwritten if they are
not explicitly listed in the contents of a currently installed package.
This is particularly useful on systems that have lots of orphan files that
have been left behind by older versions of portage that did not support the
unmerge-orphans feature.

The additional tolerance makes this feature more suitable than
collision-protect for being enabled by default. In order to ensure smooth
operation of protect-owned in all cases, we also have to set
COLLISION_IGNORE="/lib/modules" since files inside this directory are
never unmerge. By enabling protect-owned by default, users are protected
from problems that may occur due interactions with file collisions and the
unmerge-orphans feature which is also enabled by default.

svn path=/main/trunk/; revision=11479

15 years agoIn dep_zapdeps(), add a new choice category for choices that have packages
Zac Medico [Sat, 30 Aug 2008 06:10:22 +0000 (06:10 -0000)]
In dep_zapdeps(), add a new choice category for choices that have packages
that aren't yet installed but have been added to the graph. This category
is given lower priority that the category for packages that are already
installed. This helps dep_zapdeps() avoid making choices in some cases that
would result in an unsolvable circular dependency. Thanks to Diego "Flameeyes"
Pettenò for reporting a circular dependency issue involving that java overlay
which is solved by this patch. The particular issue was triggered when
attempting to install dev-java/icedtea6 for the first time. A circular
dependency between dev-java/eclipse-ecj-3.2.2-r1 and dev-java/icedtea6-1.2
occured since icedtea6 was chosen to satisfy the jdk dependency of
eclipse-ecj, even though sun-jdk-1.6.0.07 was already installed and capable of
satisfying the dependency. This patch solves the issue by causing sun-jdk to
be properly selected to satisfy the jdk dependency of eclipse-ecj.

svn path=/main/trunk/; revision=11478

15 years agoWhen reloading the emerge config due to global updates in action_sync(),
Zac Medico [Wed, 27 Aug 2008 17:04:37 +0000 (17:04 -0000)]
When reloading the emerge config due to global updates in action_sync(),
correctly update the local root_config reference. This should fix a
KeyError: 'porttree' exception that's been reported to be triggered
after --sync.

svn path=/main/trunk/; revision=11475

15 years agoRevert recent changes to _ObjectKey.__eq__() since it's probably a bug if
Zac Medico [Mon, 25 Aug 2008 05:08:14 +0000 (05:08 -0000)]
Revert recent changes to _ObjectKey.__eq__() since it's probably a bug if
the wrong type is compared for equality anyway.

svn path=/main/trunk/; revision=11474

15 years agoFix _ObjectKey.__eq__() to account for potential hash collisions that would
Zac Medico [Sun, 24 Aug 2008 21:14:20 +0000 (21:14 -0000)]
Fix _ObjectKey.__eq__() to account for potential hash collisions that would
break dict behavior. Thanks to Lucian Poston for spotting this.

svn path=/main/trunk/; revision=11473

15 years agoPrevent [None] in repo display. Thanks to grobian.
Zac Medico [Sun, 24 Aug 2008 18:21:20 +0000 (18:21 -0000)]
Prevent [None] in repo display. Thanks to grobian.

svn path=/main/trunk/; revision=11470

15 years ago* Fix broken _ObjectKey.__eq__() logic from previous commit.
Zac Medico [Sun, 24 Aug 2008 17:32:19 +0000 (17:32 -0000)]
* Fix broken _ObjectKey.__eq__() logic from previous commit.
* Define _ObjectKey.__slots__ to save memory.

svn path=/main/trunk/; revision=11467

15 years agoAvoid possible AttributeError raised from _ObjectKey.__eq__().
Zac Medico [Sun, 24 Aug 2008 17:21:47 +0000 (17:21 -0000)]
Avoid possible AttributeError raised from _ObjectKey.__eq__().

svn path=/main/trunk/; revision=11466

15 years agoFix grammar. Thanks to ABCD.
Zac Medico [Sun, 24 Aug 2008 05:44:50 +0000 (05:44 -0000)]
Fix grammar. Thanks to ABCD.

svn path=/main/trunk/; revision=11460

15 years agoFix spelling typos in error messages.
Zac Medico [Sat, 23 Aug 2008 18:10:04 +0000 (18:10 -0000)]
Fix spelling typos in error messages.

svn path=/main/trunk/; revision=11459

15 years agoFix the loop in filter_protected() to continue when necessary due to an
Zac Medico [Sat, 23 Aug 2008 09:29:22 +0000 (09:29 -0000)]
Fix the loop in filter_protected() to continue when necessary due to an
error.

svn path=/main/trunk/; revision=11458

15 years agoFlush stdout after the loop inside filter_protected() completes.
Zac Medico [Sat, 23 Aug 2008 09:20:24 +0000 (09:20 -0000)]
Flush stdout after the loop inside filter_protected() completes.

svn path=/main/trunk/; revision=11457

15 years agoAdd a new filter_protected command which is similar to is_protected but
Zac Medico [Sat, 23 Aug 2008 09:18:22 +0000 (09:18 -0000)]
Add a new filter_protected command which is similar to is_protected but
works by reading filenames from stdin and writing to stdout only the
filenames that are protected. This allows an unlimited number of files
to be checked via a single portageq call.

svn path=/main/trunk/; revision=11456

15 years agoMore LinkageMap enhancments from Lucian Poston:
Zac Medico [Sat, 23 Aug 2008 05:43:12 +0000 (05:43 -0000)]
More LinkageMap enhancments from Lucian Poston:
* Added _ObjectKey helper class to LinkageMap. (commit eac5528887656abec65fc3a825506187397482e4)
* Minor change to docstrings. (commit adde422145d81f25b4024eac1e78b80e1b4a4531)

svn path=/main/trunk/; revision=11455

15 years agoAdd a new src_prepare phase function which is called in-between src_unpack
Zac Medico [Sat, 23 Aug 2008 02:02:06 +0000 (02:02 -0000)]
Add a new src_prepare phase function which is called in-between src_unpack
and src_configure (and bump EAPI to 2_pre3). Thanks to Ciaran McCreesh for
the suggestion.

svn path=/main/trunk/; revision=11454

15 years agoAdd a new is_protected command which queries whether or not CONFIG_PROTECT
Zac Medico [Fri, 22 Aug 2008 23:53:22 +0000 (23:53 -0000)]
Add a new is_protected command which queries whether or not CONFIG_PROTECT
applies to a given file, using logic identical to the merge code.

svn path=/main/trunk/; revision=11453

15 years agoFix isprotected() call in dblink._collision_protect() to properly account
Zac Medico [Fri, 22 Aug 2008 23:30:13 +0000 (23:30 -0000)]
Fix isprotected() call in dblink._collision_protect() to properly account
for $ROOT.

svn path=/main/trunk/; revision=11452

15 years agoUpdate ROOT docs wrt make.conf since it can now be set there regardless of
Zac Medico [Fri, 22 Aug 2008 22:49:44 +0000 (22:49 -0000)]
Update ROOT docs wrt make.conf since it can now be set there regardless of
PORTAGE_CONFIGROOT setting.

svn path=/main/trunk/; revision=11451

15 years agoUse shlex.split() to split CONFIG_PROTECT and CONFIG_PROTECT_MASK.
Zac Medico [Fri, 22 Aug 2008 22:25:59 +0000 (22:25 -0000)]
Use shlex.split() to split CONFIG_PROTECT and CONFIG_PROTECT_MASK.

svn path=/main/trunk/; revision=11450

15 years agoFor consistency, show [0] in the repo display instead of suppressing it. Now
Zac Medico [Fri, 22 Aug 2008 22:08:34 +0000 (22:08 -0000)]
For consistency, show [0] in the repo display instead of suppressing it. Now
the repo display and [0] will only be suppressed when [0] is all that would
show for every package. Thanks to Joe Peterson <lavajoe@g.o> for the
suggestion.

svn path=/main/trunk/; revision=11449

15 years agoUpdate comment, from Lucian Poston's git repo.
Zac Medico [Fri, 22 Aug 2008 06:25:52 +0000 (06:25 -0000)]
Update comment, from Lucian Poston's git repo.

svn path=/main/trunk/; revision=11448

15 years agoOptimize LinkageMap to use tuples of device and inode numbers from stat
Zac Medico [Fri, 22 Aug 2008 06:21:26 +0000 (06:21 -0000)]
Optimize LinkageMap to use tuples of device and inode numbers from stat
calls, instead of paths from realpath, as unique keys for identification
of files. This is the same approach used by dblink.isowner() for cases
in which path comparison fails due to symlinks.

Thanks to Lucian Poston <lucianposton@gmail.com> for submitting this patch
(along with the missing-rebuild package set which I haven't merged yet). These
patches are hosted in the following location:

http://repo.or.cz/w/revdep-rebuild-reimplementation.git?a=tree;h=refs/heads/rc3;hb=refs/heads/rc3

svn path=/main/trunk/; revision=11447

15 years agoFix typo in "directory" spelling. Thanks to Ofer Wald in bug #219957.
Zac Medico [Thu, 21 Aug 2008 19:49:56 +0000 (19:49 -0000)]
Fix typo in "directory" spelling. Thanks to Ofer Wald in bug #219957.

svn path=/main/trunk/; revision=11446

15 years agoFix spelling of overriding for bug #235250.
Zac Medico [Wed, 20 Aug 2008 04:29:10 +0000 (04:29 -0000)]
Fix spelling of overriding for bug #235250.

svn path=/main/trunk/; revision=11443

15 years agoFix dep_wordreduce() so that it doesn't cancel out blocker atoms that happen
Zac Medico [Wed, 20 Aug 2008 04:24:21 +0000 (04:24 -0000)]
Fix dep_wordreduce() so that it doesn't cancel out blocker atoms that happen
to be matched by package.provided.

svn path=/main/trunk/; revision=11442

15 years agoMake dblink call back to the scheduler for "clean" and "cleanrm" phases, to
Zac Medico [Wed, 20 Aug 2008 03:18:59 +0000 (03:18 -0000)]
Make dblink call back to the scheduler for "clean" and "cleanrm" phases, to
handle output redirection. Thanks to Arfrever for reporting.

svn path=/main/trunk/; revision=11441

15 years agoMake sure EBUILD_PHASE is properly unset when calling misc-functions.sh.
Zac Medico [Wed, 20 Aug 2008 03:13:45 +0000 (03:13 -0000)]
Make sure EBUILD_PHASE is properly unset when calling misc-functions.sh.

svn path=/main/trunk/; revision=11440

15 years agoWhen in background mode, redirect "adjusting permissions" messages for
Zac Medico [Tue, 19 Aug 2008 22:05:00 +0000 (22:05 -0000)]
When in background mode, redirect "adjusting permissions" messages for
features directories like CCACHE_DIR and DISTCC_DIR. Thanks to Arfrever
for reporting.

svn path=/main/trunk/; revision=11439

15 years agoAdd an 'IUSE defaults' section.
Zac Medico [Tue, 19 Aug 2008 20:16:05 +0000 (20:16 -0000)]
Add an 'IUSE defaults' section.

svn path=/main/trunk/; revision=11438

15 years agoRemove reference to use.default. Thanks to ulm for reporting.
Zac Medico [Tue, 19 Aug 2008 09:15:20 +0000 (09:15 -0000)]
Remove reference to use.default. Thanks to ulm for reporting.

svn path=/main/trunk/; revision=11437

15 years agoThe following error is known to occur with Linux kernel versions
Zac Medico [Mon, 18 Aug 2008 23:24:33 +0000 (23:24 -0000)]
The following error is known to occur with Linux kernel versions
less than 2.6.24:

  select.error: (4, 'Interrupted system call')

This error has been observed after a SIGSTOP, followed by SIGCONT.
Treat it similar to EAGAIN if timeout is None, otherwise just return
without any events.

Thanks to Jeremy Olexa <darkside@g.o> for reporting and testing this
patch.

svn path=/main/trunk/; revision=11436

15 years agoUpdate for @everything -> @installed rename. Thanks to Arfrever.
Zac Medico [Mon, 18 Aug 2008 21:20:45 +0000 (21:20 -0000)]
Update for @everything -> @installed rename. Thanks to Arfrever.

svn path=/main/trunk/; revision=11435

15 years ago* Truncate status display output when necessary to avoid line overflow and
Zac Medico [Mon, 18 Aug 2008 08:53:37 +0000 (08:53 -0000)]
* Truncate status display output when necessary to avoid line overflow and
  unwanted terminal scroll.
* When the load average goes above 10, save space by showing fewer decimal
  places in the output.

svn path=/main/trunk/; revision=11434

15 years agoDon't assume that the "world" set is an instance of WorldSet, allowing the
Zac Medico [Mon, 18 Aug 2008 08:09:26 +0000 (08:09 -0000)]
Don't assume that the "world" set is an instance of WorldSet, allowing the
user to substitute some other set type if desired.

svn path=/main/trunk/; revision=11433

15 years agoFix atom -> str breakage in StaticFileSet.write().
Zac Medico [Mon, 18 Aug 2008 07:47:18 +0000 (07:47 -0000)]
Fix atom -> str breakage in StaticFileSet.write().

svn path=/main/trunk/; revision=11432

15 years agoDocument /var/lib/portage/world_sets.
Zac Medico [Sun, 17 Aug 2008 07:36:05 +0000 (07:36 -0000)]
Document /var/lib/portage/world_sets.

svn path=/main/trunk/; revision=11423

15 years agoBug #172496 - Add a PORTAGE_COMPRESS_EXCLUDE_SUFFIXES config variable which
Zac Medico [Fri, 15 Aug 2008 22:03:44 +0000 (22:03 -0000)]
Bug #172496 - Add a PORTAGE_COMPRESS_EXCLUDE_SUFFIXES config variable which
is used to filter ecompress arguments. This allows the user to control
compression of files installed dodoc, excluding files with specific suffix
patterns. The current default value includes all of the suffixes that are
recognized by dohtml, as well as pdf.

svn path=/main/trunk/; revision=11419

15 years agoFor consistency, make get_open_fds() return a plain iterator in any case,
Zac Medico [Fri, 15 Aug 2008 18:45:07 +0000 (18:45 -0000)]
For consistency, make get_open_fds() return a plain iterator in any case,
rather than return a list in some cases.

svn path=/main/trunk/; revision=11418

15 years agoUse a list comprehension instead of strange map() usage which yields odd
Zac Medico [Fri, 15 Aug 2008 18:12:33 +0000 (18:12 -0000)]
Use a list comprehension instead of strange map() usage which yields odd
results when fed to the py3k converter. Thanks to René 'Necoro' Neumann.

svn path=/main/trunk/; revision=11417

15 years agoFor py3k compatibility, replace map() call with a normal for loop. Thanks to
Zac Medico [Fri, 15 Aug 2008 18:00:08 +0000 (18:00 -0000)]
For py3k compatibility, replace map() call with a normal for loop. Thanks to
Ali Polatel <hawking@g.o>.

svn path=/main/trunk/; revision=11416

15 years agoPass atom instances into action_depclean() instead of the plain strings.
Zac Medico [Fri, 15 Aug 2008 17:39:08 +0000 (17:39 -0000)]
Pass atom instances into action_depclean() instead of the plain strings.

svn path=/main/trunk/; revision=11415

15 years agoValidate atoms from command line args before calling action_depclean().
Zac Medico [Fri, 15 Aug 2008 17:34:33 +0000 (17:34 -0000)]
Validate atoms from command line args before calling action_depclean().

svn path=/main/trunk/; revision=11414

15 years agoIn order to avoid an unhandled InvalidAtom exception, validate atoms from
Zac Medico [Fri, 15 Aug 2008 17:19:50 +0000 (17:19 -0000)]
In order to avoid an unhandled InvalidAtom exception, validate atoms from
command line arguments before passing them to unmerge(). Thanks to Cardoe
for reporting.

svn path=/main/trunk/; revision=11413

15 years ago* Replace vartree.dep_match() call with normal dbapi.match() call.
Zac Medico [Fri, 15 Aug 2008 17:08:30 +0000 (17:08 -0000)]
* Replace vartree.dep_match() call with normal dbapi.match() call.
* Don't silently swallow unexpected KeyError exceptions from dbapi.match()
  inside unmerge().

svn path=/main/trunk/; revision=11412

15 years agoWhen a build fails, generate a status message showing which package
Zac Medico [Thu, 14 Aug 2008 20:28:33 +0000 (20:28 -0000)]
When a build fails, generate a status message showing which package
failed and the path of the relevant log file if available. Thanks
to _neuron_ for the suggestion. Here is some sample output:

 >>> Emerging (1 of 1) foo-bar/baz-1.0
 >>> Failed to emerge foo-bar/baz-1.0, Log file:
 >>>  '/var/log/portage/foo-bar:baz-1.0:20080814-202327.log'

svn path=/main/trunk/; revision=11411

15 years agoConvert exceptions from parse_metadata_use() into "metadata.bad" errors
Zac Medico [Thu, 14 Aug 2008 19:30:19 +0000 (19:30 -0000)]
Convert exceptions from parse_metadata_use() into "metadata.bad" errors
instead of exiting.

svn path=/main/trunk/; revision=11410

15 years ago* Fix parse_metadata_use() to raise ParseError instead of the ExpatError
Zac Medico [Thu, 14 Aug 2008 19:07:22 +0000 (19:07 -0000)]
* Fix parse_metadata_use() to raise ParseError instead of the ExpatError
  that was reported by grobian.

* Define __all__.

svn path=/main/trunk/; revision=11407

15 years agoThe fpformat module is deprecated and will be removed in py3k.
Zac Medico [Thu, 14 Aug 2008 09:37:44 +0000 (09:37 -0000)]
The fpformat module is deprecated and will be removed in py3k.
The % string interpolation operator should be used instead.
Thanks to Ali Polatel <hawking@g.o> for this patch.

svn path=/main/trunk/; revision=11406

15 years agoMake Scheduler._choose_pkg() parallelize more aggressively in cases when
Zac Medico [Thu, 14 Aug 2008 05:29:38 +0000 (05:29 -0000)]
Make Scheduler._choose_pkg() parallelize more aggressively in cases when
it will not result in a less optimal build order. This works by modifying
the behavior of Scheduler._dependent_on_scheduled_merges() so that two
cases of dependence are ignored:

 * A given dependency will be merged later anyway (due to dep cycles) and
   therefore delaying the merge of the parent package will not result in a
   more optimal build order.

 * A given dependency is an "uninstall" operation and it also is not a direct
   dependency, therefore it should be irrelevant to build order optimization.

svn path=/main/trunk/; revision=11405

15 years agoFix quoting for iteration over PROFILE_PATHS.
Zac Medico [Tue, 12 Aug 2008 22:40:13 +0000 (22:40 -0000)]
Fix quoting for iteration over PROFILE_PATHS.

svn path=/main/trunk/; revision=11404

15 years agoCreate a single EAPI section to contain all of the EAPI subsections and v2.2_rc8
Zac Medico [Tue, 12 Aug 2008 19:54:51 +0000 (19:54 -0000)]
Create a single EAPI section to contain all of the EAPI subsections and
replace sect[1-3] elements with "section" elements which have unbounded
depth.

svn path=/main/trunk/; revision=11402

15 years agoBug #234478 - Fix config._getMissingLicenses() to only access USE when
Zac Medico [Tue, 12 Aug 2008 07:12:32 +0000 (07:12 -0000)]
Bug #234478 - Fix config._getMissingLicenses() to only access USE when
LICENSE is conditional since otherwise USE hasn't necessarily been
calculated.

svn path=/main/trunk/; revision=11401

15 years agoDisable "waiting for lock" messages when in background mode. Thanks to Thargor
Zac Medico [Tue, 12 Aug 2008 02:33:40 +0000 (02:33 -0000)]
Disable "waiting for lock" messages when in background mode. Thanks to Thargor
for reporting.

svn path=/main/trunk/; revision=11400

15 years agoFix ebuild(1) so that src_configure is only called for EAPIs for which it
Zac Medico [Mon, 11 Aug 2008 20:20:25 +0000 (20:20 -0000)]
Fix ebuild(1) so that src_configure is only called for EAPIs for which it
is supported.

svn path=/main/trunk/; revision=11399

15 years agoEntirely disable the src_configure phase from the python side for EAPI values
Zac Medico [Mon, 11 Aug 2008 19:50:57 +0000 (19:50 -0000)]
Entirely disable the src_configure phase from the python side for EAPI values
for which it's not supported. This avoids pointless spawning of ebuild.sh and
also avoids having bashrc called during an invalid phase as reported by
Arfrever.

svn path=/main/trunk/; revision=11398

15 years agoIn source_all_bashrcs(), only change $IFS while splitting $PROFILE_PATHS into
Zac Medico [Mon, 11 Aug 2008 06:52:45 +0000 (06:52 -0000)]
In source_all_bashrcs(), only change $IFS while splitting $PROFILE_PATHS into
an array, and then restore it before doing anything else. This avoids
interference that can otherwise occur if code from profile.bashrc (or
/etc/portage/env, be extension) needs to call any of the elog functions
which use the save_IFS and restore_IFS aliases internally.

svn path=/main/trunk/; revision=11397

15 years agoIncrease Scheduler._job_delay_max to 10 seconds. v2.2_rc7
Zac Medico [Sun, 10 Aug 2008 11:56:39 +0000 (11:56 -0000)]
Increase Scheduler._job_delay_max to 10 seconds.

svn path=/main/trunk/; revision=11395

15 years agoFor pkg_config and pkg_info, add respective "config" and "info" values to
Zac Medico [Sun, 10 Aug 2008 11:21:09 +0000 (11:21 -0000)]
For pkg_config and pkg_info, add respective "config" and "info" values to
EBUILD_PHASES.

svn path=/main/trunk/; revision=11394

15 years agoWhen testing userpriv write access in $DISTDIR, redirect the 'permission
Zac Medico [Sun, 10 Aug 2008 11:07:05 +0000 (11:07 -0000)]
When testing userpriv write access in $DISTDIR, redirect the 'permission
denied' error message to /dev/null.

svn path=/main/trunk/; revision=11393

15 years agoRemove unnecessary dict.keys() call.
Zac Medico [Sun, 10 Aug 2008 10:30:20 +0000 (10:30 -0000)]
Remove unnecessary dict.keys() call.

svn path=/main/trunk/; revision=11392

15 years agoMove the default EAPI definition where it will work in any case it might
Zac Medico [Sun, 10 Aug 2008 09:04:58 +0000 (09:04 -0000)]
Move the default EAPI definition where it will work in any case it might
be necessary, such as after loading an exising environment.

svn path=/main/trunk/; revision=11387

15 years agoRemove most references to Package.metadata_keys and replace them with
Zac Medico [Sun, 10 Aug 2008 08:20:41 +0000 (08:20 -0000)]
Remove most references to Package.metadata_keys and replace them with
approriate keys for the given package type.

svn path=/main/trunk/; revision=11386

15 years agoAdd sample code for the new src_configure and src_compile phase functions.
Zac Medico [Sun, 10 Aug 2008 05:17:43 +0000 (05:17 -0000)]
Add sample code for the new src_configure and src_compile phase functions.

svn path=/main/trunk/; revision=11385

15 years agoDocument the differences between EAPIs 0 and 1.
Zac Medico [Sun, 10 Aug 2008 04:56:54 +0000 (04:56 -0000)]
Document the differences between EAPIs 0 and 1.

svn path=/main/trunk/; revision=11384

15 years agoAdd new sections for EAPI 0 and 1 (currently empty).
Zac Medico [Sun, 10 Aug 2008 04:09:58 +0000 (04:09 -0000)]
Add new sections for EAPI 0 and 1 (currently empty).

svn path=/main/trunk/; revision=11383

15 years agoFix typo.
Zac Medico [Sun, 10 Aug 2008 02:00:42 +0000 (02:00 -0000)]
Fix typo.

svn path=/main/trunk/; revision=11382

15 years agoRemove INHERITED from the vardbapi aux_get cache since it's not really that
Zac Medico [Sun, 10 Aug 2008 01:48:13 +0000 (01:48 -0000)]
Remove INHERITED from the vardbapi aux_get cache since it's not really that
useful (@live-rebuild currently pulls INHERITED from the highest visible
ebuild). Also adjust keys used to pull metadata for Package instances, so
that INHERITED won't get pulled from the vardbapi anymore.

svn path=/main/trunk/; revision=11381

15 years agoRemove pointless `cd` calls in dyn_configure() and dyn_compile().
Zac Medico [Sun, 10 Aug 2008 01:10:47 +0000 (01:10 -0000)]
Remove pointless `cd` calls in dyn_configure() and dyn_compile().

svn path=/main/trunk/; revision=11380

15 years agoEliminate duplicate code by making _eapi1_src_compile() call _eapi2_src_configure().
Zac Medico [Sun, 10 Aug 2008 01:02:54 +0000 (01:02 -0000)]
Eliminate duplicate code by making _eapi1_src_compile() call _eapi2_src_configure().

svn path=/main/trunk/; revision=11379

15 years agoMake the scheduler's job delay ramp up faster by increasing the factor
Zac Medico [Sun, 10 Aug 2008 00:17:35 +0000 (00:17 -0000)]
Make the scheduler's job delay ramp up faster by increasing the factor
to 1.0 and adding an exponent of 1.5.

svn path=/main/trunk/; revision=11378

15 years agoFix dyn_clean() to properly clean $PORTAGE_BUILDDIR/.configured.
Zac Medico [Sat, 9 Aug 2008 23:47:37 +0000 (23:47 -0000)]
Fix dyn_clean() to properly clean $PORTAGE_BUILDDIR/.configured.

svn path=/main/trunk/; revision=11377

15 years agoAdd write_contents() and tar_contents() functions to __all__.
Zac Medico [Sat, 9 Aug 2008 22:29:51 +0000 (22:29 -0000)]
Add write_contents() and tar_contents() functions to __all__.

svn path=/main/trunk/; revision=11376

15 years ago* Use shlex.split() for splitting COLLISION_IGNORE.
Zac Medico [Sat, 9 Aug 2008 22:27:09 +0000 (22:27 -0000)]
* Use shlex.split() for splitting COLLISION_IGNORE.
* Define __all__.

svn path=/main/trunk/; revision=11375

15 years agoBug #234100 - Update date and portage version in man page headers.
Zac Medico [Sat, 9 Aug 2008 20:39:47 +0000 (20:39 -0000)]
Bug #234100 - Update date and portage version in man page headers.

svn path=/main/trunk/; revision=11374

15 years agoBug #234157 - Remove BUILD_PREFIX from the docs since it's not a user config
Zac Medico [Sat, 9 Aug 2008 20:26:40 +0000 (20:26 -0000)]
Bug #234157 - Remove BUILD_PREFIX from the docs since it's not a user config
variable.

svn path=/main/trunk/; revision=11373

15 years agoDon't use "dir" for a variable name since it's also a builtin.
Zac Medico [Sat, 9 Aug 2008 19:03:03 +0000 (19:03 -0000)]
Don't use "dir" for a variable name since it's also a builtin.

svn path=/main/trunk/; revision=11372

15 years agoAdd a reference to the default sets.conf location. Thanks to dberkholz for
Zac Medico [Sat, 9 Aug 2008 10:33:38 +0000 (10:33 -0000)]
Add a reference to the default sets.conf location. Thanks to dberkholz for
the suggestion.

svn path=/main/trunk/; revision=11366

15 years agoMake eapi*_src_install die since they're not supported.
Zac Medico [Sat, 9 Aug 2008 10:07:36 +0000 (10:07 -0000)]
Make eapi*_src_install die since they're not supported.

svn path=/main/trunk/; revision=11365

15 years agoEscape use flags before compiling regular expressions from them. Thanks
Zac Medico [Sat, 9 Aug 2008 10:05:23 +0000 (10:05 -0000)]
Escape use flags before compiling regular expressions from them. Thanks
to pchrist for reporting.

svn path=/main/trunk/; revision=11364