portage.git
11 years agocheck-implicit-pointer-usage: safe cwd bug 469338
Zac Medico [Sun, 12 May 2013 20:21:38 +0000 (13:21 -0700)]
check-implicit-pointer-usage: safe cwd bug 469338

11 years agofilter_readonly_variables: safe cwd, bug #469338
Zac Medico [Sun, 12 May 2013 20:11:50 +0000 (13:11 -0700)]
filter_readonly_variables: safe cwd, bug #469338

11 years agoebuild.sh: use PORTAGE_PYM_PATH as default cwd
Zac Medico [Sun, 12 May 2013 19:47:46 +0000 (12:47 -0700)]
ebuild.sh: use PORTAGE_PYM_PATH as default cwd

11 years agoebuild-ipc: use safe cwd for import, bug #469338
Zac Medico [Sun, 12 May 2013 11:09:14 +0000 (04:09 -0700)]
ebuild-ipc: use safe cwd for import, bug #469338

11 years agometadata.dtd: update to latest
Zac Medico [Fri, 10 May 2013 04:09:04 +0000 (21:09 -0700)]
metadata.dtd: update to latest

11 years agobinarytree: evaluate RESTRICT conditionals
Zac Medico [Tue, 7 May 2013 03:49:12 +0000 (20:49 -0700)]
binarytree: evaluate RESTRICT conditionals

11 years agobinarytree: index RESTRICT, for ACCEPT_RESTRICT
Zac Medico [Mon, 6 May 2013 08:18:06 +0000 (01:18 -0700)]
binarytree: index RESTRICT, for ACCEPT_RESTRICT

11 years agoSupport ACCEPT_RESTRICT for bug #467622. v2.2.0_alpha174
Zac Medico [Fri, 3 May 2013 03:45:39 +0000 (20:45 -0700)]
Support ACCEPT_RESTRICT for bug #467622.

11 years ago_getMissingProperties: remove || support
Zac Medico [Fri, 3 May 2013 02:21:16 +0000 (19:21 -0700)]
_getMissingProperties: remove || support

PROPERTIES is not allowed to contain ||, according to PMS.

11 years agoSilence embedded profile warning for bug #467142.
Zac Medico [Fri, 3 May 2013 01:52:23 +0000 (18:52 -0700)]
Silence embedded profile warning for bug #467142.

11 years agoSupport RESTRICT=preserve-libs, bug #364427
Zac Medico [Wed, 1 May 2013 23:44:18 +0000 (16:44 -0700)]
Support RESTRICT=preserve-libs, bug #364427

Note than when a package is merged, RESTRICT=preserve-libs applies if
*either* the new instance or the old instance sets
RESTRICT=preserve-libs.

Also note that when the user has preserve-libs enabled, the
--depclean-lib-check option may now kick in if one of the packages
selected for unmerge sets RESTRICT=preserve-libs.

11 years agoman/emerge: clarify --rebuild-if-new-slot #467924
Zac Medico [Wed, 1 May 2013 21:05:15 +0000 (14:05 -0700)]
man/emerge: clarify --rebuild-if-new-slot #467924

11 years agoUse non-greedy findConsumers for bug #467896.
Zac Medico [Wed, 1 May 2013 04:00:52 +0000 (21:00 -0700)]
Use non-greedy findConsumers for bug #467896.

This fixes the preserve-libs display and @preserved-rebuild to omit
library consumers that are satisfied by alternative providers.

11 years agobin/misc-functions.sh: use pipe for find ${D}${D}
Zac Medico [Tue, 30 Apr 2013 05:06:40 +0000 (22:06 -0700)]
bin/misc-functions.sh: use pipe for find ${D}${D}

11 years agobin/misc-functions.sh: normalize ${D%/}${D} slash
Zac Medico [Tue, 30 Apr 2013 04:53:49 +0000 (21:53 -0700)]
bin/misc-functions.sh: normalize ${D%/}${D} slash

This will fix bug #467886.

11 years agorepoman: report --ignore/include-arches commits
Zac Medico [Mon, 29 Apr 2013 04:26:45 +0000 (21:26 -0700)]
repoman: report --ignore/include-arches commits

