portage.git
16 years agoBug #210372 - Fix FEATURES=suidctl so that it really works again.
Zac Medico [Mon, 3 Mar 2008 19:24:05 +0000 (19:24 -0000)]
Bug #210372 - Fix FEATURES=suidctl so that it really works again.
(trunk r9423)

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

16 years agoBug #211949 - Tweak the regex so that a leading whitespace character
Zac Medico [Mon, 3 Mar 2008 10:25:40 +0000 (10:25 -0000)]
Bug #211949 - Tweak the regex so that a leading whitespace character
cannot match the required non-alphanumeric group. (trunk r9421)

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

16 years agoFix the regex for bug #211949 so that it correctly matches variable
Zac Medico [Mon, 3 Mar 2008 10:17:04 +0000 (10:17 -0000)]
Fix the regex for bug #211949 so that it correctly matches variable
names that contain more than one non-alphanumeric character. (trunk r9419)

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

16 years agoBug #211949 - As suggested by vapier, tighten the variable filter to also
Zac Medico [Sun, 2 Mar 2008 23:28:12 +0000 (23:28 -0000)]
Bug #211949 - As suggested by vapier, tighten the variable filter to also
exclude variable names that begin with a digit or that contain any
non-alphanumeric characters that are not be supported by bash. (trunk r9416)

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

16 years agoBug #211949 - Make filter_readonly_variables() remove any variables
Zac Medico [Sat, 1 Mar 2008 08:31:39 +0000 (08:31 -0000)]
Bug #211949 - Make filter_readonly_variables() remove any variables
with names containing a hyphen since bash does not allow them.
(trunk r9402)

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

16 years agoMake 'import portage' statements more tolerant to broken source statements
Zac Medico [Sat, 1 Mar 2008 00:10:37 +0000 (00:10 -0000)]
Make 'import portage' statements more tolerant to broken source statements
in make.conf since exceptions thrown during 'import portage' statements
can practically render the api unusable for api consumers. Thanks to lxnay
for the suggestion. (trunk r9400)

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

16 years agoBug #211294 - Make repoman ignore profiles labeled with anything other
Zac Medico [Wed, 27 Feb 2008 16:02:34 +0000 (16:02 -0000)]
Bug #211294 - Make repoman ignore profiles labeled with anything other
than "stable" or "dev" in profiles.desc so that we can extend it with
new labels such as "exp". (trunk r9389)

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

16 years agoBug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the
Zac Medico [Mon, 25 Feb 2008 23:57:54 +0000 (23:57 -0000)]
Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the
dblink constructor since otherwise weird categories containing numbers
can make pkgsplit() return None (likely related to version regex handling).

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

16 years agoBug #211067 - Make the "portdir_overlay" and "mydir" variables contain
Zac Medico [Fri, 22 Feb 2008 06:48:03 +0000 (06:48 -0000)]
Bug #211067 - Make the "portdir_overlay" and "mydir" variables contain
paths that are consistent wrt eachother regardless of any path
irregularities that can be induced by symlinks. Consistency is achieved
by regenerating one of the paths to ensure that both paths have the exact
same mapping between inodes and paths. This consistency ensures that the
path manipulations used to calculate "repolevel" will work as intended.
(trunk r9365)

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

16 years agoBug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.
Zac Medico [Tue, 19 Feb 2008 05:39:40 +0000 (05:39 -0000)]
Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.
(trunk r9355)

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

16 years agoBug #209768 - Fix --search "Size of files:" handling so that it properly v2.1.4.4
Zac Medico [Tue, 12 Feb 2008 04:15:51 +0000 (04:15 -0000)]
Bug #209768 - Fix --search "Size of files:" handling so that it properly
shows the "Unknown (missing digest)" message instead of a traceback.
(trunk r9333)

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

16 years agoBug #209538 - Disable annoying "masked by keyword" warnings for installed
Zac Medico [Sun, 10 Feb 2008 23:39:16 +0000 (23:39 -0000)]
Bug #209538 - Disable annoying "masked by keyword" warnings for installed
packages. We can assume that if the user accepted the keywords at merge
time then they never want to be bothered again. (trunk r9330)

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

16 years agoFix CHOST masking logic wrt installed packages so that it's consistent
Zac Medico [Sun, 10 Feb 2008 03:16:42 +0000 (03:16 -0000)]
Fix CHOST masking logic wrt installed packages so that it's consistent
between visible() and get_masking_status(). (trunk r9324)

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

