portage.git
16 years agoBug #204753 - Add "distfiles" and "packages" to the list of
Zac Medico [Mon, 7 Jan 2008 22:19:15 +0000 (22:19 -0000)]
Bug #204753 - Add "distfiles" and "packages" to the list of
non-category directories. (trunk r9155)

svn path=/main/branches/2.1.2/; revision=9156

16 years agoBug #204651 - Make repoman respect NOCOLOR=true. (trunk r9151)
Zac Medico [Sun, 6 Jan 2008 20:25:17 +0000 (20:25 -0000)]
Bug #204651 - Make repoman respect NOCOLOR=true. (trunk r9151)

svn path=/main/branches/2.1.2/; revision=9152

16 years agoMake filter_readonly_variables() filter PATH in any case since
Zac Medico [Sat, 5 Jan 2008 22:01:57 +0000 (22:01 -0000)]
Make filter_readonly_variables() filter PATH in any case since
we never want to save of reload it. (trunk r9147)

svn path=/main/branches/2.1.2/; revision=9148

16 years agoFilter PATH along with FEATURES when loading environment.bz2.
Zac Medico [Sat, 5 Jan 2008 21:34:13 +0000 (21:34 -0000)]
Filter PATH along with FEATURES when loading environment.bz2.
(trunk r9145)

svn path=/main/branches/2.1.2/; revision=9146

16 years agoSend eerror and ewarn messages to stderr. This is important in
Zac Medico [Fri, 4 Jan 2008 20:49:29 +0000 (20:49 -0000)]
Send eerror and ewarn messages to stderr. This is important in
case somebody calls portageq inside a global scope command
substitution. The output needs to go to stderr so that the
die message from the subshell is visible. (trunk r9140)

svn path=/main/branches/2.1.2/; revision=9141

16 years agoRecognize export statements when filtering the environment. This
Zac Medico [Thu, 3 Jan 2008 15:39:30 +0000 (15:39 -0000)]
Recognize export statements when filtering the environment. This
is needed for compatibility with environment.bz2 files generated
by paludis. (trunk r9137)

svn path=/main/branches/2.1.2/; revision=9138

16 years agoBug #204020 - Make grabfile() properly raise PermissionDenied when
Zac Medico [Wed, 2 Jan 2008 15:02:23 +0000 (15:02 -0000)]
Bug #204020 - Make grabfile() properly raise PermissionDenied when
appropriate instead of silently ignoring permission errors.
(trunk r9135)

svn path=/main/branches/2.1.2/; revision=9136

16 years agoBug #203919 - Define missing base_url variable to fix NameError
Zac Medico [Mon, 31 Dec 2007 19:18:57 +0000 (19:18 -0000)]
Bug #203919 - Define missing base_url variable to fix NameError
when using PORTAGE_BINHOST.

svn path=/main/branches/2.1.2/; revision=9130

16 years agoWhen searching for "test" in IUSE, account for IUSE defaults.
Zac Medico [Mon, 31 Dec 2007 11:47:05 +0000 (11:47 -0000)]
When searching for "test" in IUSE, account for IUSE defaults.
(trunk r9128)

svn path=/main/branches/2.1.2/; revision=9129

16 years agoFix config.setcpv() to properly call config.regenerate() in cases
Zac Medico [Mon, 31 Dec 2007 09:54:35 +0000 (09:54 -0000)]
Fix config.setcpv() to properly call config.regenerate() in cases
when USE needs to be regenerated due to FEATURES=test to USE=test
mapping. (trunk r9126)

svn path=/main/branches/2.1.2/; revision=9127

16 years agoAs suggested by grobian, treat Darwin just like USERLAND=gnu
Zac Medico [Sat, 29 Dec 2007 20:17:10 +0000 (20:17 -0000)]
As suggested by grobian, treat Darwin just like USERLAND=gnu
since they seem to be switching commands to gnu anyway.
(trunk r9118)

svn path=/main/branches/2.1.2/; revision=9119

16 years agoAdd PKGDIR to the config.environ() whitelist so that people's
Zac Medico [Sat, 29 Dec 2007 18:21:50 +0000 (18:21 -0000)]
Add PKGDIR to the config.environ() whitelist so that people's
bashrc's don't break. (trunk r9114)