11 years agotests: clean up style a bit (mostly poor/inconsistent spacing)
Mike Frysinger [Mon, 29 Apr 2013 00:08:33 +0000 (20:08 -0400)]
tests: clean up style a bit (mostly poor/inconsistent spacing)

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoget_open_fds: use /dev/fd or /proc/self/fd
Zac Medico [Sun, 28 Apr 2013 22:39:24 +0000 (15:39 -0700)]
get_open_fds: use /dev/fd or /proc/self/fd

Since /dev/fd is supposed to be a fairly standard unix feature, try
that first.

11 years agorepoman: add --include-arches, bug #466116
Zac Medico [Sun, 28 Apr 2013 22:05:44 +0000 (15:05 -0700)]
repoman: add --include-arches, bug #466116

11 years agoAdd man/ru/dispatch-conf.1
Vladimir Romanov [Wed, 24 Apr 2013 03:51:00 +0000 (20:51 -0700)]
Add man/ru/dispatch-conf.1

11 years agoman/dispatch-conf.1: reflow text
Vladimir Romanov [Wed, 24 Apr 2013 03:46:59 +0000 (20:46 -0700)]
man/dispatch-conf.1: reflow text

11 years agoman/make.conf.5: document DCO_SIGNED_OFF_BY
Zac Medico [Tue, 23 Apr 2013 03:19:08 +0000 (20:19 -0700)]
man/make.conf.5: document DCO_SIGNED_OFF_BY

Signed-off-by: Zac Medico <zmedico@gentoo.org>
11 years agoAdd preliminary DCO_SIGNED_OFF_BY support for DCO Signed-off-by footer.
Robin H. Johnson [Mon, 22 Apr 2013 23:08:51 +0000 (23:08 +0000)]
Add preliminary DCO_SIGNED_OFF_BY support for DCO Signed-off-by footer.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
11 years agoRefactor PORTAGE_GPG_KEY.
Robin H. Johnson [Mon, 22 Apr 2013 23:08:50 +0000 (23:08 +0000)]
Refactor PORTAGE_GPG_KEY.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
11 years agoDeprecate python.eclass & distutils.eclass.
Michał Górny [Sat, 20 Apr 2013 17:22:48 +0000 (19:22 +0200)]
Deprecate python.eclass & distutils.eclass.

11 years agoDon't filter SHELL from bash env, bug #466844.
Zac Medico [Mon, 22 Apr 2013 21:02:13 +0000 (14:02 -0700)]
Don't filter SHELL from bash env, bug #466844.

11 years agosearch: fix RuntimeError: No active exception
Zac Medico [Mon, 22 Apr 2013 16:35:27 +0000 (09:35 -0700)]
search: fix RuntimeError: No active exception

11 years agobin/ebuild: tweak FEATURES=digest logic
Zac Medico [Tue, 16 Apr 2013 19:26:02 +0000 (12:26 -0700)]
bin/ebuild: tweak FEATURES=digest logic

11 years agobin/ebuild: only digest once for FEATURES=digest
Zac Medico [Tue, 16 Apr 2013 18:15:56 +0000 (11:15 -0700)]
bin/ebuild: only digest once for FEATURES=digest

11 years agomovefile: remove source symlink/hardlink after mv
Zac Medico [Tue, 16 Apr 2013 14:00:45 +0000 (07:00 -0700)]
movefile: remove source symlink/hardlink after mv

11 years agorefactor contents file writing to its own function
Aviv Keshet [Fri, 12 Apr 2013 00:51:34 +0000 (17:51 -0700)]
refactor contents file writing to its own function

This CL refactors out the functionality of writing a contents dicionary
to file. That functionality is required by a change in the chromeos
chromite repository.

BUG=chromium:229234
TEST=None

Change-Id: I851724408b1d10827eee2ea8d67bdca9ad90c455

11 years agorepoman: fix random package.use.stable.* failure v2.2.0_alpha173
Zac Medico [Fri, 12 Apr 2013 07:20:35 +0000 (00:20 -0700)]
repoman: fix random package.use.stable.* failure

It failed to work randomly, since setcpv did not always use the correct
value for the effective ACCEPT_KEYWORDS of the current profile.