16 years agoPass the myparent parameter into _show_unsatisfied_dep() when
Zac Medico [Sun, 10 Feb 2008 02:57:18 +0000 (02:57 -0000)]
Pass the myparent parameter into _show_unsatisfied_dep() when
available.

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

16 years agoFix the exitcode logic for bug #209144 so that when the server is
Zac Medico [Sun, 10 Feb 2008 01:53:56 +0000 (01:53 -0000)]
Fix the exitcode logic for bug #209144 so that when the server is
out of date it's not interpreted like an actual rsync exitcode
(to avoid a misleading exitcode interpretation message). (trunk r9320)

Bug #209144 - For emerge --sync, show an informative error and don't
return 1 when PORTAGE_RSYNC_RETRIES is exceeded. (trunk r9321)

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

16 years agoFix get_mask_info() to properly pass the "installed" attribute into
Zac Medico [Sun, 10 Feb 2008 00:39:38 +0000 (00:39 -0000)]
Fix get_mask_info() to properly pass the "installed" attribute into
the Package constructor. (trunk r9318)

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

16 years agoBug #208743 - Update dosed docs to indicate that "s:${D}::g" is used
Zac Medico [Sat, 9 Feb 2008 22:18:52 +0000 (22:18 -0000)]
Bug #208743 - Update dosed docs to indicate that "s:${D}::g" is used
as the default expression if none other is given. (trunk r9313)

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

16 years agoFix a changed variable name.
Zac Medico [Sat, 9 Feb 2008 09:45:26 +0000 (09:45 -0000)]
Fix a changed variable name.

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

16 years agoFor the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead
Zac Medico [Sat, 9 Feb 2008 09:19:44 +0000 (09:19 -0000)]
For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead
of egrep since apparently it's compatible in this case. Thanks to
igli for this. (trunk r9279)

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

16 years agoMake qa_source and qa_call save the return value and return it. Thanks
Zac Medico [Sat, 9 Feb 2008 09:18:52 +0000 (09:18 -0000)]
Make qa_source and qa_call save the return value and return it. Thanks
to igli for suggesting. (trunk r9278)

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

16 years agoUse local time for elog summaries (trunk r9273)
Zac Medico [Sat, 9 Feb 2008 09:15:38 +0000 (09:15 -0000)]
Use local time for elog summaries (trunk r9273)

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

16 years agoBug #208708 - Show informative warning messages for installed
Zac Medico [Sat, 9 Feb 2008 06:26:39 +0000 (06:26 -0000)]
Bug #208708 - Show informative warning messages for installed
packages that are masked. (trunk r9301)

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

16 years agoFix some broken variable references found by pyflakes.
Zac Medico [Fri, 8 Feb 2008 11:43:56 +0000 (11:43 -0000)]
Fix some broken variable references found by pyflakes.

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

16 years agoFix old broken binary package visibility filtering code inside
Zac Medico [Fri, 8 Feb 2008 11:15:30 +0000 (11:15 -0000)]
Fix old broken binary package visibility filtering code inside
depgraph.select_files() and xcreate().

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

16 years agoBug #208708 - Fix masked package display some more:
Zac Medico [Fri, 8 Feb 2008 10:19:19 +0000 (10:19 -0000)]
Bug #208708 - Fix masked package display some more:

- Warn if all matching ebuilds are masked or the installed
package itself is masked.

- Do not warn if there are simply no matching ebuilds since
that would be annoying in some cases.

(trunk r9293)

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

16 years agoFix depgraph.select_files() so that arguments are expanded
Zac Medico [Fri, 8 Feb 2008 10:04:59 +0000 (10:04 -0000)]
Fix depgraph.select_files() so that arguments are expanded
against the vardb when expansion against the binary repo
fails in --usepkgonly mode.

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

16 years agoDon't show unmasked packages (currently installed packages) in
Zac Medico [Fri, 8 Feb 2008 08:48:51 +0000 (08:48 -0000)]
Don't show unmasked packages (currently installed packages) in
the masking display. (trunk r9292)

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

16 years agoAdd DISTDIR to the EbuildQuote.var_names. Thanks to Betelgeuse. (trunk r9290)
Zac Medico [Fri, 8 Feb 2008 04:42:48 +0000 (04:42 -0000)]
Add DISTDIR to the EbuildQuote.var_names. Thanks to Betelgeuse. (trunk r9290)

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

