Zac Medico [Wed, 28 Nov 2007 00:04:49 +0000 (00:04 -0000)]
In the preprocess_ebuild_env() subshell, check for errors and
return early when necessary. (trunk r8718)
svn path=/main/branches/2.1.2/; revision=8719
Zac Medico [Tue, 27 Nov 2007 22:12:21 +0000 (22:12 -0000)]
Just use ${PN} instead of catpkgsplit().
svn path=/main/branches/2.1.2/; revision=8717
Zac Medico [Tue, 27 Nov 2007 21:58:30 +0000 (21:58 -0000)]
portage upgrade or downgrade invalidates EBUILD_EXIT_STATUS_FILE
sanity checks since ebuild.sh portage version may differ from the
current instance that is running in python. (trunk r8714)
svn path=/main/branches/2.1.2/; revision=8715
Zac Medico [Tue, 27 Nov 2007 21:17:21 +0000 (21:17 -0000)]
Remove a redundant os.EX_OK check that exit_status_check() already
handles internally. (trunk r8712)
svn path=/main/branches/2.1.2/; revision=8713
Zac Medico [Tue, 27 Nov 2007 21:12:26 +0000 (21:12 -0000)]
Fix logic wrt exit_status_check and elog_process in doebuild(). (trunk r8710)
svn path=/main/branches/2.1.2/; revision=8711
Zac Medico [Tue, 27 Nov 2007 18:53:55 +0000 (18:53 -0000)]
Bug #200229 - The gimp ebuild defines AA as a local variable. In order
to accomodate this, create a PORTAGE_MUTABLE_FILTERED_VARS list for
variables that portage sets but doesn't mark readonly. In order to
prevent changed values from causing unexpcted interference, they are
filtered out of the environment when it is saved or loaded (any
mutations do not persist). (trunk r8708)
svn path=/main/branches/2.1.2/; revision=8709
Zac Medico [Tue, 27 Nov 2007 08:21:19 +0000 (08:21 -0000)]
Don't forget to unlink ${EBUILD_EXIT_STATUS_FILE} before each phase.
(trunk r8706)
svn path=/main/branches/2.1.2/; revision=8707
Zac Medico [Tue, 27 Nov 2007 02:08:53 +0000 (02:08 -0000)]
Fix config.pop() so that is will properly raise a KeyError. (trunk r8704)
svn path=/main/branches/2.1.2/; revision=8705
Zac Medico [Tue, 27 Nov 2007 01:13:20 +0000 (01:13 -0000)]
Bug #200231 - Make dir_get_metadata() handle an exception thrown
from dir_get_list() when there's a problem connection problem.
(trunk r8702)
svn path=/main/branches/2.1.2/; revision=8703
Zac Medico [Mon, 26 Nov 2007 23:59:01 +0000 (23:59 -0000)]
Make the environment handling code detect errors and die if
necessary. (trunk r8700)
svn path=/main/branches/2.1.2/; revision=8701
Zac Medico [Mon, 26 Nov 2007 22:19:55 +0000 (22:19 -0000)]
Make doebuild() use EBUILD_EXIT_STATUS_FILE sanity checks for the
extra misc-functions.sh preinst/postinst shell code. (trunk r8698)
svn path=/main/branches/2.1.2/; revision=8699
Zac Medico [Mon, 26 Nov 2007 22:05:50 +0000 (22:05 -0000)]
Make doebuild skip directory creation for the "cleanrm" command. (trunk r8696)
svn path=/main/branches/2.1.2/; revision=8697
Zac Medico [Mon, 26 Nov 2007 20:34:47 +0000 (20:34 -0000)]
Fix grammar. (trunk r8694)
svn path=/main/branches/2.1.2/; revision=8695
Zac Medico [Mon, 26 Nov 2007 19:05:27 +0000 (19:05 -0000)]
* In doebuild(), don't create directories for the "clean" or "unmerge".
* Fix dyn_clean() to clean the status file and return early when appropriate.
(trunk r8692)
svn path=/main/branches/2.1.2/; revision=8693
Zac Medico [Mon, 26 Nov 2007 17:36:35 +0000 (17:36 -0000)]
Make config.pop() properly call config.modifying(). (trunk r8690)
svn path=/main/branches/2.1.2/; revision=8691
Zac Medico [Mon, 26 Nov 2007 17:31:40 +0000 (17:31 -0000)]
Implement config.pop(). (trunk r8688)
svn path=/main/branches/2.1.2/; revision=8689
Zac Medico [Mon, 26 Nov 2007 12:06:58 +0000 (12:06 -0000)]
Check if ${EBUILD_EXIT_STATUS_FILE} is empty before
attempting to use it. (trunk r8686)
svn path=/main/branches/2.1.2/; revision=8687
Zac Medico [Mon, 26 Nov 2007 11:59:47 +0000 (11:59 -0000)]
--buildpkgonly will not merge anything, so
it cancels all binary package options.
svn path=/main/branches/2.1.2/; revision=8685
Zac Medico [Mon, 26 Nov 2007 11:58:31 +0000 (11:58 -0000)]
Bug #200313 - Detect and report when an ebuild phase
exits unexpectedly. This is type of behavior is known
to be triggered by things such as failed variable
assignments (bug #190128) or bad substitution errors
(bug #200313).
We use a EBUILD_EXIT_STATUS_FILE environment variable
to specify a file that the shell code is supposed to
create when it exits in a normal manner. If the file
does not get created like it's supposed to be then we
can conclude that the shell has exited in some
unexpected way.
(trunk r8682)
svn path=/main/branches/2.1.2/; revision=8684
Zac Medico [Mon, 26 Nov 2007 05:51:11 +0000 (05:51 -0000)]
Automatically try to load environment.bz2 whenever
"${T}/environment" does not exist, except for "clean"
and "depend" phases. (trunk r8680)
svn path=/main/branches/2.1.2/; revision=8681
Zac Medico [Mon, 26 Nov 2007 04:40:44 +0000 (04:40 -0000)]
Make diefunc() show the path of ${T}/environment since it's usually
in the stack trace and the user is likely to be interested in it.
(trunk r8678)
svn path=/main/branches/2.1.2/; revision=8679
Zac Medico [Mon, 26 Nov 2007 04:08:39 +0000 (04:08 -0000)]
Filter more misc environment variables. (trunk r8676)
svn path=/main/branches/2.1.2/; revision=8677
Zac Medico [Mon, 26 Nov 2007 02:52:47 +0000 (02:52 -0000)]
unset ECLASS along with the other variables from inherit(). (trunk r8674)
svn path=/main/branches/2.1.2/; revision=8675
Zac Medico [Mon, 26 Nov 2007 02:44:37 +0000 (02:44 -0000)]
Add NOCONFMEM to config._environ_filter. (trunk r8672)
svn path=/main/branches/2.1.2/; revision=8673
Zac Medico [Mon, 26 Nov 2007 02:11:56 +0000 (02:11 -0000)]
* Move filtering of a bunch of portage config variables from
save_ebuild_env() to config.environ().
* Add EMERGE_FROM to the READONLY_PORTAGE_VARS list.
(trunk r8670)
svn path=/main/branches/2.1.2/; revision=8671
Zac Medico [Mon, 26 Nov 2007 01:16:16 +0000 (01:16 -0000)]
Bug #124041 - Make emerge show an informative warning message when one
or more eclasses override eclasses from PORTDIR. The warning can be
permanently disabled by setting PORTAGE_ECLASS_WARNING_ENABLE="0" in
/etc/make.conf. (trunk r8668)
svn path=/main/branches/2.1.2/; revision=8669
Zac Medico [Sun, 25 Nov 2007 23:05:30 +0000 (23:05 -0000)]
Filter _RC_GET_KV_CACHE from the saved environment. (trunk r8666)
svn path=/main/branches/2.1.2/; revision=8667
Zac Medico [Sun, 25 Nov 2007 22:56:57 +0000 (22:56 -0000)]
Make preprocess_ebuild_env() reload a known good version of
save_ebuild_env() in order to avoid making an assumption that
it hasn't been overridden. (trunk r8663)
svn path=/main/branches/2.1.2/; revision=8665
Zac Medico [Sun, 25 Nov 2007 22:50:38 +0000 (22:50 -0000)]
Remove some unsafe assumptions from preprocess_ebuild_env() and
note the remaining assumption that save_ebuild_env() is not
overridden by the environment being loaded. (trunk r8662)
svn path=/main/branches/2.1.2/; revision=8664
Zac Medico [Sun, 25 Nov 2007 09:30:57 +0000 (09:30 -0000)]
Allow the pkg_info and pkg_config pre/post hooks to run even
when the ebuild function is not defined. (trunk r8659)
svn path=/main/branches/2.1.2/; revision=8660
Zac Medico [Sun, 25 Nov 2007 09:12:46 +0000 (09:12 -0000)]
Remove the empty default pkg_setup, src_install, pkg_preinst,
pkg_postinst, pkg_prerm, pkg_postrm, and pkg_config functions
since they do nothing more than clutter the environment.
(trunk r8655)
svn path=/main/branches/2.1.2/; revision=8658
Zac Medico [Sun, 25 Nov 2007 09:10:14 +0000 (09:10 -0000)]
Test if ebuild functions are defined before calling them. This
will be useful if an environment.bz2 has been loaded and it has
missing functions for some reason. For example, there are a lot
of default functions that are empty and could simply be omitted
from the environment. (trunk r8654)
svn path=/main/branches/2.1.2/; revision=8657
Zac Medico [Sun, 25 Nov 2007 09:09:02 +0000 (09:09 -0000)]
The qa_call() function and anything before it are portage internals
that the user will not be interested in. Therefore, the stack trace
should only show calls that come after qa_call(). (trunk r8653)
svn path=/main/branches/2.1.2/; revision=8656
Zac Medico [Sun, 25 Nov 2007 06:58:24 +0000 (06:58 -0000)]
* Load environment.bz2 for the pkg_config() phase.
* Run the "clean" phase if pkg_config() succeeds.
(trunk r8651)
svn path=/main/branches/2.1.2/; revision=8652
Zac Medico [Sun, 25 Nov 2007 06:33:40 +0000 (06:33 -0000)]
Implement loading of environment.bz2 for the pkg_info() phase.
Since a temporary directory is required for processing of
${T}/environment, and we want a user who's not in the portage
group to be able to run the pkg_info() phase, PORTAGE_TMPDIR
is temporarily overridden with a directory created by mkdtemp.
To make this work, doebuild() creates the tempdir and cleans
it up in a finally block. (trunk r8649)
svn path=/main/branches/2.1.2/; revision=8650
Zac Medico [Sat, 24 Nov 2007 22:26:41 +0000 (22:26 -0000)]
Bug #200238 - Make ebuild.sh properly bail out when the pkg_info()
function doesn't exist. (trunk r8647)
svn path=/main/branches/2.1.2/; revision=8648
Zac Medico [Sat, 24 Nov 2007 22:12:26 +0000 (22:12 -0000)]
Bug #140180 - Never trigger a LICENSE.missing violation for old style
virtuals since they don't directly install anything. (trunk r8645)
svn path=/main/branches/2.1.2/; revision=8646
Zac Medico [Sat, 24 Nov 2007 18:32:26 +0000 (18:32 -0000)]
Use `md5` if `md5sum` is not available (useful for FreeBSD users).
(trunk r8643)
svn path=/main/branches/2.1.2/; revision=8644
Zac Medico [Sat, 24 Nov 2007 05:43:13 +0000 (05:43 -0000)]
Fix quoting to work properly with eval. (trunk r8640)
svn path=/main/branches/2.1.2/; revision=8641
Zac Medico [Sat, 24 Nov 2007 04:50:40 +0000 (04:50 -0000)]
When binarytree.populate() finds missing metadata, specify which keys
are missing so that the user has a clue about what is wrong. (trunk
r8638).
svn path=/main/branches/2.1.2/; revision=8639
Zac Medico [Sat, 24 Nov 2007 04:23:24 +0000 (04:23 -0000)]
Unconditionally filter some of the SANDBOX_* variables from the
environment in order to avoid potential interference problems.
For example, having an invalid value for SANDBOX_LOG prevents
the sandbox from killing the ebuild when a violation occurs.
(trunk r8636)
svn path=/main/branches/2.1.2/; revision=8637
Zac Medico [Sat, 24 Nov 2007 02:59:00 +0000 (02:59 -0000)]
Fix the var_grep variable in filter_readonly_variables() so that
it's properly local. (trunk r8634)
svn path=/main/branches/2.1.2/; revision=8635
Zac Medico [Sat, 24 Nov 2007 02:36:26 +0000 (02:36 -0000)]
In the grep expression that's generated in filter_readonly_variables(),
condense redundant identical expressions into a single one. (trunk r8630)
svn path=/main/branches/2.1.2/; revision=8633
Zac Medico [Sat, 24 Nov 2007 02:34:34 +0000 (02:34 -0000)]
Filter _E_DOCDESTTREE_ and _E_EXEDESTTREE_ from environment.bz2. (trunk r8629)
svn path=/main/branches/2.1.2/; revision=8632
Zac Medico [Sat, 24 Nov 2007 02:33:35 +0000 (02:33 -0000)]
Add support for persistence of colon separated
SANDBOX_{DENY,READ,PREDICT,WRITE} variables between
phases so things like the global scope addpredict()
call in qt3.eclass will continue to work.
(trunk r8628)
svn path=/main/branches/2.1.2/; revision=8631
Zac Medico [Fri, 23 Nov 2007 11:08:21 +0000 (11:08 -0000)]
Make save_ebuild_env() filter the new source_all_bashrcs() function
from the environment. (trunk r8623)
svn path=/main/branches/2.1.2/; revision=8624
Zac Medico [Fri, 23 Nov 2007 10:55:26 +0000 (10:55 -0000)]
Try again to make bashrc sourcing compatible with previous
behavior. The bashrcs get an opportunity to set aliases that
will be expanded during sourcing of ebuilds and eclasses.
(trunk r8621)
svn path=/main/branches/2.1.2/; revision=8622
Zac Medico [Fri, 23 Nov 2007 10:33:17 +0000 (10:33 -0000)]
unset x to avoid global env pollution. (trunk r8619)
svn path=/main/branches/2.1.2/; revision=8620
Zac Medico [Fri, 23 Nov 2007 10:23:58 +0000 (10:23 -0000)]
For compatibility with previous behavior, so the bashrc sourcing
after the ebuild environment is fully loaded. (trunk r8617)
svn path=/main/branches/2.1.2/; revision=8618
Zac Medico [Fri, 23 Nov 2007 02:37:50 +0000 (02:37 -0000)]
Sort hashes for predictable output from Manifest._createManifestEntries().
(trunk r8615)
svn path=/main/branches/2.1.2/; revision=8616
Zac Medico [Fri, 23 Nov 2007 01:57:41 +0000 (01:57 -0000)]
Use %% instead of % parameter expansion where appropriate
for md5sum output. (trunk r8613)
svn path=/main/branches/2.1.2/; revision=8614
Zac Medico [Fri, 23 Nov 2007 01:39:11 +0000 (01:39 -0000)]
Make the sed expression in filter_readonly_variables() handle
'^declare -r ' by simply removing it. (trunk r8611)
svn path=/main/branches/2.1.2/; revision=8612
Zac Medico [Fri, 23 Nov 2007 00:11:25 +0000 (00:11 -0000)]
When filtering the backupenv in create_trees(), be more
selective and ensure that special variables that come from
the config constructor are preserved. (trunk r8609)
svn path=/main/branches/2.1.2/; revision=8610
Zac Medico [Thu, 22 Nov 2007 22:23:48 +0000 (22:23 -0000)]
Allow any errors from save_ebuild_env() to go to stderr instead of
directing them to /dev/null. (trunk r8607)
svn path=/main/branches/2.1.2/; revision=8608
Zac Medico [Thu, 22 Nov 2007 22:00:36 +0000 (22:00 -0000)]
Generalize the sed expression in filter_readonly_variables() so that
it will work with things like 'declare -xr' as well as 'declare -rx'.
(trunk r8605)
svn path=/main/branches/2.1.2/; revision=8606
Zac Medico [Thu, 22 Nov 2007 20:20:04 +0000 (20:20 -0000)]
Don't call preprocess_ebuild_env() unless EBUILD_SH_ARGS is set
since otherwise it can interfere with the environment for things
like the "package" phase. (trunk r8603)
svn path=/main/branches/2.1.2/; revision=8604
Zac Medico [Thu, 22 Nov 2007 19:54:08 +0000 (19:54 -0000)]
When portage reinstalls itself, during inst/rm phases, the
environment may have been saved by a different version of ebuild.sh,
so it can't trusted that it's been properly filtered. Therefore,
always preprocess the environment when ${PN} == portage.
(trunk r8601)
svn path=/main/branches/2.1.2/; revision=8602
Zac Medico [Thu, 22 Nov 2007 19:07:37 +0000 (19:07 -0000)]
Document dohtml -p. Thanks to robbat2 for reporting. (trunk r8599)
svn path=/main/branches/2.1.2/; revision=8600
Zac Medico [Thu, 22 Nov 2007 08:24:42 +0000 (08:24 -0000)]
Make dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entries
so that packages installed via --buildpkg have a BINPKGMD5
entry matching the package built. (trunk r8597)
svn path=/main/branches/2.1.2/; revision=8598
Zac Medico [Thu, 22 Nov 2007 07:42:02 +0000 (07:42 -0000)]
Filter HOSTTYPE, MACHTYPE, and OSTYPE vars that are set by bash.
(trunk r8595).
svn path=/main/branches/2.1.2/; revision=8596
Zac Medico [Thu, 22 Nov 2007 06:22:59 +0000 (06:22 -0000)]
In depgraph.altlist(), measure the bias of circular
RDEPEND <-> PDEPEND relationships and use it to
optimize merge order. (trunk r8593)
svn path=/main/branches/2.1.2/; revision=8594
Zac Medico [Wed, 21 Nov 2007 18:57:37 +0000 (18:57 -0000)]
Replace usage of the "myarg" global variable with the equivalent
readonly EBUILD_SH_ARGS variable. (trunk r8585)
svn path=/main/branches/2.1.2/; revision=8586
Zac Medico [Wed, 21 Nov 2007 10:45:53 +0000 (10:45 -0000)]
In dyn_install(), don't cleanse S from the global environment,
in case the user wants to repeat the phase (like with
FEATURES=noauto and the ebuild command). Only cleanse it from
environment.bz2. (trunk r8583)
svn path=/main/branches/2.1.2/; revision=8584
Zac Medico [Wed, 21 Nov 2007 10:32:04 +0000 (10:32 -0000)]
* Make save_ebuild_env() filter some more variables.
* Make dyn_install() filter S when it's no longer needed.
(trunk r8581)
svn path=/main/branches/2.1.2/; revision=8582
Zac Medico [Wed, 21 Nov 2007 08:48:12 +0000 (08:48 -0000)]
Generate an eerror elog message when an ebuild prerm or
postrm phase fails. (trunk r8577)
svn path=/main/branches/2.1.2/; revision=8580
Zac Medico [Wed, 21 Nov 2007 08:32:35 +0000 (08:32 -0000)]
Fix the diefunc overlay message so that it doesn't trigger
falsely in prerm or postrm. (trunk r8578)
svn path=/main/branches/2.1.2/; revision=8579
Zac Medico [Wed, 21 Nov 2007 08:01:54 +0000 (08:01 -0000)]
Move environment saving from dyn_compile() to dyn_install()
so that state from src_install() is saved. (trunk r8575)
svn path=/main/branches/2.1.2/; revision=8576
Zac Medico [Wed, 21 Nov 2007 07:40:05 +0000 (07:40 -0000)]
Clean up some local variables that are needlessly saved
in the environment. (trunk r8573)
svn path=/main/branches/2.1.2/; revision=8574
Zac Medico [Wed, 21 Nov 2007 06:26:53 +0000 (06:26 -0000)]
Fix an AttributeError for config.backupenv.
svn path=/main/branches/2.1.2/; revision=8572
Zac Medico [Wed, 21 Nov 2007 04:50:38 +0000 (04:50 -0000)]
When ROOT != "/" we only want overrides from the calling
environment to apply to the config that's associated
with ROOT != "/", so we wipe out the "backupenv" for the
config that is associated with ROOT == "/" and regenerate
it's incrementals. Thanks to solar for the suggestion.
(trunk r8539)
svn path=/main/branches/2.1.2/; revision=8571
Zac Medico [Wed, 21 Nov 2007 04:44:20 +0000 (04:44 -0000)]
Sync with ebuild.sh and isolated-functions.sh as of trunk r8569. This
includes all the environment filtering enhancements that solve bugs
#46223 and #190128.
svn path=/main/branches/2.1.2/; revision=8570
Zac Medico [Wed, 21 Nov 2007 04:13:17 +0000 (04:13 -0000)]
Disable logging and ${T}/environment saving during the
pkg_info() phase. (trunk r8526)
svn path=/main/branches/2.1.2/; revision=8568
Zac Medico [Wed, 21 Nov 2007 04:06:26 +0000 (04:06 -0000)]
Fix PROFILE_ONLY_VARIABLES handling in the config constructor
so that variables are appropriately filtered from "backupenv",
since otherwise they can leak in from there. (trunk r8524)
svn path=/main/branches/2.1.2/; revision=8567
Zac Medico [Wed, 21 Nov 2007 03:55:53 +0000 (03:55 -0000)]
Bug #198398 - Enable Manifest generation when there are no hash
functions available for types such as RMD160. Now it's possible
to generate a Manifest when python-2.5 is built without ssl
support. MANIFEST1_REQUIRED_HASH and MANIFEST2_REQUIRED_HASH
are the only two functions that are strictly required now (MD5
and SHA1). (trunk r8521)
svn path=/main/branches/2.1.2/; revision=8566
Zac Medico [Wed, 21 Nov 2007 00:14:15 +0000 (00:14 -0000)]
Clean up vardbapi.counter_tick_core() and replace shell code
with pure python.
svn path=/main/branches/2.1.2/; revision=8565
Zac Medico [Wed, 21 Nov 2007 00:06:18 +0000 (00:06 -0000)]
Set IMAGE for minimal backward compatibility with
overlays or user's bashrc, but don't export it.
(trunk r8511:8513)
svn path=/main/branches/2.1.2/; revision=8564
Zac Medico [Wed, 21 Nov 2007 00:02:53 +0000 (00:02 -0000)]
Bug #199311 - Make dblink.getcontents() show the path of the
CONTENTS file when any kind of parse error occurs.
(trunk r8511)
svn path=/main/branches/2.1.2/; revision=8563
Zac Medico [Wed, 21 Nov 2007 00:00:59 +0000 (00:00 -0000)]
Fix quoting for `source ${EBUILD}`. (trunk r8503)
svn path=/main/branches/2.1.2/; revision=8562
Zac Medico [Tue, 20 Nov 2007 23:59:51 +0000 (23:59 -0000)]
Make dir_get_metadata() return early if the current user does
not have write access to /var/cache/edb. Thanks to Cardoe for
reporting. (trunk r8502)
svn path=/main/branches/2.1.2/; revision=8561
Zac Medico [Tue, 20 Nov 2007 23:54:19 +0000 (23:54 -0000)]
* Replace references to deprecated ${IMAGE} with equivalent ${D}.
* Remove redundant trailing slashes and fix quoting.
(trunk r8501)
svn path=/main/branches/2.1.2/; revision=8560
Zac Medico [Tue, 20 Nov 2007 23:36:18 +0000 (23:36 -0000)]
Make 'full' the default mode, since 'scan' can be annoying when it
omits relevant info. (trunk r8499)
svn path=/main/branches/2.1.2/; revision=8558
Zac Medico [Tue, 20 Nov 2007 23:22:20 +0000 (23:22 -0000)]
In the slot collision display, show a maximum of 3 parents
for each package in order to avoid flooding the display.
(trunk r8500)
svn path=/main/branches/2.1.2/; revision=8557
Zac Medico [Tue, 20 Nov 2007 23:19:13 +0000 (23:19 -0000)]
Make the slot collision display show all collisions instead
of just the first one. (trunk r8498)
svn path=/main/branches/2.1.2/; revision=8556
Zac Medico [Tue, 20 Nov 2007 22:18:23 +0000 (22:18 -0000)]
Fix blocker handling to properly handle SLOT atoms in
depgraph.validate_blockers(). (trunk r8495)
svn path=/main/branches/2.1.2/; revision=8555
Zac Medico [Tue, 20 Nov 2007 21:59:43 +0000 (21:59 -0000)]
Bug #197797 - Set umask to 022 so that created files (such as the
world file) have sane permissions.
svn path=/main/branches/2.1.2/; revision=8554
Zac Medico [Tue, 20 Nov 2007 21:58:03 +0000 (21:58 -0000)]
Make diefunc() clean up QA_INTERCEPTORS in case it is
called from inherit() since sed called below. (trunk
r8490)
svn path=/main/branches/2.1.2/; revision=8553
Zac Medico [Tue, 20 Nov 2007 21:44:10 +0000 (21:44 -0000)]
Convert all the checks in repoman.checks to use a new LineCheck
interface that takes a single line as an argument. This has at
least a few of benefits:
* Eliminates lots of redundant code
* Error messages are ordered by line number across all checks
The performance is slightly worse due to the increased number
of method calls, but it's not really noticeable in comparison
to the time consumed by dependency checks.
Thanks to Petteri Räty <betelgeuse@gentoo.org> for the initial
patch which I only made a few minor modifications to.
(trunk r8483)
Make the EbuildQuote.missing_quotes regex accept single
quotes where it accepts double quotes in order to
eliminate some false positives. Thanks to Krzysiek
Pawlik <nelchael@gentoo.org> for reporting.
(trunk r8485)
svn path=/main/branches/2.1.2/; revision=8552
Zac Medico [Tue, 20 Nov 2007 20:07:15 +0000 (20:07 -0000)]
Remove the workaround for \n -> \r\n transformations in
SpawnTestCase.testLogfile() since the problem is solved
by the patch from bug #198491. (trunk r8474)
svn path=/main/branches/2.1.2/; revision=8551
Zac Medico [Tue, 20 Nov 2007 20:05:12 +0000 (20:05 -0000)]
Bug #198491 - Disable termios.OPOST post-processing of output on
the slave pty file descriptor since otherwise weird things like
\n -> \r\n transformations may occur. Thanks to Ulrich Mueller
<ulm@gentoo.org> for this patch. (trunk r8473)
svn path=/main/branches/2.1.2/; revision=8550
Zac Medico [Tue, 20 Nov 2007 20:02:50 +0000 (20:02 -0000)]
make.globals should not be relative to config_root
because it only contains constants. (trunk r8471)
svn path=/main/branches/2.1.2/; revision=8549
Zac Medico [Tue, 20 Nov 2007 19:59:39 +0000 (19:59 -0000)]
Tweak EOutput.term_columns calculation for TERM="dumb" so
that it behaves like TERM="cons25" currently does. Thanks
to Ulrich Mueller <ulm@gentoo.org> for the patch.
(trunk r8468)
svn path=/main/branches/2.1.2/; revision=8548
Zac Medico [Tue, 20 Nov 2007 19:41:06 +0000 (19:41 -0000)]
Don't do:
Calculating dependencies |Fetching binary packages info...
but instead put "Fetching ..." on it's own line. (trunk r8466)
svn path=/main/branches/2.1.2/; revision=8547
Zac Medico [Tue, 20 Nov 2007 19:36:37 +0000 (19:36 -0000)]
Bug #198492 - Make quickpkg create $PKGDIR if it doesn't
already exist. (trunk r8464)
svn path=/main/branches/2.1.2/; revision=8546
Zac Medico [Tue, 20 Nov 2007 19:31:55 +0000 (19:31 -0000)]
It is not cool and/or helpfull to see an HTML dump of some
page in case it is not what is expected (like a 404).
(trunk r8462)
svn path=/main/branches/2.1.2/; revision=8545
Zac Medico [Tue, 20 Nov 2007 19:30:17 +0000 (19:30 -0000)]
For unsatisfied dependencies, shorten the per-package EAPI mask
output and show an informative message whenever an EAPI mask is
encountered. (trunk r8457)
svn path=/main/branches/2.1.2/; revision=8544
Zac Medico [Sun, 18 Nov 2007 04:23:36 +0000 (04:23 -0000)]
Synchronize vardbapi._aux_cache_keys with trunk. It's important
at least to include RESTRICT since the depgraph uses that one
and therefore it should be cached to improve performance. The
others aren't strictly necessary at this time, but it's good to
be in sync with trunk.
svn path=/main/branches/2.1.2/; revision=8522
Zac Medico [Tue, 6 Nov 2007 17:27:52 +0000 (17:27 -0000)]
Remove the usage.obsolete "KEYWORDS contain -*" warning since people
are using -* to indicate that a package should not be tried on archs
other than those for which it already has KEYWORDS.
svn path=/main/branches/2.1.2/; revision=8448
Zac Medico [Tue, 6 Nov 2007 10:05:07 +0000 (10:05 -0000)]
Simplify and fix bugs in is_valid_package_atom(). (trunk r8445)
svn path=/main/branches/2.1.2/; revision=8446
Zac Medico [Tue, 6 Nov 2007 08:35:56 +0000 (08:35 -0000)]
Go ahead and exempt selected profile-specific USE_EXPAND
flags from IUSE QA Notices since we are planning to make
these particular flags into implicit members of IUSE.
We can make this extensible later, but for now we just
want to eliminate some useless QA Notices (a subset of
bug #70648). We're not exempting any non profile-
specific USE_EXPAND flags here. For non profile-specific
flags, we intend to implement an IUSE syntax extension
(bug #133327). (trunk r8442)
svn path=/main/branches/2.1.2/; revision=8443
Zac Medico [Tue, 6 Nov 2007 07:26:26 +0000 (07:26 -0000)]
Remove the installed package masking hack from bug #149816 since
installed packages should be able to satisfy dependencies whether
they are masked or not (matches current trunk behavior).
svn path=/main/branches/2.1.2/; revision=8441