11 years agodepgraph: don't _skip_restart for blockers v2.2.0_alpha172
Zac Medico [Thu, 11 Apr 2013 23:13:49 +0000 (16:13 -0700)]
depgraph: don't _skip_restart for blockers

This prevents blockers from interfering with backtracking, as reported
in bug #465356, comment #15.

11 years agoRevert "Add a QA check for systemd unit file install."
Zac Medico [Thu, 11 Apr 2013 17:51:08 +0000 (10:51 -0700)]
Revert "Add a QA check for systemd unit file install."

This reverts commit dd2d661078771a41d4fd554c2bc3b1188ce7b53e.
Forcing use of a specific eclass is too restrictive. It would be better
to use a variable to control a warning like this. See bug #465562.

11 years agoman/make.conf.5: noauto sources ebuild each phase
Zac Medico [Mon, 8 Apr 2013 00:32:11 +0000 (17:32 -0700)]
man/make.conf.5: noauto sources ebuild each phase

11 years agoman/emerge.1: move --digest to option section
Zac Medico [Thu, 4 Apr 2013 16:47:49 +0000 (09:47 -0700)]
man/emerge.1: move --digest to option section

11 years agoman/emerge.1: document --digest, bug #161236
Pavlos Ratis [Thu, 4 Apr 2013 14:20:07 +0000 (07:20 -0700)]
man/emerge.1: document --digest, bug #161236

11 years agoman/portage.5: layout.conf repo-name, bug #433561
Zac Medico [Wed, 3 Apr 2013 03:11:47 +0000 (20:11 -0700)]
man/portage.5: layout.conf repo-name, bug #433561

11 years agoebuild(5): add missing space between doman/dohard
Mike Frysinger [Tue, 2 Apr 2013 19:57:35 +0000 (15:57 -0400)]
ebuild(5): add missing space between doman/dohard

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoemerge --exclude: avoid "world problems" warning
Zac Medico [Tue, 2 Apr 2013 19:29:23 +0000 (12:29 -0700)]
emerge --exclude: avoid "world problems" warning

11 years agobinarytree: copy g+rw from PKGDIR to files v2.2.0_alpha171
Zac Medico [Mon, 1 Apr 2013 17:25:34 +0000 (10:25 -0700)]
binarytree: copy g+rw from PKGDIR to files

11 years agoegencache,emirrordist: export NOCOLOR if no tty
Zac Medico [Mon, 1 Apr 2013 16:26:05 +0000 (09:26 -0700)]
egencache,emirrordist: export NOCOLOR if no tty

11 years agoegencache,emirrordist: disable color if no tty
Zac Medico [Mon, 1 Apr 2013 15:33:55 +0000 (08:33 -0700)]
egencache,emirrordist: disable color if no tty

11 years agoecompressdir: fix decompress, bug #462936
Zac Medico [Mon, 1 Apr 2013 07:22:18 +0000 (00:22 -0700)]
ecompressdir: fix decompress, bug #462936

This array index variables have been broken in this code ever since it
was added in commit 76939c46aa2817bdbcea703432c52e5aa04160f9.

11 years agoSupport overriding repo-name from layout.conf.
Michał Górny [Fri, 29 Mar 2013 09:23:47 +0000 (10:23 +0100)]
Support overriding repo-name from layout.conf.

Consider this an undocumented and unsupported feature which will make my
life much easier. And decrease the amount of repo_name changes committed
by mistake. See bug #433561.

11 years agoebuild: standardize error output a bit
Mike Frysinger [Wed, 27 Mar 2013 19:14:22 +0000 (15:14 -0400)]
ebuild: standardize error output a bit

A bunch of the messages are written to stdout instead of stderr, and
lack any sort of general context.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agomake.defaults: profile-formats control recursive v2.2.0_alpha170
Zac Medico [Wed, 27 Mar 2013 15:21:12 +0000 (08:21 -0700)]
make.defaults: profile-formats control recursive

11 years agogetconfig: handle recursive PermissionDenied
Zac Medico [Wed, 27 Mar 2013 15:02:12 +0000 (08:02 -0700)]
getconfig: handle recursive PermissionDenied

11 years agoSupport RESTRICT=splitdebug
Zac Medico [Wed, 27 Mar 2013 08:58:36 +0000 (01:58 -0700)]
Support RESTRICT=splitdebug

