portage.git
10 years agoRepoConfig: fix bug #485006 v2.2.6
Zac Medico [Sun, 15 Sep 2013 14:08:33 +0000 (07:08 -0700)]
RepoConfig: fix bug #485006

10 years agoemerge-webrsync: fix bug #484950 v2.2.5
Zac Medico [Sun, 15 Sep 2013 10:57:55 +0000 (03:57 -0700)]
emerge-webrsync: fix bug #484950

10 years ago_copyxattr: ignore EOPNOTSUPP from os.listxattr()
Zac Medico [Sun, 15 Sep 2013 09:36:12 +0000 (02:36 -0700)]
_copyxattr: ignore EOPNOTSUPP from os.listxattr()

This will fix bug #484540.

10 years ago_copyxattr: ignore EOPNOTSUPP from xattr.list()
Zac Medico [Sun, 15 Sep 2013 00:51:07 +0000 (17:51 -0700)]
_copyxattr: ignore EOPNOTSUPP from xattr.list()

10 years agoFlag -Waggressive-loop-optimizations warnings.
Ryan Hill [Sun, 15 Sep 2013 00:29:38 +0000 (17:29 -0700)]
Flag  -Waggressive-loop-optimizations warnings.
This will fix bug #484840.

10 years agoBug #484730: In sync mode, use repos.conf section name when repo_name file is missing.
Arfrever Frehtes Taifersar Arahesis [Fri, 13 Sep 2013 09:11:22 +0000 (11:11 +0200)]
Bug #484730: In sync mode, use repos.conf section name when repo_name file is missing.

10 years agodohtml: restore behavior noted in bug #425214 v2.2.4
Zac Medico [Fri, 13 Sep 2013 03:06:50 +0000 (20:06 -0700)]
dohtml: restore behavior noted in bug #425214

This goes along with commit 2110ec6ed42fc306d5c25cbf970d013ff2a226fd,
adding support for trailing /. as well, since it's used at least by
distutils-r1.eclass.

10 years agoEAPI="5-progress": Support case-insensitive matching of extensions in unpack().
Arfrever Frehtes Taifersar Arahesis [Wed, 11 Sep 2013 21:22:18 +0000 (23:22 +0200)]
EAPI="5-progress": Support case-insensitive matching of extensions in unpack().

10 years agodohtml: fix DOCDESTTREE path join v2.2.3
Zac Medico [Wed, 11 Sep 2013 20:46:48 +0000 (13:46 -0700)]
dohtml: fix DOCDESTTREE path join

When DOCDESTTREE begins with a leading slash, it caused os.path.join()
to misbehave since commit 3f67cb453ee1b74894c230459b43855db7fcc410.

10 years ago_ctypes: use_errno=True for ctypes.get_errno()
Mike Gilbert [Wed, 11 Sep 2013 14:06:33 +0000 (07:06 -0700)]
_ctypes: use_errno=True for ctypes.get_errno()

10 years agounprivileged/chown: fix bug #470992 v2.2.2
Benda Xu [Mon, 9 Sep 2013 21:43:02 +0000 (14:43 -0700)]
unprivileged/chown: fix bug #470992

10 years agodoexe/newins: mktemp for bug #484332
Zac Medico [Mon, 9 Sep 2013 17:42:54 +0000 (10:42 -0700)]
doexe/newins: mktemp for bug #484332

10 years agodoins: use mktemp for private files, bug #484332
Zac Medico [Mon, 9 Sep 2013 17:10:22 +0000 (10:10 -0700)]
doins: use mktemp for private files, bug #484332

10 years agoSpawnProcess: convert cgroup pids to int earlier
Zac Medico [Mon, 9 Sep 2013 16:56:49 +0000 (09:56 -0700)]
SpawnProcess: convert cgroup pids to int earlier

10 years agoHandle EPERM from os.kill(), bug #358211.
Zac Medico [Mon, 9 Sep 2013 16:49:39 +0000 (09:49 -0700)]
Handle EPERM from os.kill(), bug #358211.

10 years agoAdjust pty permissions for userpriv.
Zac Medico [Fri, 6 Sep 2013 20:10:04 +0000 (13:10 -0700)]
Adjust pty permissions for userpriv.

