portage.git
16 years agoMake some adjustments so that it's possible to install binary
Zac Medico [Thu, 20 Dec 2007 05:16:44 +0000 (05:16 -0000)]
Make some adjustments so that it's possible to install binary
packages without having a portage tree:

* Make portdbapi.aux_get() return early by raising a KeyError
  if it detects that there is no portage tree.

* Move the ARCH and USERLAND sanity check to the last moment
  in doebuild() and only require these variables if an
  existing environment (such as environment.bz2) is
  unavailable.

* Make the NewsManager constructor cope with a broken
  make.profile symlink.

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

16 years agoBug #202748 - When merging a binary package, only clean up
Zac Medico [Thu, 20 Dec 2007 04:00:24 +0000 (04:00 -0000)]
Bug #202748 - When merging a binary package, only clean up
temp files on success. Otherwise, leave the temp files
intact for debugging purposes.

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

16 years agoWhitespace only: remove extra indentation.
Zac Medico [Thu, 20 Dec 2007 02:29:19 +0000 (02:29 -0000)]
Whitespace only: remove extra indentation.

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

16 years agoAlways add ARCH to USE without relying on it being listed
Zac Medico [Thu, 20 Dec 2007 02:11:18 +0000 (02:11 -0000)]
Always add ARCH to USE without relying on it being listed
in PORTAGE_ARCHLIST.

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

16 years agoBug #140180 - Ignore missing HOMEPAGE and LICENSE variables for
Zac Medico [Wed, 19 Dec 2007 06:54:58 +0000 (06:54 -0000)]
Bug #140180 - Ignore missing HOMEPAGE and LICENSE variables for
new-style virtual packages.

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

16 years agoKeep filtered USE in the PORTAGE_USE variable to keep
Zac Medico [Wed, 19 Dec 2007 03:41:24 +0000 (03:41 -0000)]
Keep filtered USE in the PORTAGE_USE variable to keep
it separate from the global USE that's shown by
emerge --info.

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

16 years agoTrigger a config.regenerate() call inside setcpv() when the
Zac Medico [Wed, 19 Dec 2007 02:49:31 +0000 (02:49 -0000)]
Trigger a config.regenerate() call inside setcpv() when the
EBUILD_PHASE variable is defined. It's too expensive to do
the regenerate() call every time. Do in when EBUILD_PHASE
is defined since it's needed to create the filtered USE that
environ() passes to the ebuild environment.

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

16 years agoStore filtered USE for config.environ() calls in a special
Zac Medico [Tue, 18 Dec 2007 14:47:41 +0000 (14:47 -0000)]
Store filtered USE for config.environ() calls in a special
attribute so that the normal global USE is still available
for things like emerge --info output.

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

16 years agoFix USE filtering code so that it doesn't rely on config.setcpv()
Zac Medico [Tue, 18 Dec 2007 14:14:22 +0000 (14:14 -0000)]
Fix USE filtering code so that it doesn't rely on config.setcpv()
calling config.regenerate().

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

16 years agoMake special build and bootstrap flags into implicit members
Zac Medico [Tue, 18 Dec 2007 12:05:04 +0000 (12:05 -0000)]
Make special build and bootstrap flags into implicit members
of IUSE so that stage builds will work again.

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

16 years agoDisplay the merge list with blockers any time that there are
Zac Medico [Tue, 18 Dec 2007 09:27:37 +0000 (09:27 -0000)]
Display the merge list with blockers any time that there are
blockers, instead of telling the user to try again with
--pretend.

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

16 years agoOnly enable the PORTAGE_IUSE check during build time phases
Zac Medico [Tue, 18 Dec 2007 08:21:37 +0000 (08:21 -0000)]
Only enable the PORTAGE_IUSE check during build time phases
since that's the only time it's valid for now.

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

16 years agoInclude masked flags in PORTAGE_IUSE to avoid more false positives
Zac Medico [Tue, 18 Dec 2007 07:09:00 +0000 (07:09 -0000)]
Include masked flags in PORTAGE_IUSE to avoid more false positives
in the useq() IUSE check.

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

16 years agoCreate a PORTAGE_IUSE variable containing an egrep pattern
Zac Medico [Tue, 18 Dec 2007 06:32:16 +0000 (06:32 -0000)]
Create a PORTAGE_IUSE variable containing an egrep pattern
for use by the QA check that's built into useq(). This allows
the IUSE logic for this check to be isolated in the python
code.

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