11 years agoPORTAGE_XATTR_EXCLUDE="security.*", bug #461868
Zac Medico [Wed, 27 Mar 2013 08:21:46 +0000 (01:21 -0700)]
PORTAGE_XATTR_EXCLUDE="security.*", bug #461868

11 years ago_autounmask_levels: respect keywords, bug #463394
Zac Medico [Wed, 27 Mar 2013 05:51:18 +0000 (22:51 -0700)]
_autounmask_levels: respect keywords, bug #463394

This adds an additional autounmask level which tries to respect
keywords while discarding package.mask as discussed in bug #463394.

11 years ago_autounmask_levels: refactor (no behavior change)
Zac Medico [Wed, 27 Mar 2013 05:19:02 +0000 (22:19 -0700)]
_autounmask_levels: refactor (no behavior change)

11 years agomake.defaults: recurse directories
Zac Medico [Wed, 27 Mar 2013 04:15:25 +0000 (21:15 -0700)]
make.defaults: recurse directories

This makes behavior more consistent with handling of other files, as
discussed in bug #463266.

11 years agomake.conf: recurse directories, bug #463266
Zac Medico [Tue, 26 Mar 2013 19:14:50 +0000 (12:14 -0700)]
make.conf: recurse directories, bug #463266

11 years agoebuild.1: correct ebuild.sh path, bug #462802
Zac Medico [Sun, 24 Mar 2013 19:23:36 +0000 (12:23 -0700)]
ebuild.1: correct ebuild.sh path, bug #462802

11 years agoSubProcess: re-organize Darwin/fcntl logic
Zac Medico [Sat, 23 Mar 2013 23:00:17 +0000 (16:00 -0700)]
SubProcess: re-organize Darwin/fcntl logic

11 years agoSpawnProcess: disable FD_CLOEXEC on stdout for #456296
Fabian Groffen [Sat, 23 Mar 2013 21:59:58 +0000 (22:59 +0100)]
SpawnProcess: disable FD_CLOEXEC on stdout for #456296

11 years agoebuild.5: correct ebuild.sh path, bug #462802
Zac Medico [Sat, 23 Mar 2013 19:45:34 +0000 (12:45 -0700)]
ebuild.5: correct ebuild.sh path, bug #462802

11 years agolockfile: remove newline from ebegin message
Zac Medico [Fri, 22 Mar 2013 15:42:23 +0000 (08:42 -0700)]
lockfile: remove newline from ebegin message

11 years agoHandle ENOLCK with loop for bug #462694.
Zac Medico [Fri, 22 Mar 2013 15:36:45 +0000 (08:36 -0700)]
Handle ENOLCK with loop for bug #462694.

11 years agoportage.const: realpath(__file__.rstrip("co")) v2.2.0_alpha169
Zac Medico [Fri, 22 Mar 2013 01:42:20 +0000 (18:42 -0700)]
portage.const: realpath(__file__.rstrip("co"))

With python2.x, __file__ may refer to the compiled bytcode file, but we
want to follow the symlink of the uncompile py file.

11 years agoUse realpath(__file__) to locate whole portage.
Zac Medico [Thu, 21 Mar 2013 20:31:14 +0000 (13:31 -0700)]
Use realpath(__file__) to locate whole portage.

Use realpath(__file__) so that python module symlinks in site-packages
are followed back to the real location of the whole portage
installation.

11 years agoTest dispatch-conf.
Zac Medico [Thu, 21 Mar 2013 07:51:08 +0000 (00:51 -0700)]
Test dispatch-conf.

11 years agoTest portageq and etc-update for bug #462412.
Zac Medico [Thu, 21 Mar 2013 00:38:28 +0000 (17:38 -0700)]
Test portageq and etc-update for bug #462412.

11 years agoFix --verbose-main-repo-display missing PORTDIR.
Zac Medico [Wed, 20 Mar 2013 20:32:27 +0000 (13:32 -0700)]
Fix --verbose-main-repo-display missing PORTDIR.

11 years agoresolver: output: check for None mainRepo()
Brandon Philips [Wed, 20 Mar 2013 18:13:53 +0000 (11:13 -0700)]
resolver: output: check for None mainRepo()