svn path=/main/branches/2.1.2/; revision=9115

16 years agoMake the ecompressdir vecho output show a leading / on
Zac Medico [Sat, 29 Dec 2007 17:58:18 +0000 (17:58 -0000)]
Make the ecompressdir vecho output show a leading / on
the directory path. Thanks to armin76.
(trunk r9110:9112)

svn path=/main/branches/2.1.2/; revision=9113

16 years agoDocument that docinto works for dohtml. (trunk r9109)
Zac Medico [Sat, 29 Dec 2007 16:47:39 +0000 (16:47 -0000)]
Document that docinto works for dohtml. (trunk r9109)

svn path=/main/branches/2.1.2/; revision=9110

16 years agoRely on USERLAND since it's automatically generated by
Zac Medico [Sat, 29 Dec 2007 13:56:57 +0000 (13:56 -0000)]
Rely on USERLAND since it's automatically generated by
isolated-functions.sh when necessary. (trunk r9107)

svn path=/main/branches/2.1.2/; revision=9108

16 years agoMake the global counter file correspond to
Zac Medico [Sat, 29 Dec 2007 13:33:43 +0000 (13:33 -0000)]
Make the global counter file correspond to
the total number of installation actions
that have occurred in the history of this
package database. (trunk r9105)

svn path=/main/branches/2.1.2/; revision=9106

16 years agoRemove redundant USERLAND sanity check code from doebuild() since
Zac Medico [Sat, 29 Dec 2007 12:38:13 +0000 (12:38 -0000)]
Remove redundant USERLAND sanity check code from doebuild() since
it's handled in isolated-functions.sh now. (trunk r9103)

svn path=/main/branches/2.1.2/; revision=9104

16 years ago* Remove redundant lchown() compatibility code since the
Zac Medico [Sat, 29 Dec 2007 12:17:02 +0000 (12:17 -0000)]
* Remove redundant lchown() compatibility code since the
  getattr(os, "lchown", None) call already handles it.

* Simplify the userland detection code in portage.data and add
  a bash version of it to isolated-functions.sh.

(trunk r9098:9101)

svn path=/main/branches/2.1.2/; revision=9102

16 years agoMove XARGS initialization from portage.data to isolated-functions.sh.
Zac Medico [Sat, 29 Dec 2007 11:38:48 +0000 (11:38 -0000)]
Move XARGS initialization from portage.data to isolated-functions.sh.
(trunk r9095:9097)

svn path=/main/branches/2.1.2/; revision=9098

16 years agoAdd support for showing binary package file sizes in emerge
Zac Medico [Sat, 29 Dec 2007 10:42:53 +0000 (10:42 -0000)]
Add support for showing binary package file sizes in emerge
--search output. (trunk r9094)

svn path=/main/branches/2.1.2/; revision=9095

16 years ago* Initialize dbapi._categories = None so that we can compare
Zac Medico [Sat, 29 Dec 2007 10:09:00 +0000 (10:09 -0000)]
* Initialize dbapi._categories = None so that we can compare
  with None instead of using hasattr.
* Remove unwanted self._categories initialization from the
  portdbapi constructor.
(trunk r9092)

svn path=/main/branches/2.1.2/; revision=9093

16 years agoMove the USERLAND and XARGS sanity checks from the portage_data
Zac Medico [Sat, 29 Dec 2007 09:30:04 +0000 (09:30 -0000)]
Move the USERLAND and XARGS sanity checks from the portage_data
mule to doebuild().

svn path=/main/branches/2.1.2/; revision=9091

16 years agoBug #121584 - Make the automatic USERLAND detection code recognize
Zac Medico [Sat, 29 Dec 2007 08:43:02 +0000 (08:43 -0000)]
Bug #121584 - Make the automatic USERLAND detection code recognize
GNU/kFreeBSD. (trunk r9087)

svn path=/main/branches/2.1.2/; revision=9088