10 years agoaction_info: don't use print(), bug #483628
Zac Medico [Wed, 4 Sep 2013 18:59:31 +0000 (11:59 -0700)]
action_info: don't use print(), bug #483628

Mixing print() with direct writing to stdout triggered incorrect
buffering/formatting if stdout was a pipe, at least with Python 3.3.

10 years ago_copyxattr: handle EOPNOTSUPP from xattr.list()
Zac Medico [Tue, 3 Sep 2013 20:03:17 +0000 (13:03 -0700)]
_copyxattr: handle EOPNOTSUPP from xattr.list()

10 years agoinstall.py: show args if copy_xattrs fails
Zac Medico [Tue, 3 Sep 2013 19:43:12 +0000 (12:43 -0700)]
install.py: show args if copy_xattrs fails

10 years agoPipeReaderTestCase: use PopenProcess
Zac Medico [Mon, 2 Sep 2013 22:18:21 +0000 (15:18 -0700)]
PipeReaderTestCase: use PopenProcess

10 years agoSpawnProcess: Don't handle FreeBSD fcntl ENOTTY
Zac Medico [Mon, 2 Sep 2013 19:48:49 +0000 (12:48 -0700)]
SpawnProcess: Don't handle FreeBSD fcntl ENOTTY

This error does not occur since the fcntl call was fixed to properly
use the F_GETFD/F_SETFD commands in commit
30c652a9db1014fc720f7d6055520a07b731c984.

10 years agoDisable calls to fcntl.fcntl(…, fcntl.F_SETFD, … | fcntl.FD_CLOEXEC) with Python...
Arfrever Frehtes Taifersar Arahesis [Mon, 2 Sep 2013 13:56:29 +0000 (15:56 +0200)]
Disable calls to fcntl.fcntl(…, fcntl.F_SETFD, … | fcntl.FD_CLOEXEC) with Python >=3.4,
since FD_CLOEXEC is enabled by default in Python >=3.4.

10 years ago_setup_pipes: fix for Python 3.1 to 3.3
Zac Medico [Mon, 2 Sep 2013 00:55:21 +0000 (17:55 -0700)]
_setup_pipes: fix for Python 3.1 to 3.3

This fixes a case where /dev/null stdin fails to inherit since commit
bd2128b7a750a68470f857162784e55b8ac39de2.

10 years agoFakeVartree: infinite _aux_get_wrapper recursion
Zac Medico [Mon, 2 Sep 2013 00:27:35 +0000 (17:27 -0700)]
FakeVartree: infinite _aux_get_wrapper recursion

10 years ago_setup_pipes: copy descriptor flags after dup2
Zac Medico [Sun, 1 Sep 2013 23:57:02 +0000 (16:57 -0700)]
_setup_pipes: copy descriptor flags after dup2

10 years ago_setup_pipes: os.set_inheritable() for Python 3.4
Zac Medico [Sun, 1 Sep 2013 20:23:50 +0000 (13:23 -0700)]
_setup_pipes: os.set_inheritable() for Python 3.4

10 years agoUse F_GETFD/F_SETFD for FD_CLOEXEC.
Zac Medico [Sun, 1 Sep 2013 19:37:58 +0000 (12:37 -0700)]
Use F_GETFD/F_SETFD for FD_CLOEXEC.

This mixup may have caused bug #456296 (see commit
e43524dc88774f768441dcb386a534166a53f7fa).

10 years agounpack: warn for unofficial sufffix, bug #476738
Zac Medico [Sun, 1 Sep 2013 18:16:07 +0000 (11:16 -0700)]
unpack: warn for unofficial sufffix, bug #476738

10 years agograbdict_package: use recursive name for errors
Zac Medico [Tue, 27 Aug 2013 19:28:44 +0000 (12:28 -0700)]
grabdict_package: use recursive name for errors

This will fix bug #482650.

10 years agodohtml: restore behavior noted in bug #425214
Zac Medico [Tue, 27 Aug 2013 03:59:40 +0000 (20:59 -0700)]
dohtml: restore behavior noted in bug #425214