mainRepo() can return none when we are on a machine that is only using
PORTAGE_BINHOST and not a normal PORTAGE. Make sure we don't crash here.

11 years agoprepman: do not compress files <=128 bytes
Mike Frysinger [Wed, 20 Mar 2013 08:29:44 +0000 (04:29 -0400)]
prepman: do not compress files <=128 bytes

The vast majority of these small files do not compress better than
their inputs, and they're just .so redirection.  Omit compression
on them to save disk and cpu and speed things up.

URL: http://bugs.gentoo.org/169260
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoconfig: fix typo maid -> main
Brandon Philips [Wed, 20 Mar 2013 18:13:21 +0000 (11:13 -0700)]
config: fix typo maid -> main

this looks like a typo. maid_repo should be main_repo.

11 years agoprepallman: avoid temp file indirection
Mike Frysinger [Wed, 20 Mar 2013 08:29:23 +0000 (04:29 -0400)]
prepallman: avoid temp file indirection

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoportageq: fix envvar -v, bug #462412 v2.2.0_alpha168
Zac Medico [Wed, 20 Mar 2013 03:30:32 +0000 (20:30 -0700)]
portageq: fix envvar -v, bug #462412

11 years agomanifest2MiscfileFilter: remove redundant checks v2.2.0_alpha167
Zac Medico [Tue, 19 Mar 2013 21:56:46 +0000 (14:56 -0700)]
manifest2MiscfileFilter: remove redundant checks

Checks for directory names are not needed since only regular files
are passed in here.

11 years ago_iter_similar_available: do built checks together
Zac Medico [Tue, 19 Mar 2013 21:38:33 +0000 (14:38 -0700)]
_iter_similar_available: do built checks together

11 years agoUse autounmask for subslot conflict, bug #461464.
Zac Medico [Tue, 19 Mar 2013 21:05:57 +0000 (14:05 -0700)]
Use autounmask for subslot conflict, bug #461464.

11 years agoTask.__repr__: handle python-trace
Zac Medico [Tue, 19 Mar 2013 20:21:43 +0000 (13:21 -0700)]
Task.__repr__: handle python-trace

11 years agoconfig: make circular vartree import lazy
Zac Medico [Tue, 19 Mar 2013 20:10:28 +0000 (13:10 -0700)]
config: make circular vartree import lazy

11 years agorepoman: export GNUPGHOME to git, bug #462362
Zac Medico [Tue, 19 Mar 2013 19:55:50 +0000 (12:55 -0700)]
repoman: export GNUPGHOME to git, bug #462362

11 years ago_get_slot_re: relocate due to circular import
Zac Medico [Tue, 19 Mar 2013 19:33:57 +0000 (12:33 -0700)]
_get_slot_re: relocate due to circular import

11 years agoautounmask: remove faulty reset_pkg() function
Zac Medico [Tue, 19 Mar 2013 18:47:31 +0000 (11:47 -0700)]
autounmask: remove faulty reset_pkg() function

This function did not work as intended, due to the pkg variable being
updated in the wrong scope.

11 years agoTask: implement __repr__
Zac Medico [Tue, 19 Mar 2013 18:36:44 +0000 (11:36 -0700)]
Task: implement __repr__

11 years agorepoman: exempt multilib-minimal for get_libdir
Zac Medico [Tue, 19 Mar 2013 16:49:22 +0000 (09:49 -0700)]
repoman: exempt multilib-minimal for get_libdir

This will fix bug #461944.

11 years agotests.main(): disable colors when appropriate
Zac Medico [Tue, 19 Mar 2013 08:35:40 +0000 (01:35 -0700)]
tests.main(): disable colors when appropriate

11 years agoappend_repo: use Atom.with_repo()
Zac Medico [Tue, 19 Mar 2013 08:00:00 +0000 (01:00 -0700)]
append_repo: use Atom.with_repo()

11 years agoappend_repo: preserve existing repo atom
Zac Medico [Tue, 19 Mar 2013 06:37:52 +0000 (23:37 -0700)]
append_repo: preserve existing repo atom

This will fix bug #461948.