16 years agoBug #176467 - Filter out USE flags that aren't part of IUSE.
Zac Medico [Tue, 18 Dec 2007 04:04:40 +0000 (04:04 -0000)]
Bug #176467 - Filter out USE flags that aren't part of IUSE.
Some flags are considered to be implicit members of IUSE:

 * Flags derived from ARCH
 * Flags derived from USE_EXPAND_HIDDEN variables
 * Forced flags, such as those from {,package}use.force

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

16 years agoFix typo: %% -> ##.
Zac Medico [Tue, 18 Dec 2007 03:43:32 +0000 (03:43 -0000)]
Fix typo: %% -> ##.

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

16 years agoGeneralize the sed -> gsed wrapper script so that it's
Zac Medico [Tue, 18 Dec 2007 03:16:11 +0000 (03:16 -0000)]
Generalize the sed -> gsed wrapper script so that it's
possible to create awk, make, and patch symlinks that
behave analogously. These symlinks will make
it unnecessary for default-bsd profiles to define
profile.bashrc aliases for these commands.

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

16 years agoFix setconfig.getSets() api breakage.
Zac Medico [Mon, 17 Dec 2007 08:04:52 +0000 (08:04 -0000)]
Fix setconfig.getSets() api breakage.

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

16 years agoIn "QA Notice: Precompiled python" messages, use sed to strip the
Zac Medico [Sat, 15 Dec 2007 23:49:06 +0000 (23:49 -0000)]
In "QA Notice: Precompiled python" messages, use sed to strip the
leading ${D} from file paths.

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

16 years agoMove the reusable ConsoleStyleFile and StyleWriter classes into
Zac Medico [Sat, 15 Dec 2007 21:32:25 +0000 (21:32 -0000)]
Move the reusable ConsoleStyleFile and StyleWriter classes into
the ouput module.

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

16 years agoFix punctuation and spelling. Thanks to Arfrever Frehtes Taifersar
Zac Medico [Sat, 15 Dec 2007 21:04:02 +0000 (21:04 -0000)]
Fix punctuation and spelling. Thanks to Arfrever Frehtes Taifersar
Arahesis <arfrever.fta@gmail.com>.

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

16 years agoSplit out a format_qa_output() function to eliminate duplicate code.
Zac Medico [Sat, 15 Dec 2007 07:31:41 +0000 (07:31 -0000)]
Split out a format_qa_output() function to eliminate duplicate code.

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

16 years agoInstead of all modes, only in commit mode save an extra copy of QA
Zac Medico [Sat, 15 Dec 2007 03:54:37 +0000 (03:54 -0000)]
Instead of all modes, only in commit mode save an extra copy of QA
output for display in $EDITOR.

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

16 years agoReplace hardcoded green, yellow, and red with GOOD, WARN, and BAD.
Zac Medico [Sat, 15 Dec 2007 03:02:33 +0000 (03:02 -0000)]
Replace hardcoded green, yellow, and red with GOOD, WARN, and BAD.

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

16 years agoSave QA output so that it can be conveniently displayed
Zac Medico [Sat, 15 Dec 2007 00:18:15 +0000 (00:18 -0000)]
Save QA output so that it can be conveniently displayed
in $EDITOR while the user creates a commit message.
Otherwise, the user would not be able to see this output
once the editor has taken over the screen.

Output is done through a formatter object where it is
captured for later use. A file-like object that behaves
something like the portage.output.colorize() function is
used to transfor style identifiers from the formatter
framework into actual console codes.

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

16 years agoPrompt the user before letting the editor
Zac Medico [Fri, 14 Dec 2007 11:41:45 +0000 (11:41 -0000)]
Prompt the user before letting the editor
take over the screen so there is an
opportunity to review any QA warnings.

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

16 years agoAdd support for getting a commit message using an editor defined
Zac Medico [Fri, 14 Dec 2007 11:17:55 +0000 (11:17 -0000)]
Add support for getting a commit message using an editor defined
by the EDITOR environment variable.

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

16 years agoAdd support for multi-line commit message input by using EOF
Zac Medico [Fri, 14 Dec 2007 09:52:48 +0000 (09:52 -0000)]
Add support for multi-line commit message input by using EOF
as a delimiter (Ctrl-d) instead of a new line.

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