16 years agoBug #202697 - Add / to the default initial SANDBOX_READ in order to
Zac Medico [Fri, 28 Dec 2007 23:15:55 +0000 (23:15 -0000)]
Bug #202697 - Add / to the default initial SANDBOX_READ in order to
avoid a situation where attempts to read arbitrary files trigger
sandbox violations. (trunk r9085)

svn path=/main/branches/2.1.2/; revision=9086

16 years agoMake the FEATURES=sfperms loops safe for whitespace in paths
Zac Medico [Fri, 28 Dec 2007 21:11:20 +0000 (21:11 -0000)]
Make the FEATURES=sfperms loops safe for whitespace in paths
by using find -print0 | while read -d $'\0'. (trunk r9083)

svn path=/main/branches/2.1.2/; revision=9084

16 years agoMake dep_expand() and key_expand() stop relying
Zac Medico [Fri, 28 Dec 2007 18:37:26 +0000 (18:37 -0000)]
Make dep_expand() and key_expand() stop relying
on having a categories list:
* Create and use a dbapi.categories property that is
  automatically generated from dbapi.cp_all().
* Make mutable dbapi instances delete the invalidate the
  cached categories when they need to be regenerated.
(trunk r9079:9081)

svn path=/main/branches/2.1.2/; revision=9082

16 years agoJust ignore it when the global counter file does not match
Zac Medico [Fri, 28 Dec 2007 18:14:00 +0000 (18:14 -0000)]
Just ignore it when the global counter file does not match
the highest installed COUNTER since it's normal for them to
differ in some cases. For example, the global counter file
will contain a higher value if the user merges a package and
then immediately unmerges it (unmerge does not update the
global counter file, but merge does). (trunk r9078)

svn path=/main/branches/2.1.2/; revision=9079

16 years agoIn action_regen(), use writemsg() to send error messages to
Zac Medico [Fri, 28 Dec 2007 16:46:15 +0000 (16:46 -0000)]
In action_regen(), use writemsg() to send error messages to
stderr. (trunk r9066)

svn path=/main/branches/2.1.2/; revision=9077

16 years agoFixes for logic related to FEATURES=test to USE=test mapping:
Zac Medico [Fri, 28 Dec 2007 16:42:14 +0000 (16:42 -0000)]
Fixes for logic related to FEATURES=test to USE=test mapping:
* Add EBUILD_FORCE_TEST to the environment whitelist and filter
  it from the saved environment in save_ebuild_env().
* Tweak logic inside the ebuild command and config.regenerate()
  so that EBUILD_FORCE_TEST works even in odd cases like when
  USE=test is masked.
* Only make FEATURES=test map to USE=test when "test" is
  actually in IUSE.
* Remove USE=test from the set of implicit IUSE so that useq()
  calls in ebuild.sh properly generate a QA Notice when "test"
  is missing from IUSE.
(trunk r9063:9065)

svn path=/main/branches/2.1.2/; revision=9076

16 years agoBug #203323 - Fix the FEATURES=sfperms code so that it doesn't chmod
Zac Medico [Fri, 28 Dec 2007 16:11:54 +0000 (16:11 -0000)]
Bug #203323 - Fix the FEATURES=sfperms code so that it doesn't chmod
g-r on binaries that are both setuid and setgid. In that case, just
chmod o-r. (trunk r9061)

svn path=/main/branches/2.1.2/; revision=9075

16 years agoMinor code readablity enhancements:
Zac Medico [Fri, 28 Dec 2007 16:09:36 +0000 (16:09 -0000)]
Minor code readablity enhancements:
* Use relative_path and full_path variables for files being checked
  instead of spreading code like x+"/files/"+y all over the place.
* Use stat.S_IMODE with octal 0111 instead of hex 0x0248 in the
  file.executable checks.
(trunk r9060)

svn path=/main/branches/2.1.2/; revision=9074

16 years agoBug #201498 - Use desktop-file-validate to validate *.desktop
Zac Medico [Fri, 28 Dec 2007 16:07:40 +0000 (16:07 -0000)]
Bug #201498 - Use desktop-file-validate to validate *.desktop
files inside ${FILESDIR} and generate a "desktop.invalid"
qa warning if an error is detected. Thanks to Betelgeuse for
the initial patch. (trunk r9059)

svn path=/main/branches/2.1.2/; revision=9073