A trailing slash cause os.path.basename() and os.path.dirname() to
behave differently, causing foo/ to behave similarly to the way that
foo/* behaves. This behavior was broken by normalization in commit
3f67cb453ee1b74894c230459b43855db7fcc410.

10 years agodohtml: optimize for bug #482290
Zac Medico [Sat, 24 Aug 2013 18:24:02 +0000 (11:24 -0700)]
dohtml: optimize for bug #482290

Use os.makedirs and shutil.copy instead of spawning install, since
spawning install is much slower (especially with FEATURES=xattr).

10 years agoemerge --sync: discard timestamp after SIGINT
Zac Medico [Sat, 24 Aug 2013 16:17:11 +0000 (09:17 -0700)]
emerge --sync: discard timestamp after SIGINT

10 years agoemerge --sync: discard timestamp for partial sync
Zac Medico [Sat, 24 Aug 2013 16:07:13 +0000 (09:07 -0700)]
emerge --sync: discard timestamp for partial sync

10 years agoMake keepdir an external ebuild helper program.
Ulrich Müller [Thu, 22 Aug 2013 17:22:27 +0000 (19:22 +0200)]
Make keepdir an external ebuild helper program.

This is required by PMS section 11.3.3.8 "Installation commands".
Fixes bug #481762.

10 years agoSkip main-repo warn if PORTDIR unset, bug #470006
Zac Medico [Thu, 22 Aug 2013 16:22:22 +0000 (09:22 -0700)]
Skip main-repo warn if PORTDIR unset, bug #470006

10 years agoNEWS: cgroups, ipc-sandbox, and network-sandbox v2.2.1
Zac Medico [Thu, 22 Aug 2013 04:23:07 +0000 (21:23 -0700)]
NEWS: cgroups, ipc-sandbox, and network-sandbox

10 years agodep_zapdeps: fix all_available reference
Zac Medico [Thu, 22 Aug 2013 04:15:31 +0000 (21:15 -0700)]
dep_zapdeps: fix all_available reference

This broke in commit c08402d745eef26b99091f62556f48aa9b60345a.

10 years agorepoman: tweak help for --include-exp-profiles
Zac Medico [Thu, 22 Aug 2013 04:06:01 +0000 (21:06 -0700)]
repoman: tweak help for --include-exp-profiles

10 years agodoebuild.spawn: make args backward compatible
Zac Medico [Thu, 22 Aug 2013 03:57:10 +0000 (20:57 -0700)]
doebuild.spawn: make args backward compatible

Allow network and ipc by default, as before. Also, handle new FEATURES
logic inside _doebuild_spawn instead of doebuild.spawn, so that ipc and
networked arguments can be respected without need to consult FEATURES.

10 years agoSpawnProcess: add unshare_ipc and unshare_net
Zac Medico [Thu, 22 Aug 2013 03:29:49 +0000 (20:29 -0700)]
SpawnProcess: add unshare_ipc and unshare_net

10 years agorepoman: fix manifest for --echangelog
Zac Medico [Thu, 22 Aug 2013 02:19:19 +0000 (19:19 -0700)]
repoman: fix manifest for --echangelog

10 years agorepoman: --include-exp-profiles, bug #481326
Zac Medico [Thu, 22 Aug 2013 01:54:59 +0000 (18:54 -0700)]
repoman: --include-exp-profiles, bug #481326

10 years agodep_zapdeps: prefer all_installed_slots choices
Zac Medico [Thu, 22 Aug 2013 01:32:22 +0000 (18:32 -0700)]
dep_zapdeps: prefer all_installed_slots choices

This will fix bug #480736, by preferring libpostproc in deps like
|| ( ffmpeg:0 libpostproc ) where libpostproc is already installed and
ffmpeg:0 is not.

10 years agoAdd test for bug #481628.
Zac Medico [Thu, 22 Aug 2013 00:45:39 +0000 (17:45 -0700)]
Add test for bug #481628.

10 years agododoc: Add a QA warning when called with no arguments.
Ulrich Müller [Tue, 20 Aug 2013 14:02:14 +0000 (16:02 +0200)]
dodoc: Add a QA warning when called with no arguments.

See bug #481664 and bug #480892.

10 years agocgroup: use SIGKILL to guarantee killing processes.
Michał Górny [Mon, 19 Aug 2013 09:37:01 +0000 (11:37 +0200)]
cgroup: use SIGKILL to guarantee killing processes.

10 years agoAdd FEATURES=cgroup to isolate phase processes.
Michał Górny [Mon, 19 Aug 2013 08:45:52 +0000 (10:45 +0200)]
Add FEATURES=cgroup to isolate phase processes.

We create a cgroup for each ebuild. The ebuild processes are put in that
cgroup, therefore allowing us to keep track of their replication. Once
ebuild phase is over, we can happily kill all orphans.

10 years agoAdd FEATURES=ipc-sandbox to isolate IPC from host.
Michał Górny [Sun, 18 Aug 2013 23:22:59 +0000 (01:22 +0200)]
Add FEATURES=ipc-sandbox to isolate IPC from host.

This way, only privileged phases (pkg_*) can use *nix IPC to communicate
with host applications. src_* use private IPC namespace.

10 years agoarchive-conf: fix for python3, bug #481518
Zac Medico [Sun, 18 Aug 2013 06:51:45 +0000 (23:51 -0700)]
archive-conf: fix for python3, bug #481518

10 years ago_exec: close socket
Zac Medico [Sun, 18 Aug 2013 06:03:47 +0000 (23:03 -0700)]
_exec: close socket

10 years agoAdd FEATURES=network-sandbox support, bug #481450
Michał Górny [Sat, 17 Aug 2013 10:28:05 +0000 (12:28 +0200)]
Add FEATURES=network-sandbox support, bug #481450

This way, only privileged phases (pkg_* and src_unpack) have network
access during the ebuild run. All of the src_* phases are completely
detached from host's network interfaces.

10 years agoFix last commit.
Zac Medico [Tue, 13 Aug 2013 18:16:45 +0000 (11:16 -0700)]
Fix last commit.

10 years agovalidate_desktop_entry: allow OnlyShowIn Pantheon
Zac Medico [Tue, 13 Aug 2013 15:46:28 +0000 (08:46 -0700)]
validate_desktop_entry: allow OnlyShowIn Pantheon

This will fix bug #480586.

10 years agoegencache: handle empty --portdir-overlay v2.2.0
Zac Medico [Mon, 12 Aug 2013 23:14:46 +0000 (16:14 -0700)]
egencache: handle empty --portdir-overlay

10 years agoemirrordist: allow missing --repo if exactly one
Zac Medico [Mon, 12 Aug 2013 23:08:12 +0000 (16:08 -0700)]
emirrordist: allow missing --repo if exactly one

10 years agoegencache: allow missing --repo if exactly 1 repo
Zac Medico [Mon, 12 Aug 2013 23:01:20 +0000 (16:01 -0700)]
egencache: allow missing --repo if exactly 1 repo

10 years agoman/make.conf.5: fix substitution spelling
Zac Medico [Mon, 12 Aug 2013 22:40:15 +0000 (15:40 -0700)]
man/make.conf.5: fix substitution spelling

10 years agoman/make.conf.5: fix documentation spelling
Zac Medico [Mon, 12 Aug 2013 22:21:48 +0000 (15:21 -0700)]
man/make.conf.5: fix documentation spelling

10 years agoman/portage.5: fix environment spelling
Zac Medico [Mon, 12 Aug 2013 22:19:56 +0000 (15:19 -0700)]
man/portage.5: fix environment spelling

10 years agoman/portage.5: clarify package.env more
Zac Medico [Mon, 12 Aug 2013 22:14:10 +0000 (15:14 -0700)]
man/portage.5: clarify package.env more

10 years agoExempt /usr/local/portage from repo_name warning.
Zac Medico [Mon, 12 Aug 2013 21:24:43 +0000 (14:24 -0700)]
Exempt /usr/local/portage from repo_name warning.

This will fix bug #248603.

10 years agorepoman: add --experimental-inherit=<y|n> option
Zac Medico [Mon, 12 Aug 2013 20:54:12 +0000 (13:54 -0700)]
repoman: add --experimental-inherit=<y|n> option

Enable experimental inherit.missing checks which may misbehave when the
internal eclass database becomes outdated.

10 years agoCorrect ebuild.sh path in man pages, bug #462802
Zac Medico [Mon, 12 Aug 2013 16:29:39 +0000 (09:29 -0700)]
Correct ebuild.sh path in man pages, bug #462802

10 years agovartree.py: Add link for collisions, bug #449918
Alexander Berntsen [Sun, 11 Aug 2013 22:18:40 +0000 (00:18 +0200)]
vartree.py: Add link for collisions, bug #449918

Link to <http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers> on
file collisions.

10 years agovalidate_desktop_entry: handle NotShowIn Pantheon
Zac Medico [Mon, 12 Aug 2013 03:01:08 +0000 (20:01 -0700)]
validate_desktop_entry: handle NotShowIn Pantheon

This will fix bug #480586.

10 years agoman/portage.5: Add notes about order, bug #388781
Alexander Berntsen [Sun, 11 Aug 2013 23:04:06 +0000 (01:04 +0200)]
man/portage.5: Add notes about order, bug #388781

10 years agoman/make.conf.5: Document shlex a bit, bug 309941
Alexander Berntsen [Sun, 11 Aug 2013 21:32:42 +0000 (23:32 +0200)]
man/make.conf.5: Document shlex a bit, bug 309941

10 years agoCast uid/gid proxies to int for Python 3.4.
Zac Medico [Sun, 11 Aug 2013 22:00:30 +0000 (15:00 -0700)]
Cast uid/gid proxies to int for Python 3.4.

See http://hg.python.org/cpython/rev/f871f8662509.

10 years agorepoman: change preserve_old_lib msg, bug #480244 v2.2.0_alpha196
Samuli Suominen [Thu, 8 Aug 2013 17:31:49 +0000 (10:31 -0700)]
repoman: change preserve_old_lib msg, bug #480244

10 years agoman/emerge.1: fix ._cfg???? command, bug #480192
Zac Medico [Thu, 8 Aug 2013 17:11:33 +0000 (10:11 -0700)]
man/emerge.1: fix ._cfg???? command, bug #480192

10 years agoRepoConfigLoader: handle main_repo in __delitem__
Zac Medico [Thu, 8 Aug 2013 16:04:36 +0000 (09:04 -0700)]
RepoConfigLoader: handle main_repo in __delitem__

This will fix bug #480254.

10 years agothirdpartymirrors: use RepoConfig.prepos_order v2.2.0_alpha195
Zac Medico [Tue, 6 Aug 2013 20:01:59 +0000 (13:01 -0700)]
thirdpartymirrors: use RepoConfig.prepos_order

This equivalent to, but more efficient than splitting PORTDIR_OVERLAY.

10 years agorepoman: remove set literal for python-2.6 compat
Zac Medico [Tue, 6 Aug 2013 04:29:45 +0000 (21:29 -0700)]
repoman: remove set literal for python-2.6 compat

10 years agorepoman: don't deprecate ruby_targets_rbx
Zac Medico [Mon, 5 Aug 2013 17:56:49 +0000 (10:56 -0700)]
repoman: don't deprecate ruby_targets_rbx

It was mistakenly deprecated (see bug #469616).

10 years agoInclude implicit IUSE vars in binhost Packages. v2.2.0_alpha194
Zac Medico [Sun, 4 Aug 2013 22:08:43 +0000 (15:08 -0700)]
Include implicit IUSE vars in binhost Packages.

These values may be useful for using a binhost without having a local
copy of the profile (bug #470006).

10 years agoAdd repoman check for deprecated ruby targets, fixes bug #469616
Manuel Rüger [Sun, 4 Aug 2013 13:08:16 +0000 (15:08 +0200)]
Add repoman check for deprecated ruby targets, fixes bug #469616

10 years agodepgraph: trigger reinstalls if backtrack allowed
Zac Medico [Sun, 4 Aug 2013 20:21:19 +0000 (13:21 -0700)]
depgraph: trigger reinstalls if backtrack allowed

This should fix cases where it tries to backtrack but simply aborts
with --backtrack=0.

10 years ago__repo_key: comment on bash-3.2 compatibility v2.2.0_alpha193
Zac Medico [Sat, 3 Aug 2013 22:14:14 +0000 (15:14 -0700)]
__repo_key: comment on bash-3.2 compatibility

10 years ago__repo_key: fix for bash-3.2 compatibility
Zac Medico [Sat, 3 Aug 2013 11:08:53 +0000 (04:08 -0700)]
__repo_key: fix for bash-3.2 compatibility

10 years ago_argparse: improve parse_* method compatibility v2.2.0_alpha192
Zac Medico [Sat, 3 Aug 2013 09:39:00 +0000 (02:39 -0700)]
_argparse: improve parse_* method compatibility

10 years agorunTests: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 01:37:14 +0000 (18:37 -0700)]
runTests: portage.util._argparse

10 years agoxpak-helper.py: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 01:32:21 +0000 (18:32 -0700)]
xpak-helper.py: portage.util._argparse

10 years agoquickpkg: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 01:29:21 +0000 (18:29 -0700)]
quickpkg: portage.util._argparse

10 years agorepoman: use parse_known_args
Zac Medico [Sat, 3 Aug 2013 01:27:20 +0000 (18:27 -0700)]
repoman: use parse_known_args

10 years agoglsa-check: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 01:21:37 +0000 (18:21 -0700)]
glsa-check: portage.util._argparse

10 years agofilter-bash-environment.py: don't use optparse
Zac Medico [Sat, 3 Aug 2013 01:02:19 +0000 (18:02 -0700)]
filter-bash-environment.py: don't use optparse

10 years agoebuild: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 00:48:55 +0000 (17:48 -0700)]
ebuild: portage.util._argparse

10 years agobinhost-snapshot: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 00:48:25 +0000 (17:48 -0700)]
binhost-snapshot: portage.util._argparse

10 years agochpathtool.py: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 00:35:15 +0000 (17:35 -0700)]
chpathtool.py: portage.util._argparse

10 years agoportageq: portage.util._argparse
Zac Medico [Sat, 3 Aug 2013 00:10:34 +0000 (17:10 -0700)]
portageq: portage.util._argparse

10 years agoemirrordist: portage.util._argparse
Zac Medico [Fri, 2 Aug 2013 23:27:17 +0000 (16:27 -0700)]
emirrordist: portage.util._argparse

10 years agoegencache: portage.util._argparse
Zac Medico [Fri, 2 Aug 2013 23:03:53 +0000 (16:03 -0700)]
egencache: portage.util._argparse

10 years ago_argparse: add ArgumentParser.error()
Zac Medico [Fri, 2 Aug 2013 23:03:00 +0000 (16:03 -0700)]
_argparse: add ArgumentParser.error()

10 years agorepoman: portage.util._argparse
Zac Medico [Fri, 2 Aug 2013 22:49:37 +0000 (15:49 -0700)]
repoman: portage.util._argparse

10 years agorepoman: simplify help output
Zac Medico [Fri, 2 Aug 2013 22:36:39 +0000 (15:36 -0700)]
repoman: simplify help output

This will simplify conversion to argparse.

10 years agoemaint: portage.util._argparse
Zac Medico [Fri, 2 Aug 2013 21:48:14 +0000 (14:48 -0700)]
emaint: portage.util._argparse

10 years agoemaint: fix exclusive action handling
Zac Medico [Fri, 2 Aug 2013 20:53:14 +0000 (13:53 -0700)]
emaint: fix exclusive action handling

It broke in commit 42b0a6e898172c375d4d47c3346b25dac2333bf0.

10 years agoemaint: remove callback usage
Zac Medico [Fri, 2 Aug 2013 20:18:11 +0000 (13:18 -0700)]
emaint: remove callback usage

This will simplify conversion to argparse.

10 years agoxattr-helper.py: portage.util._argparse
Zac Medico [Fri, 2 Aug 2013 18:05:51 +0000 (11:05 -0700)]
xattr-helper.py: portage.util._argparse

10 years ago_argparse: support add_argument_group
Zac Medico [Fri, 2 Aug 2013 18:03:49 +0000 (11:03 -0700)]
_argparse: support add_argument_group