16 years agoBug #208743 - Clarify dosed docs to indicate that sed is performed
Zac Medico [Fri, 8 Feb 2008 00:33:33 +0000 (00:33 -0000)]
Bug #208743 - Clarify dosed docs to indicate that sed is performed
in place of a file in ${D}. (trunk r9287)

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

16 years agoBug #208782 - Consistently use double quotes rather than mixining in single
Zac Medico [Fri, 8 Feb 2008 00:20:50 +0000 (00:20 -0000)]
Bug #208782 - Consistently use double quotes rather than mixining in single
quotes. (trunk r9285)

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

16 years agoBug #209144 - For emerge --sync, don't return 0 when the server
Zac Medico [Fri, 8 Feb 2008 00:14:04 +0000 (00:14 -0000)]
Bug #209144 - For emerge --sync, don't return 0 when the server
is out of date. (trunk r9283)

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

16 years agoBug #155993 - Update environment.bz2 after postinst in case
Zac Medico [Thu, 7 Feb 2008 23:40:30 +0000 (23:40 -0000)]
Bug #155993 - Update environment.bz2 after postinst in case
installation phases need to pass some variables to
uninstallation phases. (trunk r9281)

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

16 years agoportage-2.1.4.1 (trunk r9264) v2.1.4.1
Zac Medico [Fri, 1 Feb 2008 04:38:29 +0000 (04:38 -0000)]
portage-2.1.4.1 (trunk r9264)

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

16 years agoRemove the manifest1 digest file removal code since it's no longer
Zac Medico [Fri, 1 Feb 2008 03:14:41 +0000 (03:14 -0000)]
Remove the manifest1 digest file removal code since it's no longer
needed. (trunk r9262)

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

16 years agoRemove the manifest1 digest filter from PORTAGE_RSYNC_OPTS since it's
Zac Medico [Fri, 1 Feb 2008 02:55:55 +0000 (02:55 -0000)]
Remove the manifest1 digest filter from PORTAGE_RSYNC_OPTS since it's
no longer needed. (trunk r9260)

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

16 years agoMake the manifest1_compat constructor parameter default to False
Zac Medico [Fri, 1 Feb 2008 00:06:38 +0000 (00:06 -0000)]
Make the manifest1_compat constructor parameter default to False
to prevent potential interference from stale old digest files in
overlays. (trunk r9258)

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

16 years agoBug #205718 - Fix quoting of ${INSTALL_MASK} where appropriate. Thanks
Zac Medico [Thu, 31 Jan 2008 23:48:20 +0000 (23:48 -0000)]
Bug #205718 - Fix quoting of ${INSTALL_MASK} where appropriate. Thanks
to Ed Catmur <ed@catmur.co.uk> for this patch. (trunk r9256)

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

16 years agoDisable manifest1_compat for ebuild --force digest. (trunk r9254)
Zac Medico [Thu, 31 Jan 2008 20:32:39 +0000 (20:32 -0000)]
Disable manifest1_compat for ebuild --force digest. (trunk r9254)

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

16 years agoUnconditionally disable manifest1 compatibility since it's been dropped
Zac Medico [Thu, 31 Jan 2008 20:10:20 +0000 (20:10 -0000)]
Unconditionally disable manifest1 compatibility since it's been dropped
from the main tree and nobody needs it anymore. (trunk r9252)

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

16 years agofix typo
Zac Medico [Thu, 31 Jan 2008 10:08:52 +0000 (10:08 -0000)]
fix typo

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

16 years agoMake the autotools.eclass functions exempt from the autotools
Zac Medico [Thu, 31 Jan 2008 09:32:13 +0000 (09:32 -0000)]
Make the autotools.eclass functions exempt from the autotools
QA Notice. (trunk r9249)

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

16 years agoAdd 'local' to the list of non_category_dirs since it's commonly
Zac Medico [Thu, 31 Jan 2008 08:26:40 +0000 (08:26 -0000)]
Add 'local' to the list of non_category_dirs since it's commonly
used for layman overlays. (trunk r9241)

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