16 years agoFix broken handling of the tuple that's returned from
Zac Medico [Fri, 28 Dec 2007 16:02:05 +0000 (16:02 -0000)]
Fix broken handling of the tuple that's returned from
verify_all(). Thanks to Betelgeuse. (trunk r9056)

svn path=/main/branches/2.1.2/; revision=9072

16 years agoIn getconfig(), pass the infile attribute into the shlex
Zac Medico [Fri, 28 Dec 2007 16:00:16 +0000 (16:00 -0000)]
In getconfig(), pass the infile attribute into the shlex
constructor so that shlex.sourcehook() properly joins
relative paths. (trunk r9054)

svn path=/main/branches/2.1.2/; revision=9071

16 years agoFix "Initializing counter" message to show the correct value.
Zac Medico [Fri, 28 Dec 2007 15:58:54 +0000 (15:58 -0000)]
Fix "Initializing counter" message to show the correct value.
(trunk r9053)

svn path=/main/branches/2.1.2/; revision=9070

16 years agoBug #203090 - Do not trust the global counter
Zac Medico [Fri, 28 Dec 2007 15:57:52 +0000 (15:57 -0000)]
Bug #203090 - Do not trust the global counter
file that can lead to invalid COUNTER generation.
(trunk r9052)

svn path=/main/branches/2.1.2/; revision=9069

16 years agoBug #203239 - With FEATURES=noauto, always source ${EBUILD}.
Zac Medico [Fri, 28 Dec 2007 15:47:26 +0000 (15:47 -0000)]
Bug #203239 - With FEATURES=noauto, always source ${EBUILD}.
This will load the ${T}/environment file if available and then
source ${EBUILD} to overwrite any functions that have changed.
(trunk r9051 and r9062)

svn path=/main/branches/2.1.2/; revision=9068

16 years ago- small UI cleanups. *should* not cause problems with lack
Zac Medico [Fri, 28 Dec 2007 15:42:28 +0000 (15:42 -0000)]
- small UI cleanups. *should* not cause problems with lack
of missing newlines. (trunk r9050)

svn path=/main/branches/2.1.2/; revision=9067

16 years agoAdd support for --usepkg and --usepkgonly options together with
Zac Medico [Fri, 21 Dec 2007 12:55:25 +0000 (12:55 -0000)]
Add support for --usepkg and --usepkgonly options together with
emerge --search. (trunk r9038)

svn path=/main/branches/2.1.2/; revision=9039

16 years agoImplement a `portageq contents <root> <category/package>` command
Zac Medico [Fri, 21 Dec 2007 11:53:43 +0000 (11:53 -0000)]
Implement a `portageq contents <root> <category/package>` command
that lists all the files that are installed for a given package,
with one file listed on each line. (trunk r9035)

svn path=/main/branches/2.1.2/; revision=9037

16 years agoEnhance the portageq match command to list all installed packages
Zac Medico [Fri, 21 Dec 2007 11:51:27 +0000 (11:51 -0000)]
Enhance the portageq match command to list all installed packages
when given an empty string. (trunk r9032:9034)

svn path=/main/branches/2.1.2/; revision=9036

16 years agoMake vardbapi cache DESCRIPTION and HOMEPAGE in order to optimize
Zac Medico [Fri, 21 Dec 2007 10:32:40 +0000 (10:32 -0000)]
Make vardbapi cache DESCRIPTION and HOMEPAGE in order to optimize
emerge --searchdesc. (trunk r9031)

svn path=/main/branches/2.1.2/; revision=9032

16 years agoemerge --search enhancements:
Zac Medico [Fri, 21 Dec 2007 10:26:34 +0000 (10:26 -0000)]
emerge --search enhancements:

* support for searching installed packages
* visibility filtering for both installed and binary packages
(trunk r9026:9029)

svn path=/main/branches/2.1.2/; revision=9030

16 years agoMake the "test" flag that's enabled by FEATURES=test into
Zac Medico [Fri, 21 Dec 2007 05:22:13 +0000 (05:22 -0000)]
Make the "test" flag that's enabled by FEATURES=test into
an implicit iuse member. (trunk r9025)

