Zac Medico [Tue, 17 Jan 2012 21:13:00 +0000 (13:13 -0800)]
xml/metadata.py: handle ExpatError
Zac Medico [Tue, 17 Jan 2012 20:39:00 +0000 (12:39 -0800)]
remove stray 'fi' from last commit
Zac Medico [Tue, 17 Jan 2012 15:30:11 +0000 (07:30 -0800)]
_eapi0_src_test: remove redundant FEATURES checks
Arfrever Frehtes Taifersar Arahesis [Sun, 15 Jan 2012 23:53:04 +0000 (00:53 +0100)]
Support repository dependencies in EAPI="4-python".
Arfrever Frehtes Taifersar Arahesis [Sun, 15 Jan 2012 21:44:17 +0000 (22:44 +0100)]
portageq metadata: Support repository dependencies.
Zac Medico [Sun, 15 Jan 2012 17:59:37 +0000 (09:59 -0800)]
create_world_atom: multi-repo portdbapi aux_get
This handles a KeyError raised from portdbapi.aux_get() when one of the
repositories has a corrupt ebuild.
Mike Frysinger [Fri, 13 Jan 2012 19:34:58 +0000 (14:34 -0500)]
add support for compressing debug sections to save space
Since binutils/gdb can compress the .debug* sections with zlib into
.zdebug*, we should be able to save quite a bit of space -- on my
system, I saw /usr/lib/debug/ go from ~20GB to ~7.5GB.
This requires binutils/gdb to be built with USE=zlib which is why
this defaults to off.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Fri, 13 Jan 2012 19:29:06 +0000 (14:29 -0500)]
prepstrip: add writable workaround for everyone
The writable issue shows up when using `ebuild` as non-root users
in non-prefix setups. So always do it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Zac Medico [Sat, 14 Jan 2012 17:10:10 +0000 (09:10 -0800)]
egencache: escape newline instead of lstrip
Zac Medico [Sat, 14 Jan 2012 17:01:38 +0000 (09:01 -0800)]
egencache: use textwrap.dedent
Zac Medico [Sat, 14 Jan 2012 15:29:08 +0000 (07:29 -0800)]
Apply INSTALL_MASK prior to collision-protect.
It may be useful to avoid collisions in some scenarios.
Zac Medico [Fri, 13 Jan 2012 16:21:31 +0000 (08:21 -0800)]
dyn_install: skip copy if possible
Also, fix EPREFIX breakage since commit
5d5364e982820fda56db5a40884e1c5f8e784b96.
Zac Medico [Fri, 13 Jan 2012 16:06:20 +0000 (08:06 -0800)]
dyn_package: portable cp args by Mike Frysinger
Zac Medico [Fri, 13 Jan 2012 14:14:12 +0000 (06:14 -0800)]
dyn_package: remove stale PROOT if necessary
Brian Harring [Fri, 13 Jan 2012 12:18:48 +0000 (04:18 -0800)]
Modify PKG_INSTALL_MASK to apply only to binpkg creation.
Primarily useful for certain cases where cros needs to suppress debug
symbols being included for specific pkgs, and/or suppressing binpkgs
from carrying sensitive configuration data, but we still wish for it
to be installed.
BUG=chromium-os:25060
TEST=set PKG_INSTALL_MASK, check ${D} vs what's in the binpkg
Change-Id: I0f81a9e394b7b0b64dbbcbe8d189876cb8421dfa
Zac Medico [Fri, 13 Jan 2012 02:46:24 +0000 (18:46 -0800)]
test_config: fix AttributeError: 'str'
Zac Medico [Thu, 12 Jan 2012 16:59:40 +0000 (08:59 -0800)]
depgraph: account for unevaluated_atom in cache
Zac Medico [Thu, 12 Jan 2012 16:32:53 +0000 (08:32 -0800)]
depgraph: unevaluated parent atom in debug output
Zac Medico [Thu, 12 Jan 2012 11:26:13 +0000 (03:26 -0800)]
Add --human-readable to rsync opts for bug 269410
Zac Medico [Thu, 12 Jan 2012 01:34:49 +0000 (17:34 -0800)]
read_corresponding_eapi_file: unicode, bug 398587
Zac Medico [Wed, 11 Jan 2012 16:02:26 +0000 (08:02 -0800)]
quickpkg: add leading ./ to names for bug 398543
Zac Medico [Wed, 11 Jan 2012 12:38:07 +0000 (04:38 -0800)]
DEVELOPING: add "Dependencies" section
Zac Medico [Wed, 11 Jan 2012 12:28:56 +0000 (04:28 -0800)]
DEVELOPING: add "Python Version" section
Zac Medico [Wed, 11 Jan 2012 12:18:20 +0000 (04:18 -0800)]
DEVELOPING: remove section about string module
The module no longer exists since Python 2.7, so by now it should be
obvious that it's obsolete.
Arfrever Frehtes Taifersar Arahesis [Wed, 11 Jan 2012 03:57:23 +0000 (04:57 +0100)]
portage.debug.trace_handler.__init__(): Fix compatibility with Python 3.
Zac Medico [Tue, 10 Jan 2012 18:41:29 +0000 (10:41 -0800)]
ExtendedAtomDict: fix for python-trace
Zac Medico [Tue, 10 Jan 2012 00:37:28 +0000 (16:37 -0800)]
env_update: ldsoconf_update flag not reliable
The ldsoconf_update flag was not a reliable indicator of whether
or not ldconfig needs to be called, since ld.so.conf can have lines
like "include ld.so.conf.d/*.conf" that pull in outside content which
may have changed without being detected.
Arfrever Frehtes Taifersar Arahesis [Sun, 8 Jan 2012 06:43:06 +0000 (07:43 +0100)]
Update documentation of EAPI="4-python".
Arfrever Frehtes Taifersar Arahesis [Sun, 8 Jan 2012 06:19:06 +0000 (07:19 +0100)]
Set REPOSITORY variable in ebuild environment in EAPI="4-python".
Arfrever Frehtes Taifersar Arahesis [Sun, 8 Jan 2012 06:06:33 +0000 (07:06 +0100)]
Fix location of a comment.
Arfrever Frehtes Taifersar Arahesis [Sun, 8 Jan 2012 03:06:31 +0000 (04:06 +0100)]
Set portage-1 as default profile format for repositories using EAPI="4-python".
Arfrever Frehtes Taifersar Arahesis [Sun, 8 Jan 2012 03:00:07 +0000 (04:00 +0100)]
Set eapi attribute on portage.repository.config.RepoConfig objects.
Zac Medico [Tue, 3 Jan 2012 21:59:25 +0000 (13:59 -0800)]
getlibpaths: regex for include
Michał Górny [Tue, 3 Jan 2012 21:28:47 +0000 (22:28 +0100)]
Support include directives in ld.so.conf.
Gavin Pryke [Mon, 2 Jan 2012 23:01:30 +0000 (15:01 -0800)]
ebuild.5: fix REQUIRED_USE sample for bug #397415
Zac Medico [Mon, 2 Jan 2012 07:48:07 +0000 (23:48 -0800)]
repoman: remove ebuild.allmasked check
This check it pretty useless, since there packages don't necessarily
need to have any stable keywords, and nobody relies on this check to
decide when to keyword something. Also, remove references to the
ebuild.nostable which doesn't seem to exist anymore.
Zac Medico [Mon, 2 Jan 2012 07:34:30 +0000 (23:34 -0800)]
repoman: discard xmatch caches from previous pkgs
This should help prevent repoman from consuming too much memory when
checking multiple packages or the whole tree.
Zac Medico [Wed, 28 Dec 2011 08:15:58 +0000 (00:15 -0800)]
RepoConfigLoader: don't mix duplicate repo config
RepoConfig.update() was being used to copy attributes from one instance
to another, possibly leading to inappropriate mixing of layout.conf
attributes from separate copies of the same repo. This is common with
repoman, for example, when temporarily overriding an rsync repo with
another copy of the same repo from CVS.
Zac Medico [Wed, 28 Dec 2011 07:13:41 +0000 (23:13 -0800)]
RepoConfig.update(): copy more attributes
This fixes a regression since commit
10246cd535f909dda8bd05de617c32d2b8a56b4a which caused layout.conf
settings such as thin-manifests to be ignored for repositories that
had repos.conf settings that did not specify the repository location.
In order to trigger this case, ResolverPlayground has been modified to
omit the location of each repository in the repos.conf file that it
generates.
Zac Medico [Sun, 25 Dec 2011 20:05:08 +0000 (12:05 -0800)]
repoman: later --ask prompt for bug #395995
Arfrever Frehtes Taifersar Arahesis [Sun, 25 Dec 2011 19:40:40 +0000 (20:40 +0100)]
portage.repository.config.RepoConfigLoader: Rename _add_overlays() to
_add_repositories().
Zac Medico [Sat, 24 Dec 2011 11:52:56 +0000 (03:52 -0800)]
Tweak CFLAGS scanelf loop.
Zac Medico [Sat, 24 Dec 2011 11:30:30 +0000 (03:30 -0800)]
Update date headers in man pages.
Zac Medico [Sat, 24 Dec 2011 11:17:26 +0000 (03:17 -0800)]
Add FEATURES=config-protect-if-modified support.
This causes the CONFIG_PROTECT behavior to be skipped for files
that have not been modified since they were installed.
Zac Medico [Sat, 24 Dec 2011 10:23:30 +0000 (02:23 -0800)]
FakeVartree: implement self.dbapi._aux_cache_keys
This will fix bug #395879.
Zac Medico [Sat, 24 Dec 2011 10:13:32 +0000 (02:13 -0800)]
Don't check .GCC.command.line for kernel modules.
Linux kernel modules trigger the following warning when compiled with
-frecord-gcc-switches:
WARNING: mod.o (.GCC.command.line): unexpected non-allocatable section.
Zac Medico [Sat, 24 Dec 2011 09:07:39 +0000 (01:07 -0800)]
Do CFLAGS check before strip for bug #395877.
Arfrever Frehtes Taifersar Arahesis [Sat, 24 Dec 2011 01:28:50 +0000 (02:28 +0100)]
Fix a typo in a doc string.
Zac Medico [Fri, 23 Dec 2011 18:07:35 +0000 (10:07 -0800)]
AbstractPollTask: note PipeReaderArrayTestCase
Zac Medico [Fri, 23 Dec 2011 10:15:46 +0000 (02:15 -0800)]
depgraph.py: remove unused variables
Zac Medico [Fri, 23 Dec 2011 00:26:56 +0000 (16:26 -0800)]
QA_FLAGS_IGNORED: include QA_PREBUILT
Also, QA_DT_HASH doesn't need to include QA_PREBUILT anymore, since
it's merged with QA_FLAGS_IGNORED.
Arfrever Frehtes Taifersar Arahesis [Thu, 22 Dec 2011 23:56:37 +0000 (00:56 +0100)]
Fix description of QA_FLAGS_IGNORED.
Zac Medico [Thu, 22 Dec 2011 23:42:06 +0000 (15:42 -0800)]
Share variables for CFLAGS and LDFLAGS checks.
The rationale is that any exceptions to either of these checks will
probably apply to both checks. So, QA_CFLAGS_IGNORED and QA_DT_HASH
are merged into QA_FLAGS_IGNORED, and QA_STRICT_CFLAGS_IGNORED and
QA_STRICT_DT_HASH are merged into QA_STRICT_FLAGS_IGNORED.
Zac Medico [Thu, 22 Dec 2011 22:15:43 +0000 (14:15 -0800)]
ebuild-helpers/new*: QA warn for extra args
Zac Medico [Thu, 22 Dec 2011 21:36:40 +0000 (13:36 -0800)]
_pty.py: remove unused _tested_pty variable
Zac Medico [Thu, 22 Dec 2011 21:34:17 +0000 (13:34 -0800)]
_pty.py: remove _test_pty_eof()
If array.fromfile() is not used, then _test_pty_eof() is useless.
This function was for runtime detection of python issue 5380:
http://bugs.python.org/issue5380
However, array.fromfile() use has since been abandoned due to
bugs that exist in all known versions of Python (including Python
2.7 and Python 3.2). See PipeReaderArrayTestCase, for example.
Zac Medico [Thu, 22 Dec 2011 20:06:45 +0000 (12:06 -0800)]
config.setcpv(): use dbapi._aux_cache_keys
This helps to avoid triggering the environment.bz2 extraction in
vardbapi.aux_get().
Zac Medico [Thu, 22 Dec 2011 19:43:11 +0000 (11:43 -0800)]
_aux_env_search: decode unicode more
Zac Medico [Thu, 22 Dec 2011 19:39:32 +0000 (11:39 -0800)]
filter_readonly_variables: refactor binpkg logic
Zac Medico [Thu, 22 Dec 2011 19:10:18 +0000 (11:10 -0800)]
fetch: don't apply permissions to symlinks
We don't want to modify anything outside of the primary DISTDIR,
and symlinks typically point to PORTAGE_RO_DISTDIRS. This will
fix bug #395705.
Zac Medico [Thu, 22 Dec 2011 05:43:51 +0000 (21:43 -0800)]
filter_readonly_variables: don't trust binpkg var
Zac Medico [Thu, 22 Dec 2011 04:29:51 +0000 (20:29 -0800)]
make.globals: don't define TMPDIR with EPREFIX
Same reason as commit
e1c6bba8c26525cca498894237c6421f86c98dfb.
Zac Medico [Thu, 22 Dec 2011 04:22:18 +0000 (20:22 -0800)]
make.globals: don't define PORTDIR with EPREFIX
We want make.globals defaults to evaluate the same, regardless of
the current prefix that we're using it for (bug #395633).
Zac Medico [Thu, 22 Dec 2011 04:06:36 +0000 (20:06 -0800)]
filter_readonly_variables: preserve binpkg vars
Zac Medico [Thu, 22 Dec 2011 00:44:37 +0000 (16:44 -0800)]
search.py: use _aux_cache_keys more
This helps to avoid triggering the environment.bz2 extraction in
vardbapi.aux_get().
Zac Medico [Thu, 22 Dec 2011 00:32:48 +0000 (16:32 -0800)]
vardbapi._aux_get: unicode EAPI key
Zac Medico [Thu, 22 Dec 2011 00:29:30 +0000 (16:29 -0800)]
vardbapi._aux_get: search environment in one pass
Zac Medico [Wed, 21 Dec 2011 23:16:13 +0000 (15:16 -0800)]
vardbapi._aux_get: account for _aux_cache_keys_re
Zac Medico [Wed, 21 Dec 2011 22:58:41 +0000 (14:58 -0800)]
vardbapi.aux_get: search environment, bug 395463
Zac Medico [Wed, 21 Dec 2011 21:45:24 +0000 (13:45 -0800)]
cnf/make.conf: fix ia64 and s390 diffs
Zac Medico [Wed, 21 Dec 2011 21:28:47 +0000 (13:28 -0800)]
Use *FLAGS for CFLAGS ignorance checks.
Current *FLAGS variables include CFLAGS, CXXFLAGS, FFLAGS, and FCFLAGS.
Not that this check is only enabled if every one of these variables
contains -frecord-gcc-switches, since otherwise the check could result
in false positive results.
Zac Medico [Wed, 21 Dec 2011 20:55:56 +0000 (12:55 -0800)]
data.py: stat EROOT for PORTAGE_GRPNAME/USERNAME
The config class has equivalent code, but we also need to do it here if
_disable_legacy_globals() has been called.
Zac Medico [Wed, 21 Dec 2011 20:07:37 +0000 (12:07 -0800)]
s/QA_STRICT_DT_SWITCHES/QA_STRICT_CFLAGS_IGNORED/
Zac Medico [Wed, 21 Dec 2011 20:03:45 +0000 (12:03 -0800)]
s/QA_DT_SWITCHES/QA_CFLAGS_IGNORED/
Michał Górny [Sun, 23 Oct 2011 09:16:15 +0000 (11:16 +0200)]
--ask is fine for --depclean as well.
Zac Medico [Wed, 21 Dec 2011 19:36:31 +0000 (11:36 -0800)]
install_qa_check: more RESTRICT=binchecks
Michał Górny [Wed, 21 Dec 2011 16:20:38 +0000 (17:20 +0100)]
Strip .GCC.command.line from output files as well.
Michał Górny [Wed, 21 Dec 2011 16:10:17 +0000 (17:10 +0100)]
Support checking for ignored CFLAGS using -frecord-gcc-switches.
Zac Medico [Tue, 20 Dec 2011 23:26:54 +0000 (15:26 -0800)]
hashed_path: implement __repr__
Zac Medico [Tue, 20 Dec 2011 20:26:48 +0000 (12:26 -0800)]
Silently allow missing /var/cache/edb/counter.
Files under /var/cache/ are allowed to disappear.
Zac Medico [Tue, 20 Dec 2011 20:14:05 +0000 (12:14 -0800)]
Add some EAPI 4-python docs.
Zac Medico [Tue, 20 Dec 2011 07:24:38 +0000 (23:24 -0800)]
Force COLUMNS > 0 for bug #394091.
Zac Medico [Tue, 20 Dec 2011 00:00:38 +0000 (16:00 -0800)]
prepstrip: merge diff from prefix branch
NOTE: Debug files must be installed in
${EPREFIX}/usr/lib/debug/${EPREFIX} (note that ${EPREFIX} occurs twice
in this path) in order for gdb's debug-file-directory lookup to work
correctly.
Zac Medico [Mon, 19 Dec 2011 20:44:47 +0000 (12:44 -0800)]
Display EROOT when ROOT != "/".
Since commit
a715b65f7bd36409c1283e6911265d1f4405ab7a, the Package.root
and RootConfig.root attributes refer to EROOT instead of ROOT.
Therefore, adjust display code so that EROOT is only displayed when
ROOT != "/".
Arfrever Frehtes Taifersar Arahesis [Mon, 19 Dec 2011 01:33:27 +0000 (02:33 +0100)]
Disallow some functions in global scope in EAPI="4-python".
Zac Medico [Mon, 19 Dec 2011 00:12:57 +0000 (16:12 -0800)]
_run_pkg_pretend: doebuild_environment for clean
Zac Medico [Sun, 18 Dec 2011 22:13:30 +0000 (14:13 -0800)]
set_colors(): suppress "/dev/tty: No such device"
Arfrever Frehtes Taifersar Arahesis [Sun, 18 Dec 2011 21:55:58 +0000 (22:55 +0100)]
Define portage.repository.config.RepoConfig.__repr__().
Zac Medico [Sun, 18 Dec 2011 21:47:07 +0000 (13:47 -0800)]
test_poll: separate classes for pipe vs. pty
Also, generate appropriate SKIP message if pty is not acquired.
Zac Medico [Sun, 18 Dec 2011 21:28:17 +0000 (13:28 -0800)]
PipeReaderArrayTestCase: sleep for fast computers
Allows reliable triggering of the failure mode on fast computers.
Arfrever Frehtes Taifersar Arahesis [Sun, 18 Dec 2011 21:25:07 +0000 (22:25 +0100)]
RepoConfigLoader._add_overlays(): Rename a variable and add a comment.
Arfrever Frehtes Taifersar Arahesis [Sun, 18 Dec 2011 21:14:00 +0000 (22:14 +0100)]
Optimize RepoConfigLoader._add_overlays().
Arfrever Frehtes Taifersar Arahesis [Sun, 18 Dec 2011 20:43:51 +0000 (21:43 +0100)]
set_colors(): Redirect input to `stty size` to make it work after
commit
a3797a63a30579be3ba5418aad7e76fd520f9aee.
Zac Medico [Sun, 18 Dec 2011 20:18:38 +0000 (12:18 -0800)]
environment: don't save COLUMNS
Zac Medico [Sun, 18 Dec 2011 20:15:13 +0000 (12:15 -0800)]
whitelist COLUMNS
Zac Medico [Sun, 18 Dec 2011 18:19:09 +0000 (10:19 -0800)]
RELEASE-NOTES: revert --quiet-build default
See commit
028f0b0e223861826747b531824319520ef26ddd.
Arfrever Frehtes Taifersar Arahesis [Sun, 18 Dec 2011 03:01:31 +0000 (04:01 +0100)]
Parse layout.conf files in portage.repository.config.RepoConfig.__init__()
instead of portage.repository.config.RepoConfigLoader.__init__().
Arfrever Frehtes Taifersar Arahesis [Sun, 18 Dec 2011 02:06:38 +0000 (03:06 +0100)]
Fix some warnings found by pylint.
Zac Medico [Sat, 17 Dec 2011 19:32:59 +0000 (11:32 -0800)]
_show_unsatisfied_dep: avoid invalid, bug #394995
Zac Medico [Fri, 16 Dec 2011 23:29:24 +0000 (15:29 -0800)]
tests/emerge: PORTAGE_GRPNAME/USERNAME make.conf