16 years agoAdd --buildpkgonly to the options lists that exempt from
Zac Medico [Thu, 13 Dec 2007 21:21:33 +0000 (21:21 -0000)]
Add --buildpkgonly to the options lists that exempt from
slot collisions and world file updates.

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

16 years agoDisable the "QA Notice: Pre-stripped files" message when RESTRICT
Zac Medico [Thu, 13 Dec 2007 20:54:08 +0000 (20:54 -0000)]
Disable the "QA Notice: Pre-stripped files" message when RESTRICT
contains "strip" or "binchecks". This is needed at least for the
glibc ebuild since it calls prepallstrip directly, resulting in
it being called twice. Thanks to loki_val for reporting.

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

16 years agoBug #202126 - Replace an obsolete reference to `emerge --help config`
Zac Medico [Thu, 13 Dec 2007 20:07:25 +0000 (20:07 -0000)]
Bug #202126 - Replace an obsolete reference to `emerge --help config`
with a reference to the CONFIGURATION FILES section of emerge(1).

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

16 years agoMake sure that PORTAGE_SANDBOX_* variables can never be set
Zac Medico [Thu, 13 Dec 2007 19:57:43 +0000 (19:57 -0000)]
Make sure that PORTAGE_SANDBOX_* variables can never be set
by "${T}"/environment.

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

16 years agoAllow FEATURES to persist between phases since the user might
Zac Medico [Thu, 13 Dec 2007 10:30:38 +0000 (10:30 -0000)]
Allow FEATURES to persist between phases since the user might
want to modify it via bashrc to enable things like splitdebug
and installsources for specific packages. They should be able
to modify it in pre_pkg_setup() and have it persist all the
way through the install phase. However, if FEATURES exist
inside environment.bz2 then they should be overridden by
current settings.

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

16 years agoRemove extra _ typo.
Zac Medico [Thu, 13 Dec 2007 08:34:19 +0000 (08:34 -0000)]
Remove extra _ typo.

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

16 years agoProperly filter SANDBOX_ON from the environment. When sourcing
Zac Medico [Thu, 13 Dec 2007 08:30:56 +0000 (08:30 -0000)]
Properly filter SANDBOX_ON from the environment. When sourcing
${T}/environment it's a bit tricky because we have to temporarily
disable sandbox since the SANDBOX_{DENY,READ,PREDICT,_WRITE} values
we've just loaded may be unusable (triggering in spurious sandbox
violations) until we've merged them with our current values.

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

16 years agoUse the BAD color class instead of hardcoded red.
Zac Medico [Thu, 13 Dec 2007 07:25:20 +0000 (07:25 -0000)]
Use the BAD color class instead of hardcoded red.

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

16 years agoMake portdbapi.visible() mask ebuilds that do not define SLOT.
Zac Medico [Thu, 13 Dec 2007 06:28:23 +0000 (06:28 -0000)]
Make portdbapi.visible() mask ebuilds that do not define SLOT.
(branches/2.1.2 r8900)

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

16 years agoDo the sanity check for bug #198398 as early as possible.
Zac Medico [Thu, 13 Dec 2007 05:37:52 +0000 (05:37 -0000)]
Do the sanity check for bug #198398 as early as possible.

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

16 years agoBug #201771 - Make unpack() detect common errors such as absolute
Zac Medico [Thu, 13 Dec 2007 05:27:09 +0000 (05:27 -0000)]
Bug #201771 - Make unpack() detect common errors such as absolute
paths that start with ${DISTDIR} and die an appropriate error
message. Thanks to grobian for this patch.

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

16 years agoBug #201848 - Make the ebuild command reject ebuilds that do not define
Zac Medico [Thu, 13 Dec 2007 04:30:46 +0000 (04:30 -0000)]
Bug #201848 - Make the ebuild command reject ebuilds that do not define
SLOT.

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

16 years agoBug #201848 - Mask ebuilds that do not define SLOT.
Zac Medico [Thu, 13 Dec 2007 04:23:50 +0000 (04:23 -0000)]
Bug #201848 - Mask ebuilds that do not define SLOT.

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

16 years agoUse the sed -r option to enable extended regular expressions so that
Zac Medico [Thu, 13 Dec 2007 03:54:40 +0000 (03:54 -0000)]
Use the sed -r option to enable extended regular expressions so that
commonly used characters like (, ), and + don't have to be escaped.

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