11 years agocmp_sort_key: reference functools.cmp_to_key()
Zac Medico [Tue, 19 Mar 2013 06:22:32 +0000 (23:22 -0700)]
cmp_sort_key: reference functools.cmp_to_key()

11 years agograbfile_package: unicode(), not str() for py2
Zac Medico [Tue, 19 Mar 2013 05:55:57 +0000 (22:55 -0700)]
grabfile_package: unicode(), not str() for py2

11 years agodisplay_preserved_libs: distinguish prsvd cnsmrs
Zac Medico [Mon, 18 Mar 2013 23:35:38 +0000 (16:35 -0700)]
display_preserved_libs: distinguish prsvd cnsmrs

This will fix bug #461908.

11 years agoDisplay._blockers(): distinguish hard blocking
Zac Medico [Mon, 18 Mar 2013 21:27:57 +0000 (14:27 -0700)]
Display._blockers(): distinguish hard blocking

11 years agoresolver/output: rename Display._blockers() param
Zac Medico [Mon, 18 Mar 2013 21:12:26 +0000 (14:12 -0700)]
resolver/output: rename Display._blockers() param

11 years agoresolver/output: unicode(), not str() for python2
Zac Medico [Mon, 18 Mar 2013 20:57:50 +0000 (13:57 -0700)]
resolver/output: unicode(), not str() for python2

11 years agoportageq: optimize pquery --no-version
Zac Medico [Mon, 18 Mar 2013 19:39:02 +0000 (12:39 -0700)]
portageq: optimize pquery --no-version

11 years agoportageq: fix visiblity filter with no atoms
Zac Medico [Mon, 18 Mar 2013 12:01:24 +0000 (05:01 -0700)]
portageq: fix visiblity filter with no atoms

11 years agoportageq: add pquery to global command list
Zac Medico [Mon, 18 Mar 2013 11:06:41 +0000 (04:06 -0700)]
portageq: add pquery to global command list

11 years agoinsert_category_into_atom: handle wildcard
Zac Medico [Mon, 18 Mar 2013 10:21:42 +0000 (03:21 -0700)]
insert_category_into_atom: handle wildcard

11 years agoportageq: optimize cat/name expansion for pquery
Zac Medico [Mon, 18 Mar 2013 10:09:22 +0000 (03:09 -0700)]
portageq: optimize cat/name expansion for pquery

11 years agoportageq: visiblity filter for pquery mode
Zac Medico [Mon, 18 Mar 2013 08:32:41 +0000 (01:32 -0700)]
portageq: visiblity filter for pquery mode

11 years agoportageq: support atoms for pquery mode
Zac Medico [Mon, 18 Mar 2013 06:26:53 +0000 (23:26 -0700)]
portageq: support atoms for pquery mode

11 years agoportageq: emulate subset of Pkgcore's pquery
Zac Medico [Sun, 17 Mar 2013 22:36:54 +0000 (15:36 -0700)]
portageq: emulate subset of Pkgcore's pquery

Pkgcore pquery compatible options:

Repository matching options:
  --repo=REPO           repo to use (default is PORTDIR if omitted)
  --all-repos           search all repos

Package matching options:
  --herd=HERD           exact match on a herd
  --maintainer-email=MAINTAINER_EMAIL
                        comma-separated list of maintainer email regexes to
                        search for

Output formatting:
  -n, --no-version      collapse multiple matching versions together

11 years agoportageq: remove unused imports
Zac Medico [Sun, 17 Mar 2013 20:02:17 +0000 (13:02 -0700)]
portageq: remove unused imports

11 years agoportage.update.update_config_files(): Add handling of /etc/portage/sets.
Arfrever Frehtes Taifersar Arahesis [Sun, 17 Mar 2013 04:32:22 +0000 (05:32 +0100)]
portage.update.update_config_files(): Add handling of /etc/portage/sets.

11 years agoportage.update.update_config_files(): Add handling of:
Arfrever Frehtes Taifersar Arahesis [Sun, 17 Mar 2013 03:29:26 +0000 (04:29 +0100)]
portage.update.update_config_files(): Add handling of:
/etc/portage/profile/packages
/etc/portage/profile/package.use.force
/etc/portage/profile/package.use.mask
/etc/portage/profile/package.use.stable.force
/etc/portage/profile/package.use.stable.mask