svn path=/main/branches/2.1.2/; revision=9026

16 years agoEliminate redundant "notadded" error filtering. (trunk r9023)
Zac Medico [Fri, 21 Dec 2007 03:29:58 +0000 (03:29 -0000)]
Eliminate redundant "notadded" error filtering. (trunk r9023)

svn path=/main/branches/2.1.2/; revision=9024

16 years agoTweak profile validation and warning logic a bit. (trunk r9015)
Zac Medico [Fri, 21 Dec 2007 02:51:14 +0000 (02:51 -0000)]
Tweak profile validation and warning logic a bit. (trunk r9015)

svn path=/main/branches/2.1.2/; revision=9022

16 years agoFix xmatch "match-all" typo. (trunk r9020)
Zac Medico [Fri, 21 Dec 2007 02:47:47 +0000 (02:47 -0000)]
Fix xmatch "match-all" typo. (trunk r9020)

svn path=/main/branches/2.1.2/; revision=9021

16 years agoIn portage.process.spawn(), make the default fd_pipes value get
Zac Medico [Fri, 21 Dec 2007 02:21:07 +0000 (02:21 -0000)]
In portage.process.spawn(), make the default fd_pipes value get
file descriptors from sys.std{in,out,err} so that they can be
overridden. (trunk r9018)

svn path=/main/branches/2.1.2/; revision=9019

16 years agoIn portage.spawn(), make the default fd_pipes value get file
Zac Medico [Fri, 21 Dec 2007 02:15:57 +0000 (02:15 -0000)]
In portage.spawn(), make the default fd_pipes value get file
descriptors from sys.std{in,out,err} so that they can be
overridden. (trunk r9016)

svn path=/main/branches/2.1.2/; revision=9017

16 years agoUse regex category validation in binarytree.populate().
Zac Medico [Fri, 21 Dec 2007 01:28:17 +0000 (01:28 -0000)]
Use regex category validation in binarytree.populate().
(trunk r9011:9013)

svn path=/main/branches/2.1.2/; revision=9014

16 years agoUse a regex to validate package directory names in portdbapi.cp_list()
Zac Medico [Fri, 21 Dec 2007 01:19:11 +0000 (01:19 -0000)]
Use a regex to validate package directory names in portdbapi.cp_list()
and also simplify the catagory regex a bit. (trunk r9010)

svn path=/main/branches/2.1.2/; revision=9011

16 years agoAdd "metadata" and "licenses" to _non_category_dirs. (trunk r9008)
Zac Medico [Fri, 21 Dec 2007 00:59:38 +0000 (00:59 -0000)]
Add "metadata" and "licenses" to _non_category_dirs. (trunk r9008)

svn path=/main/branches/2.1.2/; revision=9009

16 years agoSlightly improved the masked package check inside dep_zapdeps().
Zac Medico [Fri, 21 Dec 2007 00:48:56 +0000 (00:48 -0000)]
Slightly improved the masked package check inside dep_zapdeps().
(trunk r9006)

svn path=/main/branches/2.1.2/; revision=9007

16 years agoHardcode #!/bin/bash for consistency with other scripts. (trunk r9002)
Zac Medico [Thu, 20 Dec 2007 23:53:57 +0000 (23:53 -0000)]
Hardcode #!/bin/bash for consistency with other scripts. (trunk r9002)

svn path=/main/branches/2.1.2/; revision=9003

16 years agoRemove an accidental redundant loop from portdbapi.cp_all().
Zac Medico [Thu, 20 Dec 2007 17:13:10 +0000 (17:13 -0000)]
Remove an accidental redundant loop from portdbapi.cp_all().

svn path=/main/branches/2.1.2/; revision=8999

16 years agoFix a typo in the _non_category_dirs regex. (trunk r8997)
Zac Medico [Thu, 20 Dec 2007 17:02:19 +0000 (17:02 -0000)]
Fix a typo in the _non_category_dirs regex. (trunk r8997)

svn path=/main/branches/2.1.2/; revision=8998

16 years agoRemove some redunant categories code.
Zac Medico [Thu, 20 Dec 2007 16:26:25 +0000 (16:26 -0000)]
Remove some redunant categories code.