16 years agoBug #202068 - In order to filter unwanted variable assignments out
Zac Medico [Thu, 13 Dec 2007 03:44:18 +0000 (03:44 -0000)]
Bug #202068 - In order to filter unwanted variable assignments out
of the bash environment, use a filter-bash-environment.py script
that behaves similar to egrep -v except that it leaves bash here-
documents intact.

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

16 years agoIn filter_readonly_variables(), replace 'declare -r ' with 'declare '
Zac Medico [Thu, 13 Dec 2007 01:53:46 +0000 (01:53 -0000)]
In filter_readonly_variables(), replace 'declare -r ' with 'declare '
instead of removing it completely.

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

16 years agoBug #202036 - In case of blockers, bail out earlier so that later
Zac Medico [Thu, 13 Dec 2007 01:18:59 +0000 (01:18 -0000)]
Bug #202036 - In case of blockers, bail out earlier so that later
code can assume there are no blockers.

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

16 years agoFix the check for bug #198398 so that it works even when running
Zac Medico [Wed, 12 Dec 2007 09:25:49 +0000 (09:25 -0000)]
Fix the check for bug #198398 so that it works even when running
repoman from the root of the repo.

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

16 years agoBug #198398 - Make repoman bail out if support for RMD160 hash
Zac Medico [Wed, 12 Dec 2007 08:06:01 +0000 (08:06 -0000)]
Bug #198398 - Make repoman bail out if support for RMD160 hash
creation appears to be missing.

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

16 years agoInstead of calling sys.exit when a ParseError occurs in the config
Zac Medico [Tue, 11 Dec 2007 23:26:05 +0000 (23:26 -0000)]
Instead of calling sys.exit when a ParseError occurs in the config
constructor, raise a ParseError and make emerge and portageq handle
the error. This way consumers of the portage api can handle the
ParseError rather than have their application exit. Thanks to lxnay
for reporting.

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

16 years ago* Raise PermissionDenied from getconfig() when appropriate.
Zac Medico [Tue, 11 Dec 2007 23:12:45 +0000 (23:12 -0000)]
* Raise PermissionDenied from getconfig() when appropriate.
* When available, make getconfig() include an invalid token
  in a ParseError message.

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

16 years agoFirst import the main portage module without legacy globals since it
Zac Medico [Tue, 11 Dec 2007 23:09:09 +0000 (23:09 -0000)]
First import the main portage module without legacy globals since it
is almost certain to succeed in that case. This provides access to
the portage.exception namespace which is needed for later exception
handling, like if portage.exception.PermissionDenied is raised when
constructing the legacy global config instance.

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

16 years ago* When installing a binary package, export the file name of the package
Zac Medico [Tue, 11 Dec 2007 06:36:48 +0000 (06:36 -0000)]
* When installing a binary package, export the file name of the package
  as PORTAGE_BINPKG_FILE in order to give bashrc users an opportunity
  to do various things such as remove binary packages after they're
  installed.

* Add a note in ebuild.sh explaining why hardcoded bash lists are
  needed for backward compatibility with <portage-2.1.4 since they
  assume that a newly installed version of ebuild.sh will work for
  pkg_postinst, pkg_prerm, and pkg_postrm when portage is upgrading
  itself.

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

16 years agoAdd a "Quality Assurance" <part> tag so that all chapters are
Zac Medico [Sun, 9 Dec 2007 05:58:32 +0000 (05:58 -0000)]
Add a "Quality Assurance" <part> tag so that all chapters are
consistently nested inside <part> tags.

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

16 years agoAdd some documentation for ebuild phases and pre/post phase
Zac Medico [Sun, 9 Dec 2007 05:50:48 +0000 (05:50 -0000)]
Add some documentation for ebuild phases and pre/post phase
hooks that can be defined via bashrc.

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

16 years agoDo an EBUILD_EXIT_STATUS_FILE sanity check in spawnebuild()
Zac Medico [Sat, 8 Dec 2007 22:56:35 +0000 (22:56 -0000)]
Do an EBUILD_EXIT_STATUS_FILE sanity check in spawnebuild()
where it spawns misc-functions.sh after the install phase.

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