16 years ago- Remove ebuild.autotools repoman check since it produces lots
Zac Medico [Thu, 31 Jan 2008 08:20:22 +0000 (08:20 -0000)]
- Remove ebuild.autotools repoman check since it produces lots
  of false positives (bug #207104) and its hard to parse bash

- Use QA_INTERCEPTORS in ebuild.sh to implement a runtime
  'QA Notice' when autotools is called directly

trunk r9235

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

16 years agoBug #206772 - Enable bashrc once again for the clean phase. (trunk r9220)
Zac Medico [Thu, 31 Jan 2008 08:07:51 +0000 (08:07 -0000)]
Bug #206772 - Enable bashrc once again for the clean phase. (trunk r9220)

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

16 years agoReplace the current diefunc() and die alias with a single die() function.
Zac Medico [Thu, 31 Jan 2008 08:06:18 +0000 (08:06 -0000)]
Replace the current diefunc() and die alias with a single die() function.
The previous arguments to diefunc() weren't used anyway. The result is
that the die message looks better because it doesn't show the alias and
all of it's arguments which are totally irrelevant. (trunk r9215:9217)

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

16 years agoAdd a note that PORTDIR is a repository of software and that users
Zac Medico [Thu, 31 Jan 2008 07:55:17 +0000 (07:55 -0000)]
Add a note that PORTDIR is a repository of software and that users
should not add random directories in it. (trunk r9209)

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

16 years agoCheck for quoted ${A}. Thanks to maekke for this patch. (trunk r9206)
Zac Medico [Thu, 31 Jan 2008 06:18:40 +0000 (06:18 -0000)]
Check for quoted ${A}. Thanks to maekke for this patch. (trunk r9206)

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

16 years agoBug #138159 - add support for --version (trunk r9200)
Zac Medico [Thu, 31 Jan 2008 05:52:54 +0000 (05:52 -0000)]
Bug #138159 - add support for --version (trunk r9200)

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

16 years agoBug #205966 - Don't show binhost password when displaying the uri. Thanks
Zac Medico [Thu, 31 Jan 2008 04:06:07 +0000 (04:06 -0000)]
Bug #205966 - Don't show binhost password when displaying the uri. Thanks
to Mike "Fuzzy" Partin <fuzzyoni@gmail.com>.

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

16 years agoPass db_keys in to the FakeVartree constructor (merged from trunk). This
Zac Medico [Wed, 30 Jan 2008 20:03:44 +0000 (20:03 -0000)]
Pass db_keys in to the FakeVartree constructor (merged from trunk). This
solves an issue with EAPI missing from the key list which triggers invalid
EAPI messages for masked packages in cases where there is an installed
version and all ebuilds are masked.

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

16 years agoAdd some notes about enhancements related to binary package support v2.1.4
Zac Medico [Sat, 12 Jan 2008 02:55:18 +0000 (02:55 -0000)]
Add some notes about enhancements related to binary package support
that's now in 2.1.4. (trunk r9197)

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

16 years agoIn preprocess_ebuild_env(), move a filter_readonly_variables call
Zac Medico [Sat, 12 Jan 2008 01:47:04 +0000 (01:47 -0000)]
In preprocess_ebuild_env(), move a filter_readonly_variables call
out of a subshell since FreeBSD and prefix users have reported
apparent corruption of the PATH environment variable that triggers
calls to the wrong version of sed (one that does not support the
-r option). (trunk r9193:9195)

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

16 years agoReplace hardcoded value with max_desc_len. (trunk r9192)
Zac Medico [Sat, 12 Jan 2008 00:19:19 +0000 (00:19 -0000)]
Replace hardcoded value with max_desc_len. (trunk r9192)

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

16 years agoBug #203887 - Make repoman recognize RESTRICT="installsources".
Zac Medico [Fri, 11 Jan 2008 23:44:10 +0000 (23:44 -0000)]
Bug #203887 - Make repoman recognize RESTRICT="installsources".
(trunk r9190)

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

16 years agoBug #205318 - Handle errno.ENOTDIR thrown from the lstat call
Zac Medico [Fri, 11 Jan 2008 23:10:38 +0000 (23:10 -0000)]
Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call
inside dblink._security_check(). (trunk r9188)

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

16 years agoAdjust the max DESCRIPTION.toolong length to 100 characters so that
Zac Medico [Fri, 11 Jan 2008 22:25:02 +0000 (22:25 -0000)]
Adjust the max DESCRIPTION.toolong length to 100 characters so that
it's not too small and only about 3% of packages will trigger it.
(trunk r9186)

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

16 years agoFix a typo. (trunk r9184)
Zac Medico [Fri, 11 Jan 2008 11:59:32 +0000 (11:59 -0000)]
Fix a typo. (trunk r9184)

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

16 years agoAdd a new "ebuild.autotools" check for when ebuilds call
Zac Medico [Fri, 11 Jan 2008 11:51:28 +0000 (11:51 -0000)]
Add a new "ebuild.autotools" check for when ebuilds call
autotools directly instead of using autotools.eclass.
Thanks to Betelgeuse for the initial patch.
(trunk r9179)

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

16 years ago* Make pkgcmp() pass the ebuild revision directly into vercmp() since
Zac Medico [Fri, 11 Jan 2008 11:41:55 +0000 (11:41 -0000)]
* Make pkgcmp() pass the ebuild revision directly into vercmp() since
  there is code there to handle it already. This eliminates some
  redundant revision comparison code. Thanks to peper for the patch.

* Add some vercmp() test cases for comparison of ebuild revisions.

(trunk r9178)

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

16 years agoAdd a DESCRIPTION.toolong warning for when the DESCRIPTION line is
Zac Medico [Fri, 11 Jan 2008 11:37:09 +0000 (11:37 -0000)]
Add a DESCRIPTION.toolong warning for when the DESCRIPTION line is
over 80 characters long. Thanks to Betelgeuse for the patch.
(trunk r9177)

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

16 years agoBug #162450 - Try to avoid having so many bugs marked UPSTREAM by
Zac Medico [Fri, 11 Jan 2008 09:40:49 +0000 (09:40 -0000)]
Bug #162450 - Try to avoid having so many bugs marked UPSTREAM by
encouraging users to report 'poor programming practices' QA issues
upstream and show them the $HOMEPAGE for convenience. (trunk r9176)

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

16 years agoBug #203887 - Implement RESTRICT=installsources for binaries that are
Zac Medico [Fri, 11 Jan 2008 05:49:57 +0000 (05:49 -0000)]
Bug #203887 - Implement RESTRICT=installsources for binaries that are
not compatible with debugedit. (trunk r9167)

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

16 years agoBug #203316 - Fix isvalidatom() to properly detect invalid operators
Zac Medico [Fri, 11 Jan 2008 05:49:02 +0000 (05:49 -0000)]
Bug #203316 - Fix isvalidatom() to properly detect invalid operators
used together with slot atoms. Thanks to Arfrever Frehtes Taifersar
Arahesis <Arfrever.FTA@GMail.Com> for the patch. (trunk r9166)

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

16 years agoMake sure that portdb.findname() returns the correct ebuild.
Zac Medico [Fri, 11 Jan 2008 05:47:25 +0000 (05:47 -0000)]
Make sure that portdb.findname() returns the correct ebuild.
(trunk r9164:9165)

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

16 years agoBug #204425 - Remove --delete-after from the default PORTAGE_RSYNC_OPTS.
Zac Medico [Fri, 11 Jan 2008 05:44:54 +0000 (05:44 -0000)]
Bug #204425 - Remove --delete-after from the default PORTAGE_RSYNC_OPTS.
This allows the rsync program to choose the preferred --delete algorithm,
or the user can choose one via PORTAGE_RSYNC_EXTRA_OPTS. (trunk r9163)

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

16 years agoBug#204668 - Fix WORKDIR quoting in econf() when updating
Zac Medico [Fri, 11 Jan 2008 05:40:55 +0000 (05:40 -0000)]
Bug#204668 - Fix WORKDIR quoting in econf() when updating
config.guess and config.sub. (trunk r9162)

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

16 years agoAfter loading the environment, make sure the color variables
Zac Medico [Fri, 11 Jan 2008 05:39:08 +0000 (05:39 -0000)]
After loading the environment, make sure the color variables
are in sync with the current NOCOLOR setting. (trunk r9158)

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

16 years agoWhen spawing the "depend" phase, use file descriptors from sys.std*
Zac Medico [Fri, 11 Jan 2008 05:37:37 +0000 (05:37 -0000)]
When spawing the "depend" phase, use file descriptors from sys.std*
streams. (trunk r9157)

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

16 years agoper bug 204468, remove old check from repoman (all ebuilds in
Zac Medico [Fri, 11 Jan 2008 05:33:52 +0000 (05:33 -0000)]
per bug 204468, remove old check from repoman (all ebuilds in
gentoo-x86 are migrated). (trunk r9144)

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

16 years agoBug #162542 - When dropping privileges for FEATURES=userpriv,
Zac Medico [Thu, 10 Jan 2008 23:07:06 +0000 (23:07 -0000)]
Bug #162542 - When dropping privileges for FEATURES=userpriv,
automatically detect permission problems with CCACHE_DIR and
recursively adjust permissions only when necessary.
(trunk r9160)

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

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