svn path=/main/branches/2.1.2/; revision=8996

16 years agoFix broken indentation in portdbapi.cp_all().
Zac Medico [Thu, 20 Dec 2007 15:33:30 +0000 (15:33 -0000)]
Fix broken indentation in portdbapi.cp_all().

svn path=/main/branches/2.1.2/; revision=8995

16 years agoFor simplicity and consistency, always use a regular expression
Zac Medico [Thu, 20 Dec 2007 14:29:17 +0000 (14:29 -0000)]
For simplicity and consistency, always use a regular expression
for category validation instead of using a list.
(trunk r8991:8993)

svn path=/main/branches/2.1.2/; revision=8994

16 years agoFix portdbapi.cp_list() so that it can cope with a
Zac Medico [Thu, 20 Dec 2007 13:34:48 +0000 (13:34 -0000)]
Fix portdbapi.cp_list() so that it can cope with a
missing profile. (trunk r8990)

svn path=/main/branches/2.1.2/; revision=8991

16 years agoMake dep_zapdeps() fall back to installed packages in it's
Zac Medico [Thu, 20 Dec 2007 13:08:23 +0000 (13:08 -0000)]
Make dep_zapdeps() fall back to installed packages in it's
availability test in cases where the package does not
appear to be masked. This solves dep selection preference
issues when working without a portage tree. (trunk r8988)

svn path=/main/branches/2.1.2/; revision=8989

16 years agoMerge missing db keys from trunk, for bug #149816.
Zac Medico [Thu, 20 Dec 2007 12:11:47 +0000 (12:11 -0000)]
Merge missing db keys from trunk, for bug #149816.

svn path=/main/branches/2.1.2/; revision=8987

16 years agoMerge the unified package masking output from trunk for bug #149816.
Zac Medico [Thu, 20 Dec 2007 11:58:49 +0000 (11:58 -0000)]
Merge the unified package masking output from trunk for bug #149816.

svn path=/main/branches/2.1.2/; revision=8986

16 years agoBug #149816 - Implement visibility filtering for binary packages.
Zac Medico [Thu, 20 Dec 2007 11:17:41 +0000 (11:17 -0000)]
Bug #149816 - Implement visibility filtering for binary packages.
This is only the least invasive part of the implementation that is
currently in trunk.

svn path=/main/branches/2.1.2/; revision=8984

16 years agoMake vartree.cpv_all() stop relying on having a categories
Zac Medico [Thu, 20 Dec 2007 10:54:52 +0000 (10:54 -0000)]
Make vartree.cpv_all() stop relying on having a categories
list since it may not be available if there is no portage
tree. (trunk r8982)

svn path=/main/branches/2.1.2/; revision=8983

16 years agoEnable emerge search actions for binary packages when there is
Zac Medico [Thu, 20 Dec 2007 09:06:08 +0000 (09:06 -0000)]
Enable emerge search actions for binary packages when there is
no portage tree available. (trunk r8980)

svn path=/main/branches/2.1.2/; revision=8981

16 years agoFix a typo: eclasses -> eclass. (trunk r8978)
Zac Medico [Thu, 20 Dec 2007 08:19:01 +0000 (08:19 -0000)]
Fix a typo: eclasses -> eclass. (trunk r8978)

svn path=/main/branches/2.1.2/; revision=8979