16 years agoBug #189417 - Comment on how the whitelist and BASH_ENV are used to
Zac Medico [Fri, 7 Dec 2007 22:21:24 +0000 (22:21 -0000)]
Bug #189417 - Comment on how the whitelist and BASH_ENV are used to
prevent environment leakage.

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

16 years agoBug #189417 - Whitelist BASH_ENV since we need to have it set in order
Zac Medico [Fri, 7 Dec 2007 22:08:25 +0000 (22:08 -0000)]
Bug #189417 - Whitelist BASH_ENV since we need to have it set in order
to prevent sandbox from causing env leakage by sourcing /etc/profile
via it's bashrc.

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

16 years agoBug #189417 - Explicitly whitelist any remaining variables that are
Zac Medico [Fri, 7 Dec 2007 22:03:05 +0000 (22:03 -0000)]
Bug #189417 - Explicitly whitelist any remaining variables that are
allowed to leak into the ebuild environment. Also, fix spawnebuild
to properly filter the env when it spawns misc-functions.sh after
the install phase.  There is still some remaining leakage that seems
to come from something in the ebuild environment sourcing
/etc/profile.

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

16 years agoAdd a TODO note about remaining work for bug #189417.
Zac Medico [Fri, 7 Dec 2007 09:59:48 +0000 (09:59 -0000)]
Add a TODO note about remaining work for bug #189417.

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

16 years agoPerform set argument validation in emerge_main() even for
Zac Medico [Fri, 7 Dec 2007 05:42:19 +0000 (05:42 -0000)]
Perform set argument validation in emerge_main() even for
values actions that need to expland sets themselves.

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

16 years agoRemove automatic "system" and "world" set creation since we can
Zac Medico [Fri, 7 Dec 2007 05:33:52 +0000 (05:33 -0000)]
Remove automatic "system" and "world" set creation since we can
probably rely on having a complete config.

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

16 years agoBug #201513 - Fix typos for preserve-libs and PreservedLibraryConsumerSet.
Zac Medico [Fri, 7 Dec 2007 01:25:08 +0000 (01:25 -0000)]
Bug #201513 - Fix typos for preserve-libs and PreservedLibraryConsumerSet.
Thanks to Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for
this patch.

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

16 years agoDeclare retval as a local variable.
Zac Medico [Thu, 6 Dec 2007 23:37:27 +0000 (23:37 -0000)]
Declare retval as a local variable.

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

16 years agoPrevent the filter_opts local variable from leaking into the
Zac Medico [Thu, 6 Dec 2007 23:28:25 +0000 (23:28 -0000)]
Prevent the filter_opts local variable from leaking into the
environment in preprocess_ebuild_env().

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

16 years agoBug #201506 - Make preprocess_ebuild_env() preserve
Zac Medico [Thu, 6 Dec 2007 22:23:52 +0000 (22:23 -0000)]
Bug #201506 - Make preprocess_ebuild_env() preserve
SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases,
except when the environment comes directly from
environment.bz2.

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

16 years agoRemove redundant successful exit call from the "depend" phase
Zac Medico [Thu, 6 Dec 2007 21:55:31 +0000 (21:55 -0000)]
Remove redundant successful exit call from the "depend" phase
and let it run to the bottom of ebuild.sh just like the other
phases.

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

16 years agoFix broken timestamp logic in do_snapshot(). Thanks to Alon
Zac Medico [Thu, 6 Dec 2007 00:19:28 +0000 (00:19 -0000)]
Fix broken timestamp logic in do_snapshot(). Thanks to Alon
Bar-Lev <alonbl@gentoo.org> for this patch.

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

16 years agoKeep the RootConfig.sets attribute in sync with the SetConfig.
Zac Medico [Wed, 5 Dec 2007 08:54:00 +0000 (08:54 -0000)]
Keep the RootConfig.sets attribute in sync with the SetConfig.

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

16 years agoMake SetConfig.getSets() return a copy of the psets attribute
Zac Medico [Wed, 5 Dec 2007 08:46:03 +0000 (08:46 -0000)]
Make SetConfig.getSets() return a copy of the psets attribute
instead of a direct reference. Fix the to stop relying on
having the direct reference.

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

16 years ago- repository configuration file and `emerge --sync [repo_set]... [repo]...`
Zac Medico [Wed, 5 Dec 2007 04:42:09 +0000 (04:42 -0000)]
- repository configuration file and `emerge --sync [repo_set]... [repo]...`
  support for overlays and binhosts (zmedico)

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

