Fabian Groffen [Wed, 28 Mar 2007 20:14:13 +0000 (20:14 -0000)]
Apparently some vital source has gotten lost somewhere. A vimdiff also
revealed some other differences with the trunk that are now eliminated.
svn path=/main/branches/prefix/; revision=6319
Fabian Groffen [Wed, 28 Mar 2007 19:39:38 +0000 (19:39 -0000)]
Cleanup a bit.
svn path=/main/branches/prefix/; revision=6316
Fabian Groffen [Wed, 28 Mar 2007 19:35:07 +0000 (19:35 -0000)]
Adding this script because .... well... we love open source and stuff.
A little script to turn an SVN range (revision1:revision2) into a
"Merged from trunk" message, used when merging changes from the trunk
into the prefix branch.
svn path=/main/branches/prefix/; revision=6315
Fabian Groffen [Wed, 28 Mar 2007 19:32:02 +0000 (19:32 -0000)]
Merged from trunk 6308:6309
+------------------------------------------------------------------------+
| 6309 | For bug #172539, fix ecompressdir suffix handling so that |
| zmedico | automatic decompression of Z, gz, and bz2 suffixes works |
| | properly. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=6314
Fabian Groffen [Wed, 28 Mar 2007 19:26:57 +0000 (19:26 -0000)]
Merged from trunk 6291:6307
+------------------------------------------------------------------------+
| 6291 | minor name changes for bin tests, svn propset keywords Id |
| WarnerBro | stuff |
|-----------+------------------------------------------------------------|
| 6292 | Continue to support profile masking at least until bug |
| zmedico | #170697 is settled. |
|-----------+------------------------------------------------------------|
| 6297 | source ${T}/environment before the definition of |
| zmedico | qa_source() and qa_call() so that the call stack shows the |
| | original files and line numbers instead of those from |
| | ${T}/environment. Thanks to Markus Ullmann |
| | <jokey@gentoo.org> for reporting. |
|-----------+------------------------------------------------------------|
| 6299 | Filter the readonly attribute from variables saved in |
| zmedico | ${T}/environment to prevent 'readonly variable' error |
| | messages in later phases. |
|-----------+------------------------------------------------------------|
| 6301 | Properly anchor sed regexp for readlonly attribut |
| zmedico | filtering. |
|-----------+------------------------------------------------------------|
| 6303 | Synchronize PORTAGE_COMPRESS_FLAGS to reflect that -9 is |
| zmedico | the default now. |
|-----------+------------------------------------------------------------|
| 6305 | Convert "ebuild" and "binary" "nomerge" nodes into |
| zmedico | "installed" nodes for greater consistency in the depgraph. |
|-----------+------------------------------------------------------------|
| 6307 | Correctly pull the metadata again when the node is |
| zmedico | converted. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=6313
Fabian Groffen [Wed, 28 Mar 2007 19:20:08 +0000 (19:20 -0000)]
Merged from trunk 6278:6291
+------------------------------------------------------------------------+
| 6279 | Fix the rest of the tests |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 6280 | completely rewrite file bits, use Loader classes to push |
| WarnerBro | loading functionality down |
|-----------+------------------------------------------------------------|
| 6281 | split the loader classes into their own file, split the |
| WarnerBro | recursive filename grabbing out into it's own function |
|-----------+------------------------------------------------------------|
| 6282 | Do the "*" check as early as possible in |
| zmedico | config.getMissingLicenses(). |
|-----------+------------------------------------------------------------|
| 6283 | Verify the Manifest first even if there's only one package |
| zmedico | (prior to the fetch phase). |
|-----------+------------------------------------------------------------|
| 6285 | fix grammar in error output |
| SpankMan | |
|-----------+------------------------------------------------------------|
| 6286 | Fix insecure tempfile usage |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 6287 | fix some tests, break others |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 6288 | clean up some init functions, add PortageModules class |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 6289 | fix tests for PortageModulesFile |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 6290 | fix broken PortageModule classes |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 6291 | minor name changes for bin tests, svn propset keywords Id |
| WarnerBro | stuff |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=6312
Fabian Groffen [Wed, 28 Mar 2007 19:17:18 +0000 (19:17 -0000)]
Merged from trunk 6262:6277
+------------------------------------------------------------------------+
| 6263 | default --help should be usable, so make the extended |
| SpankMan | output require --verbose |
|----------+-------------------------------------------------------------|
| 6264 | Add --verbose to the "for more help" message. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 6265 | Ignore non-existent directories for bug #171809. This is |
| zmedico | required for readonly mode. |
|----------+-------------------------------------------------------------|
| 6267 | For bug #171840, consider all choices for slot intersection |
| zmedico | and promote those that have upgrades relative to other |
| | choices. |
|----------+-------------------------------------------------------------|
| 6269 | Clean up and simplify preference selection logic for bug |
| zmedico | #171840. |
|----------+-------------------------------------------------------------|
| 6271 | For bug #172033, remove the obsolete QA Notice for man |
| zmedico | pages that are already compressed. |
|----------+-------------------------------------------------------------|
| 6273 | Allow the merge task to continue despite conflicts when |
| zmedico | --fetch-all-uri is specified. |
|----------+-------------------------------------------------------------|
| 6275 | return from the merge task instead of calling sys.exit |
| zmedico | directly. |
|----------+-------------------------------------------------------------|
| 6277 | Verify all ebuild manifests before building anything now so |
| zmedico | that the user is notified of failure as soon as possible. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=6311
Fabian Groffen [Wed, 21 Mar 2007 21:20:25 +0000 (21:20 -0000)]
Merged from trunk 6257:6261
Catch a potential InvalidDependString exception.
Add a docstring to config.getMissingLicenses().
Pass a list of USE flags into config.getMissingLicenses() so that the
method can eventually be used for binary packages in addition to ebuilds.
Fix a typo.
svn path=/main/branches/prefix/; revision=6262
Fabian Groffen [Tue, 20 Mar 2007 21:05:05 +0000 (21:05 -0000)]
Merged from trunk 6254:6256
Pass missing acceptable_licenses parameter into recursive
_getMissingLicenses() calls.
Fix cvstree import to avoid deprecation warning.
svn path=/main/branches/prefix/; revision=6257
Fabian Groffen [Tue, 20 Mar 2007 20:02:52 +0000 (20:02 -0000)]
Merged from trunk 6252:6253
Appropriately return from _getMissingLicenses() if one of the choices is
satisfied.
svn path=/main/branches/prefix/; revision=6254
Fabian Groffen [Tue, 20 Mar 2007 19:44:21 +0000 (19:44 -0000)]
Merged from trunk 6250:6251
Implement license visibility filtering for GLEP 23, bug #17367, and bug
#152593.
svn path=/main/branches/prefix/; revision=6252
Fabian Groffen [Tue, 20 Mar 2007 08:32:30 +0000 (08:32 -0000)]
Also backup EPREFIX and EROOT, such that we can use those variables in
e.g. pkg_config().
svn path=/main/branches/prefix/; revision=6250
Fabian Groffen [Tue, 20 Mar 2007 08:00:00 +0000 (08:00 -0000)]
- use python from the path, as the system python might be kind of "old"
- if you use /bin/sh, then also only use /bin/sh syntax
svn path=/main/branches/prefix/; revision=6249
Fabian Groffen [Sun, 18 Mar 2007 21:30:15 +0000 (21:30 -0000)]
Merged from trunk 6245:6247
Appropriately use globals() instead of locals() as suggested by marienz.
Revert fowners/fperms hack, as it was almost as broken as SpankMan's
commit.
svn path=/main/branches/prefix/; revision=6248
Fabian Groffen [Sun, 18 Mar 2007 12:00:20 +0000 (12:00 -0000)]
After Spanky's change, also the mode would get prefixed with ${ED},
which chmod or chown obviously doesn't grok. Since the manpages suggest
the mode should come first, we just take the first argument separate,
and leave it alone.
- if it isn't set, chmod/chown will bail out
- if it has spaces, we properly pass it through, up to chmod/chown to
decide what to do
- if it is a filename, chmod/chown will bail out for sure
svn path=/main/branches/prefix/; revision=6245
Fabian Groffen [Sun, 18 Mar 2007 11:57:09 +0000 (11:57 -0000)]
Don't check dylibs for symlinks, as there are no linker scripts on
Darwin and symlinks are used instead.
svn path=/main/branches/prefix/; revision=6244
Fabian Groffen [Sun, 18 Mar 2007 11:08:11 +0000 (11:08 -0000)]
Merged from trunk 6239:6242
make sure we prefix all arguments with $D, including ones that dont
start with a / (SpankMan)
Use locals() instead of setattr to insert generated functions into the
current module. Thanks to Brian Harring for the suggestion.
Never use listdir with both recursion=True and followSymlinks=True since
it circular symlinks will lead to endless recursion loops. Thanks to
Tobias Hahn <tobhahn@web.de> for this patch.
svn path=/main/branches/prefix/; revision=6243
Fabian Groffen [Sat, 17 Mar 2007 18:06:15 +0000 (18:06 -0000)]
When using SVN and not signing, commit the Manifest on the first commit,
because the headers won't change, so it's faster... way faster.
svn path=/main/branches/prefix/; revision=6239
Fabian Groffen [Sat, 17 Mar 2007 14:49:53 +0000 (14:49 -0000)]
Merged from trunk 6229:6234 (probably not prefix aware)
start of framework for programs in portage bin (SpankMan)
Close /dev/null when finished.
Make paths independent of cwd.
Add "bin" to testDirs.
Call the base class destructor if it exists.
svn path=/main/branches/prefix/; revision=6238
Fabian Groffen [Sat, 17 Mar 2007 14:36:40 +0000 (14:36 -0000)]
Merged from trunk 6221:6229
Fix a typo.
Fix broken exception handling.
Fix a broken test.
ignore *.py[co] (SpankMan)
Use mkstemp to create a random tempfile.
fix for older python who have oddly named __exc_info() (WarnerBro)
bump ________foo from the TestCase class since _exc_info() doesn't do
anything anyway (WarnerBro)
send stdout to /dev/null since we rely on the output of stdout here to
determine the proper suffix #171212 (SpankMan)
svn path=/main/branches/prefix/; revision=6237
Fabian Groffen [Sat, 17 Mar 2007 14:32:58 +0000 (14:32 -0000)]
Merged from trunk 6218:6221
drop the need for the force flag by default and just delete the existing
files automatically #171007 (SpankMan)
redo compression so that it is queued up in src_install and then
dequeued post src_install (SpankMan)
forcibly break all hard links so we dont need to rely on --force in
compressor and tweak the _relocate_skip_dirs() func to handle whitespace
in paths (thanks to zmedico for tip) (SpankMan)
svn path=/main/branches/prefix/; revision=6236
Fabian Groffen [Sat, 17 Mar 2007 14:22:40 +0000 (14:22 -0000)]
Merged from trunk 6209:6217
Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when
necessary since relative paths lead to problems. Thanks to Christian
Heim <phreak@gentoo.org> for reporting.
Add back rstrip(os.path.sep) from the previous commit since it's needed
when ROOT="/".
For bug #163262 and conformance with section 7.2 of the PMS, make the
export attribute of variables persist between ebuild phases.
For bug #171117, ensure that the new and old config have different
timestamps (for the benefit of programs like rsync that need
distiguishable timestamps to detect file changes). Thanks to Ben
Bennett <sink@limey.net> for reporting.
Fix a utime call to prevent a timestamp collision for bug #171117.
svn path=/main/branches/prefix/; revision=6235
Fabian Groffen [Thu, 15 Mar 2007 20:08:12 +0000 (20:08 -0000)]
Fix config protect from being broken in prefix: a prefix got lost here
when trying to follow genone's code moving I guess.
svn path=/main/branches/prefix/; revision=6209
Fabian Groffen [Thu, 15 Mar 2007 18:51:17 +0000 (18:51 -0000)]
Tidy up dylib QA check; aggregate found files, and check the .so files
we found are really Mach-O objects. We do this, because portage
installs dolib.so, which is just a script.
svn path=/main/branches/prefix/; revision=6208
Fabian Groffen [Wed, 14 Mar 2007 18:02:04 +0000 (18:02 -0000)]
Merged from trunk 6204:6205
Make prepinfo remove installed info indexes recursively. Thanks to
Christian Faulhammer <opfer@gentoo.org> for reporting (see bugs #162675
and #170133).
svn path=/main/branches/prefix/; revision=6207
Fabian Groffen [Sat, 10 Mar 2007 20:07:46 +0000 (20:07 -0000)]
Merged from trunk 620{0,3}
Add back a missing `source isolated-functions.sh`. The color logic is
handled internally.
import portage.xpak to avoid deprecation warning
For bug #170178, remove all hardcoded references to '/usr/lib/portage'.
svn path=/main/branches/prefix/; revision=6204
Fabian Groffen [Fri, 9 Mar 2007 11:23:18 +0000 (11:23 -0000)]
Merged from trunk 6185:6199
For bug #169620, in --tree display always show the dowload size on the
node that is "ordered" rather than one of it's "nomerge" counterparts.
Fix 2 more types.InstanceType comparisons that are broken by the
transition of dbapi to new-style classes.
Take marien's advice, turn Skips into Todos for clarity sake
Part of my attempt now involves cleaning up config; this means for me;
removing the file-based stuff from it (config_path) and encapsulating
that into classes. This is the first one, a simple PackageKeywords
class that does file-based stuff, no recursion yet but soon. Trying to
do TDD here as well,so tests first then code.
Change load() to have no default arguments, makes caller specifiy
explicitly...I think assuming a default arg is bad here. Also add
PackageUse and PackageUseFile, change up the comments a bit. I've
started to notice code re-use here; these are basically the same
code. I think I will write up the rest of the package* classes and
then perform code merges to save LOC and memory and whatnot
add PackageMask{File} classes, change unit tests to use try/finally,
makes sure the tempfile gets destroyed even if something weird
happens
whoopse, s/;/:/ (WarnerBro)
Remove legacy "masked by: profile" support as per bug #149508.
Profiles should use package.mask to mask unwanted versions of system
packages.
Use the full atoms from the system set, since profile masking does
not automatically constrain the matches anymore.
Remove the "masked by: profile" support from getmaskingstatus().
Remove profile masking of system packages from the docs.
Display message about --buildpkgonly restriction in pretend mode as
well
svn path=/main/branches/prefix/; revision=6200
Fabian Groffen [Tue, 6 Mar 2007 15:44:03 +0000 (15:44 -0000)]
Don't blindly rely on the "character position" of the data we need,
because in locales other than C this makes completely no sense. Instead
(because my python skills are far from good) split on the colon and take
the righthand side.
svn path=/main/branches/prefix/; revision=6185
Fabian Groffen [Tue, 6 Mar 2007 09:12:30 +0000 (09:12 -0000)]
Merged from trunk 6180:6183
Roll our own unittest framework to add skip support. (WarnerBro)
Update all the unittests to use the new framework, test skipping with
isValidAtom, add silly xpak test since I have it 'done' (WarnerBro)
Add part about new framework and skipping to test notes (WarnerBro)
svn path=/main/branches/prefix/; revision=6184
Fabian Groffen [Mon, 5 Mar 2007 21:50:20 +0000 (21:50 -0000)]
Merged from trunk 6173:6178
allow people to disable compression by setting the PORTAGE_COMPRESS
variables to "" (SpankMan)
Avoid pointless population of the binary tree when --buildpkg is
enabled. Thanks to vapier for reporting.
these will fail now (WarnerBro)
svn path=/main/branches/prefix/; revision=6180
Fabian Groffen [Mon, 5 Mar 2007 21:41:29 +0000 (21:41 -0000)]
Just rely on the PATH. This should be fine, and avoids ugly EPREFIX
stuff all the time. Solves bug when the tools are just not exactly in
the location they were hardcoded to be.
svn path=/main/branches/prefix/; revision=6179
Fabian Groffen [Sun, 4 Mar 2007 15:07:17 +0000 (15:07 -0000)]
Widen the search, as soon as we see $D inside $ED we bail out. We don't
have to check for $D in $D, because everything in $D that is not also in
$ED causes an emergency breakdown anyway.
svn path=/main/branches/prefix/; revision=6173
Fabian Groffen [Sun, 4 Mar 2007 15:04:17 +0000 (15:04 -0000)]
Merged from trunk 6152:6169
you can't insert into sys.path without importing sys... (WarnerBro)
In the same vein as copyright, add Id and svn:keywords to it (WarnerBro)
make sure uid is an int (WarnerBro)
Pass waiting_msg into recursive lockfile() calls.
Only prune duplicate consecutive nodes if they both have depth == 0.
For bug #169187, make --depclean prune unneeded slots such that it is
consistent with the world update algorithm.
Add a note about --with-bdeps in the --depclean failure message.
Fix the minimum index for pruning consecutive duplicate nodes.
Remove the KVERS environment variable since it's code that creates it is
broken anyway (only sets KVERS="." in the general case).
Display blockers at the end of the list so that it will more often be
easy for the user to see them in a terminal. Thanks to iapitus and
hydrogen for the suggestion.
svn path=/main/branches/prefix/; revision=6172
Fabian Groffen [Sat, 3 Mar 2007 15:49:41 +0000 (15:49 -0000)]
It makes sense to first import sys, before using it. If this patch in
itself makes sense, I don't know. At least it allows people to use
emerge.
svn path=/main/branches/prefix/; revision=6152
Fabian Groffen [Sat, 3 Mar 2007 11:37:00 +0000 (11:37 -0000)]
Merged from trunk -r614{7,8}
Make sure that excess "nomerge" nodes are pruned correctly.
svn path=/main/branches/prefix/; revision=6151
Fabian Groffen [Sat, 3 Mar 2007 11:33:22 +0000 (11:33 -0000)]
Merged from trunk 6132:6146
When emerge automatically resumes, add --ignore-default-opts to the
command line in order to prevent things like --ask from leaking in via
EMERGE_DEFAULT_OPTS. Thanks to Peter Weller <welp@gentoo.org> for
reporting.
For bug #169046, fill in the --tree display with "nomerge" nodes so that
the user can always see at lease 1 parent on any non-root node.
Packages may appear in the display list multiple times, and will be
marked "nomerge" when their position in the list does not correspond to
actual merge order.
Fix types.InstanceType test which is failing now for some reason.
remove category regex, dumb idea, sorry I did it (WarnerBro)
s/node/selected_parent/ for clarity
For bug #138840, show a more informative message when waiting for a
distfiles lock due to parallel-fetch. Thanks to David Watzke
<david@watzke.cz> for the initial patch.
Add missing sys import.
svn path=/main/branches/prefix/; revision=6150
Fabian Groffen [Sat, 3 Mar 2007 10:35:08 +0000 (10:35 -0000)]
Remove "BeOS","Haiku","HP-UX", add "AIX"
svn path=/main/branches/prefix/; revision=6145
Fabian Groffen [Fri, 2 Mar 2007 14:18:50 +0000 (14:18 -0000)]
don't do the BSD thing in prefix
svn path=/main/branches/prefix/; revision=6132
Fabian Groffen [Fri, 2 Mar 2007 14:17:18 +0000 (14:17 -0000)]
Merged from trunk 6108:6129
Use an alarm signal to implement a timeout when rsync is fetching the
server timestamp file, since rsync's --timeout option doesn't apply to
the initial connection attempt.
Make sure pids are appropriately removed from
portage.process.spawned_pids.
please be --quiet emerge. still need to hunt down one more newline
(Solar)
Add compatibility code to avoid the GNU specific --reference option of
chmod. Thanks to Timothy Redaelli <drizzt@gentoo.org>.
For consistency, remove exit code 2 (protocol incompatibility) from the
other list of rsync exit codes.
Fix broken except statement syntax.
Fix the rest of the broken except statement syntax.
Fix broken rsync exitcode shift.
Remove unnecessary print statement reported by solar.
Even if there's no timestamp available locally, fetch the timestamp
anyway as an initial probe to verify that the server is responsive.
This protects us from hanging indefinitely on a connection attempt to an
unresponsive server which rsync's --timeout option does not prevent.
For bug #168646, remove --prune-empty-dirs from PORTAGE_RSYNC_OPTS since
it's only a small optimization and it's inconvenient to force
>=rsync-2.6.4 on server admins at this time. If users desire, they can
still add it to PORTAGE_RSYNC_EXTRA_OPTS.
svn path=/main/branches/prefix/; revision=6131
Fabian Groffen [Thu, 1 Mar 2007 19:07:23 +0000 (19:07 -0000)]
Merged hotfix from trunk 6106:6107
Fix misplaced [1]
svn path=/main/branches/prefix/; revision=6108
Fabian Groffen [Thu, 1 Mar 2007 16:42:13 +0000 (16:42 -0000)]
Merged from trunk 6101:6104
For bug #168823, fix broken except statement syntax that prevents the
ValueError from being caught as intended.
For bug #168646, don't bail out immediately when rsync detects protocol
incompatibility (code 2) during fetching of the timestamp file. Retry
for a better server (up to PORTAGE_RSYNC_RETRIES).
svn path=/main/branches/prefix/; revision=6106
Fabian Groffen [Wed, 28 Feb 2007 17:08:39 +0000 (17:08 -0000)]
Merged from trunk 6099:6100
update --help example to match current behavior #168678 by Arthur Hagen
(SpankMan)
svn path=/main/branches/prefix/; revision=6101
Fabian Groffen [Tue, 27 Feb 2007 20:53:22 +0000 (20:53 -0000)]
Suggestion from zmedico: use hasq to avoid QA errors about kernel_Darwin
not in IUSE.
svn path=/main/branches/prefix/; revision=6097
Fabian Groffen [Tue, 27 Feb 2007 20:17:14 +0000 (20:17 -0000)]
Duh... use use
svn path=/main/branches/prefix/; revision=6096
Fabian Groffen [Tue, 27 Feb 2007 20:05:07 +0000 (20:05 -0000)]
First shot at getting some checks for potentially wrong dynamic
libraries on Darwin.
svn path=/main/branches/prefix/; revision=6095
Fabian Groffen [Tue, 27 Feb 2007 19:50:25 +0000 (19:50 -0000)]
Also look for .dylibs, as we can use the QA on Darwin too
svn path=/main/branches/prefix/; revision=6094
Fabian Groffen [Tue, 27 Feb 2007 19:35:27 +0000 (19:35 -0000)]
Avoid "TypeError: unpack non-sequence" backtraces, and return a set of
None, None when was asked for the location.
svn path=/main/branches/prefix/; revision=6093
Fabian Groffen [Tue, 27 Feb 2007 19:10:28 +0000 (19:10 -0000)]
Fix undefined whatever 'best' error by importing it from
portage.versions
svn path=/main/branches/prefix/; revision=6092
Fabian Groffen [Tue, 27 Feb 2007 16:55:23 +0000 (16:55 -0000)]
In contrast to CVS, SVN complains when a file is not there when you rm
it. Hence, we don't remove the file before calling svn rm, like we have
to do for cvs.
svn path=/main/branches/prefix/; revision=6091
Fabian Groffen [Tue, 27 Feb 2007 16:52:33 +0000 (16:52 -0000)]
Merged from trunk 6085:6088
For compatibility with older findutils, don't use the -L predicate (bug
#168432).
For bug #168267, use add --force to the default PORTAGE_COMPRESS_FLAGS
so that hardlinks are automatically broken.
svn path=/main/branches/prefix/; revision=6090
Fabian Groffen [Mon, 26 Feb 2007 22:32:13 +0000 (22:32 -0000)]
The new counter_tick_core method code seems to get the prefix
automagically (via VDB_PATH), so no need to add prefix as well. That
actually breaks merging.
svn path=/main/branches/prefix/; revision=6085
Fabian Groffen [Mon, 26 Feb 2007 21:56:01 +0000 (21:56 -0000)]
Merged from trunk 6048:6070
spawn rsync without a shell.
Make verify_all() return an "insufficient data" error if there is not at
least one supported hash type.
Make fetch() bail out when an "Insufficient data for checksum
verification" error occurs.
Do not show the spinner and the "Calculating dependencies" message for
installation actions when the --nodeps option has been specified.
Thanks to David Watzke <david@watzke.cz> for this patch from bug #168169.
Filter paths matching '/<built-in>$' that come from debugedit. Thanks
to Ed Catmur for this patch from bug #165342.
As requested by solar, never show a merge list unless it's explicitly
requested by --ask, --pretend, or --tree.
As requested by solar, never show a merge list unless it's explicitly
requested by --ask, --pretend, or --tree.
Allow --verbose to trigger a merge list even without --pretend, --ask,
or --tree. Thanks to agaffney and zlin for the suggestion.
Clean up os.environ["USERLAND"] pollution from the portage.data module
so that it doesn't interfere with repoman.
For bug #167668, prune empty ${FILESDIR}s by adding --prune-empty-dirs
to PORTAGE_RSYNC_OPTS. Thanks to Ulrich Mueller <ulm@kph.uni-mainz.de>
for the suggestion.
svn path=/main/branches/prefix/; revision=6084
Fabian Groffen [Mon, 26 Feb 2007 21:52:36 +0000 (21:52 -0000)]
Merged from trunk 6039:6048
For bug #167667, use the existence of ${PORTDIR}/manifest1_obsolete to
trigger the disabling of manifest1/digest file generation. This toggle
is repo/overlay specific, allowing a specific overlay to drop manifest1
buy adding the manifest1_obsolete file.
For bug #167667, add support for ${PORTDIR}/manifest1_obsolete and
automatically remove ${FILESDIR}/digest-* from cvs when appropriate.
(prefix: do the same thing for SVN)
Don't bother to parse ${FILESDIR}/digest-* when manifest1_compat is
disabled.
For bug #167668, use an rsync "hide" filter rule to exclude
**/files/digest-* and delete them on the receiver.
Remove quotes since rsync doesn't accept them (and there is no shell to
remove them since we use spawn() for rsync now).
svn path=/main/branches/prefix/; revision=6083
Fabian Groffen [Mon, 26 Feb 2007 21:40:18 +0000 (21:40 -0000)]
Merged from trunk 6036:6039
Fix "NameError: global name 'myfilelist' is not defined" when
collision-protect is enabled.
Make sure that ${A} in initialized in case pkg_nofetch() needs to be
called. Thanks to Peper for reporting.
svn path=/main/branches/prefix/; revision=6082
Fabian Groffen [Mon, 26 Feb 2007 21:38:08 +0000 (21:38 -0000)]
Merged from trunk 6021:6036
s/x/xs/ to fix a typo in a variable name.
For consistency, replace multiple os.getcwd() calls with the "mydir"
variable.
Fix stardir and repodir logic from the previous commit.
Avoid a TypeError when commitmessagefile is None.
Use startdir instead of mydir since mydir has a trailing slash which
triggers normalization issues with the dirname function.
Fix more broken commitmessagefile handling.
Fix broken file list handling for FEATUES=sign when only the Manifest
has changed.
Add some sanity checks for file list handling when repolevel < 3.
svn path=/main/branches/prefix/; revision=6081
Fabian Groffen [Mon, 26 Feb 2007 21:26:27 +0000 (21:26 -0000)]
Merged from trunk 5995:6021
For bug #167450, optimize merge order by delaying the merge of root
nodes.
For bug #166880, always display the merge list (allowing --tree to be
obeyed in any case).
For bug #166880, always display the merge list header.
When calling tar, always exclud . in order to preserver
PORTAGE_WORKDIR_MODE. Thanks to Brian Harring in bug #167544.
Don't exclude . since that excludes the entire contents of some tar
files.
For bug #166564, make a circular dependency panic more user friendly by
displaying the USE flags that are enabled on nodes that are part of
dependency cycles and display a note hinting that circular dependencies
can often be avoided by temporarily disabling USE flags.
Automatically enable --tree mode when displaying nodes with circular
deps.
For bug #167450, optimize leaf node selection by ordering nodes from
highest to lowest overall reference count.
Make digraph._merge_order_bias() operate on a single digraph that's
passed in.
Optimize order for --tree display of circular dependencies.
As requested by vapier, don't show the merge list in --quiet mode unless
it's explicitly requested via --ask or --pretend.
For bug #167795, try avoid the population routine when possible, so that
FEATURES=buildpkg doesn't always force population.
Raise a CommandNotFound exception when necessary, to ease
troubleshooting. Thanks to marienz for reporting.
svn path=/main/branches/prefix/; revision=6080
Fabian Groffen [Mon, 26 Feb 2007 21:22:52 +0000 (21:22 -0000)]
Merged from trunk 5990:5995
Move reverse NEEDED cache into CACHE_PATH and use a more descriptive
name (genone)
extend check for internal references, should remove all libs that are
only used internally now (genone)
Move preserve-libs and collision-protect code from treewalk() into their
own functions (genone)
set.remove() returns None, so can't use it in a function call (genone)
svn path=/main/branches/prefix/; revision=6079
Fabian Groffen [Mon, 26 Feb 2007 21:20:23 +0000 (21:20 -0000)]
Merged from trunk 5981:5990
For bug #166939, make --nodeps work like a normal package for new-style
virtuals.
Remove unnecessary import that triggers DEPRECATION NOTICE.
Fix package.provided breakage from the fix for bug #166939.
For bug #166785, check for invalid categories in the world file.
For bug #163990, warn about ebuilds with invalid categories and do not
allow them to be installed.
For bug #163990, warn about binary packages with invalid categories and
do not allow them to be installed.
svn path=/main/branches/prefix/; revision=6078
Fabian Groffen [Mon, 26 Feb 2007 21:16:35 +0000 (21:16 -0000)]
Merged from trunk 2980:5981
(prefix: now also using the emulation for non-modularised situation)
Replace compat symlinks with a new compat module as the symlink solution
prevents reuse of state information (requested by ferringb)
svn path=/main/branches/prefix/; revision=6077
Fabian Groffen [Mon, 26 Feb 2007 21:04:24 +0000 (21:04 -0000)]
Replay of trunk 5978
Move bin/emerge to pym/emerge/__init__.py to restore old import behavior
as the load_source solution doesn't work properly (genone)
svn path=/main/branches/prefix/; revision=6076
Fabian Groffen [Mon, 26 Feb 2007 20:54:10 +0000 (20:54 -0000)]
Merged from trunk 5976:5977
Make emerge importable again without relying on module search path order
(genone) (prefix: let's take emerge from prefix)
svn path=/main/branches/prefix/; revision=6075
Fabian Groffen [Mon, 26 Feb 2007 20:43:09 +0000 (20:43 -0000)]
Merged from trunk 5964:5976
For bug #158100, use an exact reversal of the actual merge order for
--tree output. It's more efficient than doing 2 order calculations.
Optimize merge order calculation for --tree output when necessary.
Fix CONFIG_PROTECT_MASK support. Thanks to piavlo <piavka@cs.bgu.ac.il>
for this patch from bug #166837.
Add missing quotes.
Add support for RSYNC_EXTRA_OPTS to webrsync (genone)
Print filename when displaying package.mask comments (genone)
[[
Ignore compiled files.
Add new feature 'preserve-libs' that injects files into $D that
- belong to a package instance that is about to be autocleaned
- are not installed by the new package instance
- are listed in at least one NEEDED file in vdb
- are not just used by other files of the package instance
As a side-effect a new file /var/db/pkg/.NEEDED is created that
contains a reversed map of the NEEDED files found in a packages dbdir.
]] (genone)
Print hostname in xterm title if sheridan is available in the
environment (genone)
svn path=/main/branches/prefix/; revision=6074
Fabian Groffen [Mon, 26 Feb 2007 20:33:15 +0000 (20:33 -0000)]
Instead of grepping what should be the last line of SVN's output, simply
cut it off. This is a lazy hack for what already was quite lazy, but to
fix it when the user doesn't use a C locale (the message will be
translated into something else)
svn path=/main/branches/prefix/; revision=6073
Fabian Groffen [Mon, 26 Feb 2007 20:06:38 +0000 (20:06 -0000)]
Typo: we run status, not update
svn path=/main/branches/prefix/; revision=6072
Fabian Groffen [Tue, 13 Feb 2007 20:03:15 +0000 (20:03 -0000)]
Merged from trunk 596{2,3}
Fix broken imports.
svn path=/main/branches/prefix/; revision=5964
Fabian Groffen [Tue, 13 Feb 2007 19:51:52 +0000 (19:51 -0000)]
Merged from trunk 5937:5961 (hi genone!)
add docstrings (WarnerBro)
Move dbapi and related classes out of __init__.py into their own
subpackage. Also perform some minor cleanups. (genone)
fix syntax
Fix imports from the emerge package.
Fix automatic sys.path insertions so that they're relative instead of
absolute hard coded.
remove broken dblink import
fix broken imports
Use os.path.realpath to handle symlinks properly.
Break a recursive loop.
Fix missing stat import.
Fix vardb.cpv_all() breakage.
Add missing VDB_PATH to fix vardbapi.aux_get() breakage.
Make xterm titles work even when color is disabled. Thanks to Joachim
Kaeber <joachim.kaeber@web.de> in bug #166255.
Use the real symbols in import statements, not the references in
__init__.py (genone)
import best() from portage.versions
Make subpackage naming consistent (genone)
In the event of a circular dependency panic, eliminate root nodes in
order to reduce the noise level to a minimum.
tweak PORT_LOGDIR comments so as to not give the wrong impression about
the default value (SpankMan)
Fix missing imports.
Detect potential issues with mtime granlarity in env_update() and sleep
if necessary. Thanks to Brian Harring for reporting.
svn path=/main/branches/prefix/; revision=5962
Fabian Groffen [Sat, 10 Feb 2007 12:50:42 +0000 (12:50 -0000)]
Merged from trunk 5933:5935
update test notes (WarnerBro)
fix a few broken tests (WarnerBro)
svn path=/main/branches/prefix/; revision=5937
Fabian Groffen [Sat, 10 Feb 2007 12:49:22 +0000 (12:49 -0000)]
Make emerge working again (failed with:
% emerge
Traceback (most recent call last):
File "/Library/Gentoo/usr/bin/emerge", line 35, in ?
import emerge.help
ImportError: No module named emerge.help), adding a __init__.py seems to
help.
svn path=/main/branches/prefix/; revision=5936
Fabian Groffen [Fri, 9 Feb 2007 22:28:52 +0000 (22:28 -0000)]
Merged from trunk 5905:5931
Update modules doc for the new portage namespace.
For backward compatibility with api consumers, _dep_check_strict
behavior will be explicitly enabled as necessary. Thanks to Brian
<dol-sen@telus.net> for reporting issues with porthole and equery.
For bug #165783, handle an InvalidDependString exception triggered by an
invalid SRC_URI.
move die into isolated-functions.sh (WarnerBro)
Only echo PORTAGE_LOG_FILE if it's actually set (may not be if sesandbox
is enabled).
For bug #165780, make config-protect code consistently ignore '.*~' and
'.*.bak'.
For bug #165783, handle a potential InvalidDependString exception inside
digestgen().
Enable strict dep checking for repoman.
For bug #165783, handle a potential InvalidDependString exception inside
doebuild().
For bug #165783, handle a potential InvalidDependString exception in
repoman and report a SRC_URI.syntax failure.
Synchronize required hash code in all relevant places.
Turn on strict dep checking to fix the isvalidatom test.
Make the "lfull" output more succinct by omitting categories for which
there are no violations.
die requires diefunc and dump_trace too; duh; also move extdebug into
isolated-functions.sh (WarnerBro)
Create namespace for emerge (genone)
svn path=/main/branches/prefix/; revision=5933
Fabian Groffen [Fri, 9 Feb 2007 22:23:48 +0000 (22:23 -0000)]
Messing around with the autojungle. Fixing/cleaning up the acinclude
file. Add functions for things we need. Dropped many tests for tools
that are never used by portage. We require GNU versions of some core
tools now. This should help me stop wasting time on crappy
implementations of vital tools.
svn path=/main/branches/prefix/; revision=5932
Fabian Groffen [Tue, 6 Feb 2007 21:30:50 +0000 (21:30 -0000)]
Merged from trunk -r5896 -r5904
For bug #165382, show a helpful message if an exception is raised from
cpv_expand().
Check if entries contain the required hashes before writing the Manifest
(genone)
Make sure to fetch files if MANIFEST2_REQUIRED_HASH is missing.
Document PORTAGE_WORKDIR_MODE for bug #8688. Thanks to Peter
Hjalmarsson in bug #164617.
svn path=/main/branches/prefix/; revision=5905
Fabian Groffen [Mon, 5 Feb 2007 19:37:04 +0000 (19:37 -0000)]
Merged from trunk 5888
For bug #165349, use the portage_versions regex (via pkgsplit) instead
of the incompatible ones that repoman currently uses.
svn path=/main/branches/prefix/; revision=5894
Fabian Groffen [Mon, 5 Feb 2007 19:12:47 +0000 (19:12 -0000)]
Fix another UnboundLocalError, this time the way Zac fixed the previous
one.
svn path=/main/branches/prefix/; revision=5893
Fabian Groffen [Mon, 5 Feb 2007 19:05:36 +0000 (19:05 -0000)]
Merged from trunk 5885:5891
Fix "UnboundLocalError: local variable 'portage' referenced before
assignment" caused by a local import hiding a global import
(undid changeset 5884:5885 for this)
For bug #165349, use the portage_versions regex (via pkgsplit) instead
of the incompatible ones that repoman currently uses.
Document --config-root for bug #165334.
For bug #165382, don't raise a ValueError in cpv_expand() if there are
only two matches and one of them is a virtual. Prefer the non-virtual
instead.
Ensure that the code for bug #165342 only affects name collisions with
virtuals.
svn path=/main/branches/prefix/; revision=5892
Fabian Groffen [Sat, 3 Feb 2007 22:05:47 +0000 (22:05 -0000)]
Avoid another unbounded error by not importing portage.* somewhere in
the function such that "portage" as variable doesn't get overridden.
svn path=/main/branches/prefix/; revision=5886
Fabian Groffen [Sat, 3 Feb 2007 21:52:00 +0000 (21:52 -0000)]
Merged from trunk 5861:5880
fix doc typo; more test fiddling (WarnerBro)
A somewhat more intelligent layout, move tests into portaage namespace
so we can import them easier, seems to be a more common layout from what
I've seen. Also rewrite the test runner to work with new layout
(WarnerBro)
apparently I'm retarded and missed some of the tests.. (WarnerBro)
Rename dir.bz2 since that's the most likely case now.
add warning about storing data in PORTDIR (WarnerBro)
For bug #153109, replace our old chflags module with the one provided by
the py-freebsd package. Thanks to Diego Petten?\195?\178
<flameeyes@gentoo.org> for the initial patch.
remove redundant directory now (WarnerBro)
grrr I thought I removed this (WarnerBro)
For bug #165065, use the proper RESTRICT setting when fetching files in
digestgen().
Make the tests pass.
For bug #165034, make sure that symlinks are excluded from chmod calls.
Use ! -type l to exclude symlinks better. Thanks to marienz.
Fix a typo from the previos commit.
In order to correctly handl the case of target caches that don't have
complete eclass entries, validate the set of interited eclasses to make
sure it is correct (since timestamp validation is not applicable).
svn path=/main/branches/prefix/; revision=5885
Fabian Groffen [Thu, 1 Feb 2007 08:34:00 +0000 (08:34 -0000)]
Merged from trunk 585{1,9}
Don't use os.path.isdir() because it can swallow errors related to
filesystem/disk corruption.
add some new tests (WarnerBro)
rename file (WarnerBro)
Round one of dep_getusedeps() (WarnerBro)
increase test coverage to cover slots, uncovering a few corner cases
that need fixing (WarnerBro)
fix regression in test changes (WarnerBro)
Load the most current variables from /etc/profile.env for post_emerge
stuff.
Fix --newuse so that it works correctly with --usepkg.
svn path=/main/branches/prefix/; revision=5861
Fabian Groffen [Wed, 31 Jan 2007 13:12:43 +0000 (13:12 -0000)]
Merged from trunk 5839:5849
For bug #164532, don't rely on ${USERLAND} since the portage tree might
be empty.
For bug #164617, don't change permissions on ${WORKDIR} with unpack().
Use find + xargs to avoid a potential 'Argument list too long' from
bash. Thanks to solar for reporting.
add some useful options (SpankMan)
try and fix $LastChangedRevision$ (SpankMan)
try and fix $Rev$ (SpankMan)
svn path=/main/branches/prefix/; revision=5850
Fabian Groffen [Tue, 30 Jan 2007 20:54:48 +0000 (20:54 -0000)]
In prefix we _always_ have GNU xargs, so we can *always* use -r (which
is short for --no-run-if-empty)
svn path=/main/branches/prefix/; revision=5839
Fabian Groffen [Tue, 30 Jan 2007 20:34:37 +0000 (20:34 -0000)]
xpak -> portage.xpak
svn path=/main/branches/prefix/; revision=5837
Fabian Groffen [Tue, 30 Jan 2007 20:23:17 +0000 (20:23 -0000)]
import xpak -> import portage.xpak
svn path=/main/branches/prefix/; revision=5836
Fabian Groffen [Tue, 30 Jan 2007 20:01:49 +0000 (20:01 -0000)]
vimdiff against trunk, found some code that was not in.
removed "import portage.process" call in function because this "unsets"
portage, such that portage.spawn yields in an UnboundLocalError. In any
way, this allows us prefixers to sync the tree.
svn path=/main/branches/prefix/; revision=5835
Fabian Groffen [Tue, 30 Jan 2007 16:53:04 +0000 (16:53 -0000)]
Merged from trunk r58{20,33}
Minor cleanup for the LIVEVCS.stable code.
add support for transparently decompressing gz/Z/bz2 files since some
upstream packages will compress for us (SpankMan)
For bug #164078, don't trigger the CLEAN_DELAY countdown for autoclean
operations since those are most likely unattended. Thanks to Dan
<hydrogen@notyetimplemented.com> for the initial patch.
For bug #164363, shuffle the ip addresses returned from
socket.getaddrinfo().
svn path=/main/branches/prefix/; revision=5834
Fabian Groffen [Sun, 28 Jan 2007 21:57:29 +0000 (21:57 -0000)]
Bleh... can't commit when repoman is still broken.
svn path=/main/branches/prefix/; revision=5820
Fabian Groffen [Sun, 28 Jan 2007 21:46:18 +0000 (21:46 -0000)]
Merged from trunk 5816:5817
Can't delete variable that doesn't exist anymore (bug #164280) (genone)
svn path=/main/branches/prefix/; revision=5819
Fabian Groffen [Sun, 28 Jan 2007 21:43:00 +0000 (21:43 -0000)]
Fix a first batch of _ vs .
svn path=/main/branches/prefix/; revision=5818
Fabian Groffen [Sun, 28 Jan 2007 19:37:45 +0000 (19:37 -0000)]
Merged from trunk 5813:5814
use errno.EACCES as suggested by Brian Harring (WarnerBro)
svn path=/main/branches/prefix/; revision=5816
Fabian Groffen [Sun, 28 Jan 2007 19:36:53 +0000 (19:36 -0000)]
Fix tarball.sh using the right file
svn path=/main/branches/prefix/; revision=5815
Fabian Groffen [Sun, 28 Jan 2007 18:22:17 +0000 (18:22 -0000)]
Merged from trunk 5795:5804
add support for parsing of unicode quotes (SpankMan)
Ignore EEXIST from rmdir since some kernels (such as solaris) return
that instead of ENOTEMPTY.
Remove a stray print statement. Thanks to Rick Warner in bug #125261.
fix format bug and mention default built_with_use behavior (SpankMan)
Add a warning about confcache to make.conf(5) (genone)
Catch EACCESS when running env-update, orignal patch by
<phajdan.jr@gmail.com> (bug #106061) (genone)
translate unicode quotes to ascii ones so we can keep our regex simple
(SpankMan)
svn path=/main/branches/prefix/; revision=5813
Fabian Groffen [Sun, 28 Jan 2007 17:49:39 +0000 (17:49 -0000)]
Merged from trunk 5791:5795 (WarnerBro)
fix namespacing in tests
add test to entice svn mv
Move tests into new directory structure
fix minor sed overzeallousness
svn path=/main/branches/prefix/; revision=5812
Fabian Groffen [Sun, 28 Jan 2007 17:46:43 +0000 (17:46 -0000)]
Merged from trunk 5789:5791
For consistency, do not imply --pretend with --changelog since that
prevents --changelog from being usable in EMERGE_DEFAULTS_OPTS.
Thanks to Ryan Hill <dirtyepic@gentoo.org> in #151250.
if requested argv cannot be matched to anything, exit with non-zero
status (SpankMan)
svn path=/main/branches/prefix/; revision=5811
Fabian Groffen [Sun, 28 Jan 2007 17:40:19 +0000 (17:40 -0000)]
Namespace "sanitizing" into portage.const_autotool
svn path=/main/branches/prefix/; revision=5810
Fabian Groffen [Sun, 28 Jan 2007 17:38:18 +0000 (17:38 -0000)]
Merged from trunk 5785:5786
Document namespace sanitizing (genone)
svn path=/main/branches/prefix/; revision=5809
Fabian Groffen [Sun, 28 Jan 2007 17:36:33 +0000 (17:36 -0000)]
The great "try and see if you can do what genone did" challenge part 3:
"namespace sanitizing" (trunk 5780:5785)
svn path=/main/branches/prefix/; revision=5808
Fabian Groffen [Sun, 28 Jan 2007 17:23:45 +0000 (17:23 -0000)]
The great "try and see if you can do what genone did" challenge part 2:
merged "rename of exec to process", which included the change of all
portage_XXX calls to portage.XXX. Commit message could have been
clearer there genone...
svn path=/main/branches/prefix/; revision=5807
Fabian Groffen [Sun, 28 Jan 2007 17:15:29 +0000 (17:15 -0000)]
The great "try and see if you can do what genone did" challenge part 1:
move the files into the "right" location
svn path=/main/branches/prefix/; revision=5806
Fabian Groffen [Sun, 28 Jan 2007 11:08:57 +0000 (11:08 -0000)]
Remove seemingly stale file
svn path=/main/branches/prefix/; revision=5805
Fabian Groffen [Sat, 27 Jan 2007 22:54:55 +0000 (22:54 -0000)]
Merged from trunk 5758:5768
Add new ** for package.keywords token to bypass keyword visibility layer
(genone)
Update package.keywords section in portage(5) with info about new **
token (genone)
For bug #142279, detect and warn about null bytes in CONTENTS.
Fix broken line number counting for CONTENTS.
demote KEYWORDS.missing to a warning to make KEYWORDS='' valid (genone)
svn path=/main/branches/prefix/; revision=5797
Alec Warner [Wed, 24 Jan 2007 02:02:18 +0000 (02:02 -0000)]
fix a tiny logic error in repoman (grobian plz don't kill me)
svn path=/main/branches/prefix/; revision=5769
Fabian Groffen [Tue, 23 Jan 2007 08:54:55 +0000 (08:54 -0000)]
Merged from trunk 5748:5757
For bug #163083, handle an UnsupportedAPIException thrown from the prerm
phase.
use svn export (SpankMan)
move gen_usr_ldscript from eutils to toolchain-funcs to reflect actual
eclass status (SpankMan)
remove functions that dont exist anymore: draw_line get_number_of_jobs
have_NPTL (SpankMan)
document the functions built_with_use doicon newicon domenu newmenu
ebeep emktemp epause make_wrapper preserve_old_lib
preserve_old_lib_notify (SpankMan)
For bug #163219, handle binpkgs that have missing PF metadata.
svn path=/main/branches/prefix/; revision=5758