16 years agoMake some adjustments so that it's possible to install binary
Zac Medico [Thu, 20 Dec 2007 06:10:42 +0000 (06:10 -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.

* Convert messages about missing portage tree to debug level
  warnings since quite often it's possible to function without
  a portage tree now.

* Make binarytree.populate() stop relying on having a categories
  list since it may not be available if there is no portage tree.

(trunk r8972:8976)

svn path=/main/branches/2.1.2/; revision=8977

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

svn path=/main/branches/2.1.2/; revision=8972

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

svn path=/main/branches/2.1.2/; revision=8970

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

svn path=/main/branches/2.1.2/; revision=8968

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

svn path=/main/branches/2.1.2/; revision=8966

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

svn path=/main/branches/2.1.2/; revision=8964

16 years agoTrigger a config.regenerate() call inside setcpv() when the
Zac Medico [Wed, 19 Dec 2007 02:55:39 +0000 (02:55 -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. (trunk r8961)

svn path=/main/branches/2.1.2/; revision=8962

16 years agoStore filtered USE for config.environ() calls in a special
Zac Medico [Tue, 18 Dec 2007 14:49:00 +0000 (14:49 -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. (trunk r8959)

svn path=/main/branches/2.1.2/; revision=8960

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

svn path=/main/branches/2.1.2/; revision=8958

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

svn path=/main/branches/2.1.2/; revision=8956

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

svn path=/main/branches/2.1.2/; revision=8954

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

svn path=/main/branches/2.1.2/; revision=8952

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

svn path=/main/branches/2.1.2/; revision=8950

16 years agoCreate a PORTAGE_IUSE variable containing an egrep pattern
Zac Medico [Tue, 18 Dec 2007 06:57:53 +0000 (06:57 -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. (trunk r8945)

svn path=/main/branches/2.1.2/; revision=8948

16 years agoBug #176467 - Filter out USE flags that aren't part of IUSE.
Zac Medico [Tue, 18 Dec 2007 06:49:32 +0000 (06:49 -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

(trunk r8944)

svn path=/main/branches/2.1.2/; revision=8947

16 years agoGeneralize the sed -> gsed wrapper script so that it's
Zac Medico [Tue, 18 Dec 2007 06:46:24 +0000 (06:46 -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.
(trunk r8941:8943)

svn path=/main/branches/2.1.2/; revision=8946

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

svn path=/main/branches/2.1.2/; revision=8936

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

svn path=/main/branches/2.1.2/; revision=8933

16 years agoSplit out a format_qa_output() function to eliminate duplicate code.
Zac Medico [Sat, 15 Dec 2007 07:53:40 +0000 (07:53 -0000)]
Split out a format_qa_output() function to eliminate duplicate code.
(trunk r8927 and r8930)

svn path=/main/branches/2.1.2/; revision=8931

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

svn path=/main/branches/2.1.2/; revision=8929

16 years agoSave QA output so that it can be conveniently displayed
Zac Medico [Sat, 15 Dec 2007 00:32:56 +0000 (00:32 -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.

(trunk r8925)

svn path=/main/branches/2.1.2/; revision=8926

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

svn path=/main/branches/2.1.2/; revision=8924

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

* Add support for getting a commit message using an editor defined
  by the EDITOR environment variable.

(trunk r8919:8921)

svn path=/main/branches/2.1.2/; revision=8922

16 years agoFix the bug #198398 code from trunk to be compatible with the code
Zac Medico [Thu, 13 Dec 2007 21:53:48 +0000 (21:53 -0000)]
Fix the bug #198398 code from trunk to be compatible with the code
in this branch.

svn path=/main/branches/2.1.2/; revision=8919

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

svn path=/main/branches/2.1.2/; revision=8918

16 years agoDisable the "QA Notice: Pre-stripped files" message when RESTRICT
Zac Medico [Thu, 13 Dec 2007 20:54:57 +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.
(trunk r8915)

svn path=/main/branches/2.1.2/; revision=8916

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

svn path=/main/branches/2.1.2/; revision=8914

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

svn path=/main/branches/2.1.2/; revision=8912

16 years agoAllow FEATURES to persist between phases since the user might
Zac Medico [Thu, 13 Dec 2007 10:34:36 +0000 (10:34 -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. (trunk r8909)

svn path=/main/branches/2.1.2/; revision=8910

16 years agoProperly filter SANDBOX_ON from the environment. When sourcing
Zac Medico [Thu, 13 Dec 2007 08:36:14 +0000 (08:36 -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.
(trunk r8905:8907)

svn path=/main/branches/2.1.2/; revision=8908

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

svn path=/main/branches/2.1.2/; revision=8905

16 years agoBug #201771 - Make unpack() detect common errors such as absolute
Zac Medico [Thu, 13 Dec 2007 06:33:16 +0000 (06:33 -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. (trunk r8896)

svn path=/main/branches/2.1.2/; revision=8903

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

svn path=/main/branches/2.1.2/; revision=8902