16 years agoShow ? if the installed package is missing a
Zac Medico [Wed, 5 Dec 2007 03:42:30 +0000 (03:42 -0000)]
Show ? if the installed package is missing a
repository label. The stable version of portage
creates these labels now, so false positives
won't be as common as they used to be.

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

16 years agobootstrap.sh expects that the "system" set always exists, so create
Zac Medico [Wed, 5 Dec 2007 03:32:31 +0000 (03:32 -0000)]
bootstrap.sh expects that the "system" set always exists, so create
it automatically if necessary.

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

16 years agoIn order to know exactly which atoms/sets should be added to the
Zac Medico [Wed, 5 Dec 2007 00:52:24 +0000 (00:52 -0000)]
In order to know exactly which atoms/sets should be added to the
world file, the depgraph performs set expansion later. It will get
confused about where the atoms came from if it's not allowed to
expand them itself.

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

16 years agofix another typo
Marius Mauch [Tue, 4 Dec 2007 10:46:23 +0000 (10:46 -0000)]
fix another typo

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

16 years agoperform sanity checks for set configuration even if myaction is None
Marius Mauch [Tue, 4 Dec 2007 10:14:38 +0000 (10:14 -0000)]
perform sanity checks for set configuration even if myaction is None

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

16 years agoFix setconfig loader to use config files instead of hardcoded fallbacks
Marius Mauch [Tue, 4 Dec 2007 09:58:22 +0000 (09:58 -0000)]
Fix setconfig loader to use config files instead of hardcoded fallbacks

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

16 years agoenable FEATURES=preserve-libs globally for extended testing
Marius Mauch [Tue, 4 Dec 2007 09:29:06 +0000 (09:29 -0000)]
enable FEATURES=preserve-libs globally for extended testing

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

16 years agomake sure we only remove files that were previously preserved
Marius Mauch [Tue, 4 Dec 2007 09:28:00 +0000 (09:28 -0000)]
make sure we only remove files that were previously preserved

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

16 years agoRemove redundant config.load_infodir() calls from
Zac Medico [Mon, 3 Dec 2007 23:27:06 +0000 (23:27 -0000)]
Remove redundant config.load_infodir() calls from
portage.pkgmerge() and dblink.unmerge() since it's
already called in doebuild.()

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

16 years agoSynchronize the conditional that triggers "${T}"/environment
Zac Medico [Mon, 3 Dec 2007 23:06:12 +0000 (23:06 -0000)]
Synchronize the conditional that triggers "${T}"/environment
generation with the conditional that triggers distcc and
ccache FEATURES setup.

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

16 years agoFix typo in config.load_infodir() return value logic.
Zac Medico [Mon, 3 Dec 2007 21:49:44 +0000 (21:49 -0000)]
Fix typo in config.load_infodir() return value logic.

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

16 years ago* Don't load the CATEGORY in config.load_infodir() since this value is
Zac Medico [Mon, 3 Dec 2007 21:46:01 +0000 (21:46 -0000)]
* Don't load the CATEGORY in config.load_infodir() since this value is
  critical for doebuild() operation and we already know the category.
* Always call config.setcpv() prior to config.load_infodir() so that
  the CATEGORY is always known.

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

16 years agoBug #201090 - When portage creates a temp PORTAGE_BIN_PATH, put it
Zac Medico [Mon, 3 Dec 2007 20:53:29 +0000 (20:53 -0000)]
Bug #201090 - When portage creates a temp PORTAGE_BIN_PATH, put it
inside PORTAGE_TMPDIR since, unlike /tmp, it can't be mounted with
the "noexec" option.

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

16 years agoMake config.load_infodir() more fault tolerant for cases like bug
Zac Medico [Mon, 3 Dec 2007 19:58:16 +0000 (19:58 -0000)]
Make config.load_infodir() more fault tolerant for cases like bug
#201082.

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

16 years agoupdate TODO list
Marius Mauch [Mon, 3 Dec 2007 19:34:29 +0000 (19:34 -0000)]
update TODO list

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

16 years agorevert accidential commit
Marius Mauch [Mon, 3 Dec 2007 19:31:57 +0000 (19:31 -0000)]
revert accidential commit

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

