portage.git
16 years agoWhen filtering the backupenv in create_trees(), be more
Zac Medico [Fri, 23 Nov 2007 00:08:00 +0000 (00:08 -0000)]
When filtering the backupenv in create_trees(), be more
selective and ensure that special variables that come from
the config constructor are preserved.

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

16 years agoAllow any errors from save_ebuild_env() to go to stderr instead of
Zac Medico [Thu, 22 Nov 2007 22:23:24 +0000 (22:23 -0000)]
Allow any errors from save_ebuild_env() to go to stderr instead of
directing them to /dev/null.

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

16 years agoGeneralize the sed expression in filter_readonly_variables() so that
Zac Medico [Thu, 22 Nov 2007 21:59:54 +0000 (21:59 -0000)]
Generalize the sed expression in filter_readonly_variables() so that
it will work with things like 'declare -xr' as well as 'declare -rx'.

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

16 years agoDon't call preprocess_ebuild_env() unless EBUILD_SH_ARGS is set
Zac Medico [Thu, 22 Nov 2007 20:19:22 +0000 (20:19 -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.

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

16 years agoWhen portage reinstalls itself, during inst/rm phases, the
Zac Medico [Thu, 22 Nov 2007 19:52:34 +0000 (19:52 -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.

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

16 years agoDocument dohtml -p. Thanks to robbat2 for reporting.
Zac Medico [Thu, 22 Nov 2007 19:05:25 +0000 (19:05 -0000)]
Document dohtml -p. Thanks to robbat2 for reporting.

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

16 years agoMake dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entries
Zac Medico [Thu, 22 Nov 2007 08:21:17 +0000 (08:21 -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.

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

16 years agoFilter HOSTTYPE, MACHTYPE, and OSTYPE vars that are set by bash.
Zac Medico [Thu, 22 Nov 2007 07:41:00 +0000 (07:41 -0000)]
Filter HOSTTYPE, MACHTYPE, and OSTYPE vars that are set by bash.

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

16 years agoIn depgraph.altlist(), measure the bias of circular
Zac Medico [Thu, 22 Nov 2007 06:12:43 +0000 (06:12 -0000)]
In depgraph.altlist(), measure the bias of circular
RDEPEND <-> PDEPEND relationships and use it to
optimize merge order.

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

16 years agoReplace usage of the "myarg" global variable with the equivalent
Zac Medico [Wed, 21 Nov 2007 18:54:58 +0000 (18:54 -0000)]
Replace usage of the "myarg" global variable with the equivalent
readonly EBUILD_SH_ARGS variable.

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

16 years agoIn dyn_install(), don't cleanse S from the global environment,
Zac Medico [Wed, 21 Nov 2007 10:45:22 +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.

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

16 years ago* Make save_ebuild_env() filter some more variables.
Zac Medico [Wed, 21 Nov 2007 10:31:13 +0000 (10:31 -0000)]
* Make save_ebuild_env() filter some more variables.
* Make dyn_install() filter S when it's no longer needed.

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

16 years agoFix the diefunc overlay message so that it doesn't trigger
Zac Medico [Wed, 21 Nov 2007 08:29:52 +0000 (08:29 -0000)]
Fix the diefunc overlay message so that it doesn't trigger
falsely in prerm or postrm.

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

16 years agoGenerate an eerror elog message when an ebuild prerm or
Zac Medico [Wed, 21 Nov 2007 08:26:19 +0000 (08:26 -0000)]
Generate an eerror elog message when an ebuild prerm or
postrm phase fails.

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

16 years agoMove environment saving from dyn_compile() to dyn_install()
Zac Medico [Wed, 21 Nov 2007 08:00:19 +0000 (08:00 -0000)]
Move environment saving from dyn_compile() to dyn_install()
so that state from src_install() is saved.

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

16 years agoClean up some local variables that are needlessly saved
Zac Medico [Wed, 21 Nov 2007 07:38:24 +0000 (07:38 -0000)]
Clean up some local variables that are needlessly saved
in the environment.

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

17 years agoMove preinst IMAGE initialzation before bashrc handling.
Zac Medico [Wed, 21 Nov 2007 04:17:55 +0000 (04:17 -0000)]
Move preinst IMAGE initialzation before bashrc handling.

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

17 years ago* Remove bogus "ci" mode.
Zac Medico [Tue, 20 Nov 2007 23:47:08 +0000 (23:47 -0000)]
* Remove bogus "ci" mode.
* Sync "scan" mode description with 2.1.2 branch.

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

17 years agoDon't unset ${S} inside save_ebuild_env().
Zac Medico [Tue, 20 Nov 2007 11:39:43 +0000 (11:39 -0000)]
Don't unset ${S} inside save_ebuild_env().

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

17 years agoInstead of filtering out all readonly variables, make it
Zac Medico [Tue, 20 Nov 2007 10:41:41 +0000 (10:41 -0000)]
Instead of filtering out all readonly variables, make it
selective so that any readonly variables that are not
explicitly filtered are allowed to be saved.

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

17 years agoFix ${EBUILD_PHASE} quoting.
Zac Medico [Tue, 20 Nov 2007 07:09:55 +0000 (07:09 -0000)]
Fix ${EBUILD_PHASE} quoting.

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

17 years agoDon't make variables readonly during the "depend" phase.
Zac Medico [Tue, 20 Nov 2007 06:31:36 +0000 (06:31 -0000)]
Don't make variables readonly during the "depend" phase.

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

17 years agoWhen ROOT != "/" we only want overrides from the calling
Zac Medico [Tue, 20 Nov 2007 05:49:37 +0000 (05:49 -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.

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

17 years agoWhen ${T}/environment is available, do not source the ebuild since
Zac Medico [Tue, 20 Nov 2007 05:21:10 +0000 (05:21 -0000)]
When ${T}/environment is available, do not source the ebuild since
that is redundant. This solves bug #46223.

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

17 years agoNow that save_ebuild_env() filters variables that could cause
Zac Medico [Tue, 20 Nov 2007 02:33:28 +0000 (02:33 -0000)]
Now that save_ebuild_env() filters variables that could cause
interference, preprocess_ebuild_env() can rely on it to clean
up the environment enough so that anything left can be allowed
to override variables or functions from the current environment.

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

17 years agoAdd some more variables to filter in filter_readonly_variables()
Zac Medico [Tue, 20 Nov 2007 02:17:31 +0000 (02:17 -0000)]
Add some more variables to filter in filter_readonly_variables()
and save_ebuild_env().

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

17 years agoMove LD_PRELOAD and FAKEROOTKEY filtering from filter_readonly_variables()
Zac Medico [Tue, 20 Nov 2007 01:00:29 +0000 (01:00 -0000)]
Move LD_PRELOAD and FAKEROOTKEY filtering from filter_readonly_variables()
to save_ebuild_env().

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

17 years agoMake AA, PF, and WORKDIR readonly.
Zac Medico [Mon, 19 Nov 2007 23:03:43 +0000 (23:03 -0000)]
Make AA, PF, and WORKDIR readonly.

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

17 years agoMake save_ebuild_env() filter out lots of variables that
Zac Medico [Mon, 19 Nov 2007 22:57:31 +0000 (22:57 -0000)]
Make save_ebuild_env() filter out lots of variables that
don't need to be saved.

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

17 years agoMake preprocess_ebuild_env() explicitly filter out FEATURES
Zac Medico [Mon, 19 Nov 2007 22:08:07 +0000 (22:08 -0000)]
Make preprocess_ebuild_env() explicitly filter out FEATURES
since the value for that variable should never come from a
previously saved environment.

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

17 years agoImplement loading of environment.bz2 from binary and installed
Zac Medico [Mon, 19 Nov 2007 21:41:54 +0000 (21:41 -0000)]
Implement loading of environment.bz2 from binary and installed
packages. For binary packages, it's loaded prior to pkg_setup().
For installed packages, it's loaded prior to pkg_prerm().

For simplicity, the current implementation will cause the current
environment to override *everything* in the environment that is
being processed. In the future, it should be more selective and
only override the parts that are strictly necessary.

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

17 years agoIn bash-3.2_p20+ an attempt to assign BASH_*, FUNCNAME, GROUPS or any
Zac Medico [Mon, 19 Nov 2007 10:16:25 +0000 (10:16 -0000)]
In bash-3.2_p20+ an attempt to assign BASH_*, FUNCNAME, GROUPS or any
readonly variable cause the shell to exit while executing the "source"
builtin command. To avoid this problem, a new save_ebuild_env() function
filters those variables out and discards them. See bug #190128.

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

17 years agoWhen creating environment.bz2 at the end of dyn_compile(),
Zac Medico [Mon, 19 Nov 2007 06:46:09 +0000 (06:46 -0000)]
When creating environment.bz2 at the end of dyn_compile(),
reduce bloat by filtering out functions that are defined
internally by portage. This reduces the size of the resulting
environment.bz2 file by approximately 10 KB.

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

17 years agoDisable logging and ${T}/environment saving during the
Zac Medico [Mon, 19 Nov 2007 06:09:11 +0000 (06:09 -0000)]
Disable logging and ${T}/environment saving during the
pkg_info() phase.

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

17 years agoUse the existing RootConfig class to serve as a replacement for
Zac Medico [Mon, 19 Nov 2007 06:00:24 +0000 (06:00 -0000)]
Use the existing RootConfig class to serve as a replacement for
the EmergeConfig class. They both served roughly the same purpose
and it was messy the way that EmergeConfig inherited from the
portage.config class. It's better to avoid inheritance here,
expecially since it doesn't provide anything really useful.

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

17 years agoFix PROFILE_ONLY_VARIABLES handling in the config constructor
Zac Medico [Mon, 19 Nov 2007 00:02:34 +0000 (00:02 -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.

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

17 years agoBug #198398 - Enable Manifest generation when there are no hash
Zac Medico [Sun, 18 Nov 2007 02:50:49 +0000 (02:50 -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).

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

17 years agoFix NEEDED logic in vardbapi.aux_get() so that empty
Zac Medico [Sun, 18 Nov 2007 00:21:37 +0000 (00:21 -0000)]
Fix NEEDED logic in vardbapi.aux_get() so that empty
NEEDED doesn't trigger unnecessary cache pulls.

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

17 years agoFix --usepkgonly code in depgraph.select_files() so that it
Zac Medico [Sat, 17 Nov 2007 21:54:32 +0000 (21:54 -0000)]
Fix --usepkgonly code in depgraph.select_files() so that it
only operates on the Package type that it expects.

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

17 years agoClean up vardbapi.counter_tick_core() and replace shell code
Zac Medico [Sat, 17 Nov 2007 09:09:47 +0000 (09:09 -0000)]
Clean up vardbapi.counter_tick_core() and replace shell code
with pure python.

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

17 years agoSpeed up LibraryPackageMap.update() by pulling NEEDED from the
Zac Medico [Fri, 16 Nov 2007 08:43:10 +0000 (08:43 -0000)]
Speed up LibraryPackageMap.update() by pulling NEEDED from the
vardbapi.aux_get() cache. This greatly reduces the amount of
needless IO that has been happening just prior to the postinst
phase in dblink.treewalk(). We may want to consider having
LibraryPackageMap work directly from the vardbapi instead of
creating the intermediate /var/cache/edb/library_consumers file.

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

17 years agoSet IMAGE for minimal backward compatibility with
Zac Medico [Fri, 16 Nov 2007 06:21:26 +0000 (06:21 -0000)]
Set IMAGE for minimal backward compatibility with
overlays or user's bashrc, but don't export it.

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

17 years agoDon't export ${IMAGE} to the ebuild environment anymore since
Zac Medico [Fri, 16 Nov 2007 06:16:15 +0000 (06:16 -0000)]
Don't export ${IMAGE} to the ebuild environment anymore since
everything uses ${D} now (including the entire tree).

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

17 years agoBug #199311 - Make dblink.getcontents() show the path of the
Zac Medico [Fri, 16 Nov 2007 00:09:59 +0000 (00:09 -0000)]
Bug #199311 - Make dblink.getcontents() show the path of the
CONTENTS file when any kind of parse error occurs.

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

17 years agoFix quoting for `source ${EBUILD}`.
Zac Medico [Thu, 15 Nov 2007 05:41:57 +0000 (05:41 -0000)]
Fix quoting for `source ${EBUILD}`.

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

17 years agoMake dir_get_metadata() return early if the current user does
Zac Medico [Thu, 15 Nov 2007 02:27:30 +0000 (02:27 -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.

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

17 years ago* Replace references to deprecated ${IMAGE} with equivalent ${D}.
Zac Medico [Wed, 14 Nov 2007 21:07:33 +0000 (21:07 -0000)]
* Replace references to deprecated ${IMAGE} with equivalent ${D}.
* Remove redundant trailing slashes and fix quoting.

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

17 years agoIn the slot collision display, show a maximum of 3 parents
Zac Medico [Wed, 14 Nov 2007 00:30:51 +0000 (00:30 -0000)]
In the slot collision display, show a maximum of 3 parents
for each package in order to avoid flooding the display.

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

17 years agoMake 'full' the default mode, since 'scan' can be annoying since it
Zac Medico [Tue, 13 Nov 2007 21:05:22 +0000 (21:05 -0000)]
Make 'full' the default mode, since 'scan' can be annoying since it
ommits relevant info.

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

17 years agoMake the slot collision display show all collisions instead
Zac Medico [Tue, 13 Nov 2007 20:53:56 +0000 (20:53 -0000)]
Make the slot collision display show all collisions instead
of just the first one.

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

17 years agoMake depgraph._complete_graph() properly specify SetArg instances
Zac Medico [Tue, 13 Nov 2007 19:20:20 +0000 (19:20 -0000)]
Make depgraph._complete_graph() properly specify SetArg instances
as parents of each Dependency, similar to the want that
select_files() does.

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

17 years agoMake depgraph._add_pkg() match the package with all possible
Zac Medico [Tue, 13 Nov 2007 07:48:45 +0000 (07:48 -0000)]
Make depgraph._add_pkg() match the package with all possible
args and add them to the digraph.

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

17 years agoRemove the depgraph.pkg_node_map attribute and use other
Zac Medico [Mon, 12 Nov 2007 18:36:47 +0000 (18:36 -0000)]
Remove the depgraph.pkg_node_map attribute and use other
means to accomplish the same thing.

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

17 years agoAdd DependencyArg instances as parents of packages in the
Zac Medico [Mon, 12 Nov 2007 07:54:37 +0000 (07:54 -0000)]
Add DependencyArg instances as parents of packages in the
digraph since these relationships should be useful during
backtracking.

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

17 years ago* Remove all references to the obsolete Package.digraph_node attribute.
Zac Medico [Mon, 12 Nov 2007 06:43:03 +0000 (06:43 -0000)]
* Remove all references to the obsolete Package.digraph_node attribute.
* Reimplement Package comparison methods since the previous way didn't
  seem to function properly for dict keys.
* Clean up depgraph._add_pkg() to use the Package object attributes.

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

17 years agoMake the Package class emulate the interface of it's own
Zac Medico [Mon, 12 Nov 2007 03:34:22 +0000 (03:34 -0000)]
Make the Package class emulate the interface of it's own
digraph_node tuple so that the Package instance itself
can be added directly to the digraph.

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

17 years agoBug #197797 - Set umask to 022 so that created files (such as the
Zac Medico [Mon, 12 Nov 2007 01:42:08 +0000 (01:42 -0000)]
Bug #197797 - Set umask to 022 so that created files (such as the
world file) have sane permissions.

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

17 years agoMake diefunc() clean up QA_INTERCEPTORS in case it is
Zac Medico [Sun, 11 Nov 2007 22:17:05 +0000 (22:17 -0000)]
Make diefunc() clean up QA_INTERCEPTORS in case it is
called from inherit() since sed called below.

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

17 years ago* Provide reasonable default values for Dependency
Zac Medico [Sun, 11 Nov 2007 10:51:42 +0000 (10:51 -0000)]
* Provide reasonable default values for Dependency
  priority and depth attributes.
* Remove depgraph.create() since it's no longer needed.
* Remove depgraph._get_parent_sets() and instead get the
  information from DependencyArg attributes.

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

17 years agoFix depgraph._get_arg_for_pkg() so that it compares package
Zac Medico [Sun, 11 Nov 2007 08:47:43 +0000 (08:47 -0000)]
Fix depgraph._get_arg_for_pkg() so that it compares package
types to help ensure a proper match.

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

17 years agoImplement mapping of packages to instances of DependencyArg
Zac Medico [Sun, 11 Nov 2007 06:20:08 +0000 (06:20 -0000)]
Implement mapping of packages to instances of DependencyArg
in depgraph._get_arg_for_pkg(). Among other things, this
provides a way to know whether or not a specific package
has been specified as an argument, which determines whether
or not it can be removed from the graph during backtracking.

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

17 years agoWrap accesses to depgraph._set_atoms.findAtomForPackage() in
Zac Medico [Sun, 11 Nov 2007 01:01:34 +0000 (01:01 -0000)]
Wrap accesses to depgraph._set_atoms.findAtomForPackage() in
a new depgraph._get_arg_for_pkg() method.

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

17 years agoMake the EbuildQuote.missing_quotes regex accept single
Zac Medico [Sat, 10 Nov 2007 17:31:08 +0000 (17:31 -0000)]
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.

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

17 years agoFix WorldSet.cleanPackage() so that it properly preserves
Zac Medico [Sat, 10 Nov 2007 06:48:24 +0000 (06:48 -0000)]
Fix WorldSet.cleanPackage() so that it properly preserves
nonatoms (sets) in the world file.

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

17 years agoConvert all the checks in repoman.checks to use a new LineCheck
Zac Medico [Sat, 10 Nov 2007 03:12:09 +0000 (03:12 -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.

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

17 years agoClean up expansion of set arguments in depgraph.select_files().
Zac Medico [Fri, 9 Nov 2007 20:17:47 +0000 (20:17 -0000)]
Clean up expansion of set arguments in depgraph.select_files().

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

17 years agofix typo and missing classmethod declaration
Marius Mauch [Fri, 9 Nov 2007 16:35:05 +0000 (16:35 -0000)]
fix typo and missing classmethod declaration

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

17 years agoif multiple glsas result in the same cat/pkg:slot being affected only use the highest...
Marius Mauch [Fri, 9 Nov 2007 15:51:10 +0000 (15:51 -0000)]
if multiple glsas result in the same cat/pkg:slot being affected only use the highest resulting atom

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

17 years agomove checkfile parsing into its own function
Marius Mauch [Fri, 9 Nov 2007 15:38:48 +0000 (15:38 -0000)]
move checkfile parsing into its own function

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

17 years agoMove glsa-check from gentoolkit into portage so the gentoolkit version can be removed...
Marius Mauch [Fri, 9 Nov 2007 15:10:37 +0000 (15:10 -0000)]
Move glsa-check from gentoolkit into portage so the gentoolkit version can be removed after 2.2 is released

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

17 years agorevert getMergeList to return CPVs again instead of atoms
Marius Mauch [Fri, 9 Nov 2007 15:07:18 +0000 (15:07 -0000)]
revert getMergeList to return CPVs again instead of atoms

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

17 years agoFix incorrect type in depgraph._missing_args.
Zac Medico [Fri, 9 Nov 2007 08:21:50 +0000 (08:21 -0000)]
Fix incorrect type in depgraph._missing_args.

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

17 years agoCreate classes to encapsulate eache of the depgraph argument
Zac Medico [Fri, 9 Nov 2007 07:15:55 +0000 (07:15 -0000)]
Create classes to encapsulate eache of the depgraph argument
types: atoms, packages and sets.

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

17 years agoRemove the workaround for \n -> \r\n transformations in
Zac Medico [Fri, 9 Nov 2007 03:35:38 +0000 (03:35 -0000)]
Remove the workaround for \n -> \r\n transformations in
SpawnTestCase.testLogfile() since the problem is solved
by the patch from bug #198491.

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

17 years agoBug #198491 - Disable termios.OPOST post-processing of output on
Zac Medico [Fri, 9 Nov 2007 03:33:07 +0000 (03:33 -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.

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

17 years agoRevert accidental hunk from bug 198491. Haven't tested
Zac Medico [Fri, 9 Nov 2007 01:54:28 +0000 (01:54 -0000)]
Revert accidental hunk from bug 198491. Haven't tested
this yet.

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

17 years agomake.globals should not be relative to config_root
Zac Medico [Fri, 9 Nov 2007 01:33:41 +0000 (01:33 -0000)]
make.globals should not be relative to config_root
because it only contains constants.

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

17 years agoTweak EOutput.term_columns calculation for TERM="dumb" so
Zac Medico [Thu, 8 Nov 2007 22:36:32 +0000 (22:36 -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.

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

17 years agoDon't do:
Zac Medico [Thu, 8 Nov 2007 22:11:23 +0000 (22:11 -0000)]
Don't do:
  Calculating dependencies |Fetching binary packages info...
but instead put "Fetching ..." on it's own line.
(branches/prefix r8461)

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

17 years agoBug #198492 - Make quickpkg create $PKGDIR if it doesn't
Zac Medico [Thu, 8 Nov 2007 22:03:32 +0000 (22:03 -0000)]
Bug #198492 - Make quickpkg create $PKGDIR if it doesn't
already exist.

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

17 years agoIt is not cool and/or helpfull to see an HTML dump of some
Zac Medico [Thu, 8 Nov 2007 21:57:12 +0000 (21:57 -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).
(branches/prefix r8460)

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

17 years agoFor unsatisfied dependencies, shorten the per-package EAPI mask
Zac Medico [Wed, 7 Nov 2007 23:54:15 +0000 (23:54 -0000)]
For unsatisfied dependencies, shorten the per-package EAPI mask
output and show an informative message whenever an EAPI mask is
encountered.

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

17 years agoReally fix broken logic for --update greedy slot atoms in
Zac Medico [Wed, 7 Nov 2007 08:19:21 +0000 (08:19 -0000)]
Really fix broken logic for --update greedy slot atoms in
depgraph.select_files().

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

17 years agoFix broken logic for --update greedy slot atoms in
Zac Medico [Wed, 7 Nov 2007 08:15:49 +0000 (08:15 -0000)]
Fix broken logic for --update greedy slot atoms in
depgraph.select_files().

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

17 years agoMake depgraph.select_files() perform internal expansion of
Zac Medico [Tue, 6 Nov 2007 22:58:16 +0000 (22:58 -0000)]
Make depgraph.select_files() perform internal expansion of
package set arguments since ideally the depgraph needs to
be awary of the precise origin of each atom.

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

17 years agoRemove the usage.obsolete "KEYWORDS contain -*" warning since people
Zac Medico [Tue, 6 Nov 2007 17:21:13 +0000 (17:21 -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/trunk/; revision=8447

17 years agoSimplify and fix bugs in is_valid_package_atom().
Zac Medico [Tue, 6 Nov 2007 09:39:26 +0000 (09:39 -0000)]
Simplify and fix bugs in is_valid_package_atom().

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

17 years agoRemove references to ${O} in dyn_spec() since antarus
Zac Medico [Tue, 6 Nov 2007 08:58:08 +0000 (08:58 -0000)]
Remove references to ${O} in dyn_spec() since antarus
made that variable mutable.

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

17 years agoGo ahead and exempt selected profile-specific USE_EXPAND
Zac Medico [Tue, 6 Nov 2007 08:31:22 +0000 (08:31 -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).

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

17 years agoFix create_world_atom() logic some more for bug #198129.
Zac Medico [Tue, 6 Nov 2007 06:54:41 +0000 (06:54 -0000)]
Fix create_world_atom() logic some more for bug #198129.

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

17 years agoBug #198129 - Prevent SLOT atoms like sys-devel/binutils:0
Zac Medico [Tue, 6 Nov 2007 06:41:04 +0000 (06:41 -0000)]
Bug #198129 - Prevent SLOT atoms like  sys-devel/binutils:0
from being inappropriately recorded in the world file when
USE=multislot is enabled.

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

17 years agoremove O and PPID from being readonly. O is set python side (and we will hopefully...
Alec Warner [Tue, 6 Nov 2007 06:25:50 +0000 (06:25 -0000)]
remove O and PPID from being readonly.  O is set python side (and we will hopefully stop being exported soon.  PPID is ro by bash, so no need to declare it twice

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

17 years agoAllow multislot packages to be added to the world file
Zac Medico [Mon, 5 Nov 2007 22:42:16 +0000 (22:42 -0000)]
Allow multislot packages to be added to the world file
via --noreplace. Having these atoms in the world file
will trigger recommendations to run emaint in some
cases, like when running `emerge -e world`. The atoms
need to be in the world file to prevent multislot
packages from being removed by --depclean though.

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

17 years agoMake WorldHandler lock the world file when in --fix mode.
Zac Medico [Mon, 5 Nov 2007 08:41:00 +0000 (08:41 -0000)]
Make WorldHandler lock the world file when in --fix mode.

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

17 years agoAdd support for package sets in WorldHandler.
Zac Medico [Mon, 5 Nov 2007 08:01:54 +0000 (08:01 -0000)]
Add support for package sets in WorldHandler.

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

17 years agoFix 'TypeError: not all arguments converted during string formatting'
Zac Medico [Mon, 5 Nov 2007 06:49:14 +0000 (06:49 -0000)]
Fix 'TypeError: not all arguments converted during string formatting'
issues with the EbuildNestedDie check.

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

17 years agoReplace StringIO usage with a simple list of lines. The
Zac Medico [Mon, 5 Nov 2007 06:16:16 +0000 (06:16 -0000)]
Replace StringIO usage with a simple list of lines. The
iteration interface is practically identical but the
list of lines if more efficient because the lines only
have to be split one time for each ebuild instead of
for each check.

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

17 years agoMake exception strings more informative.
Zac Medico [Sun, 4 Nov 2007 20:57:12 +0000 (20:57 -0000)]
Make exception strings more informative.

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

17 years agoMake Manifest.create() do some basic validation of ebuild
Zac Medico [Sun, 4 Nov 2007 18:00:56 +0000 (18:00 -0000)]
Make Manifest.create() do some basic validation of ebuild
file names like portdbapi.cp_list() would do.

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

17 years agoIn portdbapi.cp_list(), validate the ebuild name to ensure
Zac Medico [Sun, 4 Nov 2007 09:29:56 +0000 (09:29 -0000)]
In portdbapi.cp_list(), validate the ebuild name to ensure
that it matches the name of the package.

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