16 years agoBug #201082 - Don't call config.load_infodir() prior to pkg_postinst()
Zac Medico [Mon, 3 Dec 2007 19:12:37 +0000 (19:12 -0000)]
Bug #201082 - Don't call config.load_infodir() prior to pkg_postinst()
because it's not needed and the ebuild path that's passed in for
postinst is may be from the portage tree, which causes load_infodir()
to discard critical metadata such as CATEGORY without realoading
it.

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

16 years agoimplement the final part of FEATURES=preserved-libs and remove previously preserved...
Marius Mauch [Mon, 3 Dec 2007 19:09:20 +0000 (19:09 -0000)]
implement the final part of FEATURES=preserved-libs and remove previously preserved libs that don't have any consumers left. Also fix the notice if preserved libs are found to use the preserved-rebuild package set instead of revdep-rebuild.

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

16 years ago* whitelist CCACHE_* and DISTCC_* variables in config.environ()
Zac Medico [Mon, 3 Dec 2007 06:19:43 +0000 (06:19 -0000)]
* whitelist CCACHE_* and DISTCC_* variables in config.environ()
* unset CCACHE_* and DISTCC_* variables in save_ebuild_env()

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

16 years agoFor compatibility with cvs.eclass, do not unset CVS_RSH in
Zac Medico [Sun, 2 Dec 2007 22:04:00 +0000 (22:04 -0000)]
For compatibility with cvs.eclass, do not unset CVS_RSH in
save_ebuild_env() since that variable may be initialized in
global scope.

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

16 years agoConvert caterror() to call warn() instead of err() since
Zac Medico [Sun, 2 Dec 2007 21:12:33 +0000 (21:12 -0000)]
Convert caterror() to call warn() instead of err() since
we don't want to exit here.

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

16 years agoAdd back missing err() function.
Zac Medico [Sun, 2 Dec 2007 21:07:30 +0000 (21:07 -0000)]
Add back missing err() function.

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

16 years agoFix useq() so that it won't generate a bogus IUSE QA Notice
Zac Medico [Sun, 2 Dec 2007 20:55:48 +0000 (20:55 -0000)]
Fix useq() so that it won't generate a bogus IUSE QA Notice
if called during the "depend" phase with a flag that uses
IUSE defaults.

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

16 years agoSynchronize self-reinstallation logic so that emerge will always
Zac Medico [Sun, 2 Dec 2007 09:10:56 +0000 (09:10 -0000)]
Synchronize self-reinstallation logic so that emerge will always
restart itself when dblink.merge() creates temporary copies of
PORTAGE_{BIN,PYM}_PATH.

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

16 years agoIn dblink.treewalk(), tweak the "Safely unmerging
Zac Medico [Sun, 2 Dec 2007 07:58:07 +0000 (07:58 -0000)]
In dblink.treewalk(), tweak the "Safely unmerging
already-installed instance" logic to make sure that
it works in all possible cases.

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

16 years agoFor portage.spawn() calls, use a _shell_quote() function to quote
Zac Medico [Sun, 2 Dec 2007 06:44:02 +0000 (06:44 -0000)]
For portage.spawn() calls, use a _shell_quote() function to quote
the path of the binary since.

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

16 years ago* whitelist some misc variables from the calling environment
Zac Medico [Sat, 1 Dec 2007 22:26:29 +0000 (22:26 -0000)]
* whitelist some misc variables from the calling environment
* blacklist the same variables in save_ebuild_env() so that
  the latest values from the calling environment always
  override those from the ebuild environment

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

16 years agoShow the pid in the "starting parallel fetching" message.
Zac Medico [Sat, 1 Dec 2007 21:39:39 +0000 (21:39 -0000)]
Show the pid in the "starting parallel fetching" message.

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

16 years agoWhen os.waitid() raises OSError, discard the pid since there's
Zac Medico [Sat, 1 Dec 2007 21:23:40 +0000 (21:23 -0000)]
When os.waitid() raises OSError, discard the pid since there's
no need to wait on it again.

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

16 years agoAfter each merge, collect status from child processes
Zac Medico [Sat, 1 Dec 2007 21:11:28 +0000 (21:11 -0000)]
After each merge, collect status from child processes
in order to clean up zombies (such as the parallel-fetch
process).

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

16 years agoMove duplicate module loading code into a function.
Zac Medico [Sat, 1 Dec 2007 12:45:37 +0000 (12:45 -0000)]
Move duplicate module loading code into a function.

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