Zac Medico [Thu, 24 Jan 2013 21:53:04 +0000 (13:53 -0800)]
config: raise PermissionDenied more
This enables clear reporting of "Permission Denied" when appropriate,
instead of triggering nonsensical messages about invalid profiles or
repositories.
Zac Medico [Thu, 24 Jan 2013 21:38:41 +0000 (13:38 -0800)]
RepoConfigLoader: raise PermissionDenied more
Zac Medico [Thu, 24 Jan 2013 20:01:28 +0000 (12:01 -0800)]
RepoConfigLoader: raise PermissionDenied
Zac Medico [Thu, 24 Jan 2013 18:29:41 +0000 (10:29 -0800)]
_new_backup_path: fix TypeError, bug #453892
Zac Medico [Thu, 24 Jan 2013 01:32:01 +0000 (17:32 -0800)]
Package._init_use: always sync _metadata
Zac Medico [Thu, 24 Jan 2013 01:18:10 +0000 (17:18 -0800)]
Add debug output for cases like bug #453400.
Zac Medico [Thu, 24 Jan 2013 00:42:27 +0000 (16:42 -0800)]
Package: avoid redundant splitting of USE
Zac Medico [Wed, 23 Jan 2013 16:19:06 +0000 (08:19 -0800)]
Package: filter built USE for bug #453400
The enabled flags must be consistent with implicit IUSE, in order to
avoid potential inconsistencies in USE dep matching (see bug #453400).
Zac Medico [Mon, 21 Jan 2013 21:30:13 +0000 (13:30 -0800)]
Fix default use match for implicit IUSE.
This will fix bug #453400, which was triggered by inconsistency
between the enabled USE and the effective missing_disabled set used
in matching logic, due to implicit IUSE.
Ulrich Müller [Mon, 21 Jan 2013 15:30:53 +0000 (16:30 +0100)]
make.conf: example for ACCEPT_LICENSE
Ulrich Müller [Mon, 21 Jan 2013 14:18:04 +0000 (15:18 +0100)]
make.conf.5: better examples for ACCEPT_LICENSE
Zac Medico [Mon, 21 Jan 2013 16:48:04 +0000 (08:48 -0800)]
make.conf.example: remove obsolete warning
Zac Medico [Sun, 20 Jan 2013 15:42:39 +0000 (07:42 -0800)]
repoman: fix TypeError: must be char, not unicode
Zac Medico [Sun, 20 Jan 2013 02:33:10 +0000 (18:33 -0800)]
repoman: fix stable mask to use correct profile
We can't rely on the internal config instance from the given package
instance, since it does not refer to the correct profile.
Zac Medico [Sun, 20 Jan 2013 01:28:08 +0000 (17:28 -0800)]
isStable: fix * logic for repoman
Zac Medico [Sun, 20 Jan 2013 00:44:29 +0000 (16:44 -0800)]
isStable: handle * for repoman more
Zac Medico [Sun, 20 Jan 2013 00:12:30 +0000 (16:12 -0800)]
isStable: handle * for repoman
Zac Medico [Sat, 19 Jan 2013 23:39:15 +0000 (15:39 -0800)]
tests/repoman: add dev and exp profiles
Zac Medico [Sat, 19 Jan 2013 22:01:26 +0000 (14:01 -0800)]
Fix stable mask logic for repoman.
For repoman, if the package has an effective stable keyword that
intersects with the effective ACCEPT_KEYWORDS for the current
profile, then consider it stable.
Zac Medico [Sat, 19 Jan 2013 19:10:36 +0000 (11:10 -0800)]
FindVCS: add debug info
Zac Medico [Sat, 19 Jan 2013 07:04:53 +0000 (23:04 -0800)]
test_security_set: detect missing xml support
Zac Medico [Sat, 19 Jan 2013 06:40:11 +0000 (22:40 -0800)]
glsa-check: explicit imports, fix glsaconfig ref
Zac Medico [Sat, 19 Jan 2013 06:19:25 +0000 (22:19 -0800)]
Enable glsa @security set for stable, and test.
Zac Medico [Sat, 19 Jan 2013 06:14:16 +0000 (22:14 -0800)]
glsa.py: fix misc breakage
Andy Kittner [Wed, 26 Jan 2011 23:21:21 +0000 (00:21 +0100)]
Fix unicode vs. bytes issue in glsa-check (#341293)
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
01d40ffed91033119bae05dac5c9cea86b94aa2e
Paul Varner [Tue, 9 Mar 2010 16:42:04 +0000 (16:42 +0000)]
sync with genscripts rev 343. This adds the initial py3k support and the analyse utility to gentoolkit
svn path=/trunk/gentoolkit/; revision=751
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
2f90a4b9ceff920f793541376da21d313af083d9
Paul Varner [Tue, 8 Dec 2009 21:53:45 +0000 (21:53 +0000)]
Merge rev 113 from djanderson's genscripts repo
svn path=/trunk/gentoolkit/; revision=703
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
acdf616efa73b77936963eaa8b5c715db97646d2
Robert Buchholz [Tue, 18 Aug 2009 17:47:32 +0000 (17:47 +0000)]
getminupgrade: fix documentation and backtrace
Bug 281101: Fix a backtrace introduced in r647. in getminupgrade the
rValue variable was still leftover and was used in a check when
glsa-check was run in --emergelike mode and more than one upgrade atoms
existed.
Also, update the API documentation to reflect changes back then.
svn path=/trunk/gentoolkit/; revision=671
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
2419943820ac8fb90bdf9bb5d2064a6ccdfec804
Paul Varner [Wed, 20 May 2009 21:53:30 +0000 (21:53 +0000)]
Do not inject GLSAs into the checkfile when fixing them
There is no reason applied GLSAs must be stored in a checkfile. In the
current glsa-check GUI this will make it impossible to determine whether
the system is still affected by the GLSA (e.g. by re-emerging, or when a
GLSA is changed afterwards).
The current place for the checkfile (/var/cache) is not persistent per
FHS, meaning that people might clean out the contents of their injected
GLSAs. Since glsa.py is moving to portage anyway, we can use
/var/lib/portage as a place to store the injected GLSAs. Documentation
has been updated accordingly.
Note that the old checkfile should not be moved to the previous location
on upgrade since this will cause false negatives due to the above
arguments. A message should appear on upgrade (pkg_postinst or similar).
svn path=/trunk/gentoolkit/; revision=649
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
4138f5b1b6dbcf1042663a45b3eae1e652bfc9be
Paul Varner [Wed, 20 May 2009 21:49:39 +0000 (21:49 +0000)]
Restructure system affection detection.
Store "vulnerable" and "upgrade" packages in a table, and use that
data to determine which packages cannot be upgraded, and which
packages actually cause upgrades
svn path=/trunk/gentoolkit/; revision=648
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
b6a2a23926d54ccfa9a1ce331c1bc97dbe2c73d1
Paul Varner [Wed, 20 May 2009 21:46:46 +0000 (21:46 +0000)]
Change behaviour of getMinUpgrade
This allows to differentiate between situations where
the system is unaffected and unexistance of an upgrade path.
Previously, the glsa-check would treat GLSAs that had no
upgrade path (such as mask glsas) as not affecting the system.
svn path=/trunk/gentoolkit/; revision=647
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
ef38a394c5c2f5901173a53914705730850f9b3f
Paul Varner [Wed, 20 May 2009 21:44:13 +0000 (21:44 +0000)]
Some python tweaks to speed glsa-check
svn path=/trunk/gentoolkit/; revision=646
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
10e55d71bd5914fc7c9082adadf7bde2bec14ae3
Paul Varner [Wed, 20 May 2009 21:35:12 +0000 (21:35 +0000)]
Handle unicode encoding when dumping to stdout and start migration to using StringIO
svn path=/trunk/gentoolkit/; revision=645
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=
88c18ffe936e602c45dcaa7500961623c49697ca
Zac Medico [Fri, 18 Jan 2013 23:05:42 +0000 (15:05 -0800)]
Add workaround for Python 2.6.4 issue 4978
Avoid "TypeError: keywords must be strings" issue triggered
by unicode_literals: http://bugs.python.org/issue4978
Zac Medico [Fri, 18 Jan 2013 21:33:08 +0000 (13:33 -0800)]
Use unicode_literals more.
This helps to ensure consistent results, regardless of whether we're
using Python 2 or Python 3.
Zac Medico [Fri, 18 Jan 2013 20:46:51 +0000 (12:46 -0800)]
test_string_format: use unicode_literals
Zac Medico [Fri, 18 Jan 2013 19:10:56 +0000 (11:10 -0800)]
localization: always return unicode
Zac Medico [Fri, 18 Jan 2013 17:27:26 +0000 (09:27 -0800)]
egencache: unicode_literals for TextIOWrapper
Zac Medico [Fri, 18 Jan 2013 17:12:25 +0000 (09:12 -0800)]
cache/flat_hash.py: unicode_literals
Zac Medico [Fri, 18 Jan 2013 16:37:18 +0000 (08:37 -0800)]
cache/sqlite.py: unicode_literals
Zac Medico [Fri, 18 Jan 2013 15:31:47 +0000 (07:31 -0800)]
ebuild_xattr.py: lowercase utf-8 comment
Zac Medico [Thu, 17 Jan 2013 17:22:56 +0000 (09:22 -0800)]
_setup_pipes: close unnecessary duplicate fds
Zac Medico [Thu, 17 Jan 2013 14:19:56 +0000 (06:19 -0800)]
Use 'with file' more.
This helps to minimize ResourceWarning triggered by ^C with python3.
Vladimir Romanov [Wed, 16 Jan 2013 14:20:41 +0000 (06:20 -0800)]
ru/ebuild.1: update obsolete md5 references
Zac Medico [Wed, 16 Jan 2013 14:11:55 +0000 (06:11 -0800)]
emerge --info: show free ram/swap, bug #451048
Mike Frysinger [Tue, 15 Jan 2013 20:36:11 +0000 (15:36 -0500)]
portage(5): add more pointers to make.conf
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 15 Jan 2013 20:31:29 +0000 (15:31 -0500)]
emerge: add reference to the portage(5) man page when failing
For example, the current licensing error message looks like:
The following license changes (package.license) are necessary to proceed:
#required by quake3-bin (argument)
>=games-fps/quake3-bin-1.32c-r1 GPL-2 Q3AEULA
If you don't know much about licensing issues, this error message
doesn't help. Instead, give references to the man page so people
can easily delve further. Now it looks like:
The following license changes are necessary to proceed:
(see package.license in the portage(5) man page for more details)
#required by quake3-bin (argument)
>=games-fps/quake3-bin-1.32c-r1 GPL-2 Q3AEULA
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Zac Medico [Tue, 15 Jan 2013 21:44:19 +0000 (13:44 -0800)]
make.conf.5: document @preserved-rebuild
Zac Medico [Tue, 15 Jan 2013 20:52:23 +0000 (12:52 -0800)]
doebuild: tweak handling of _unused param
Zac Medico [Tue, 15 Jan 2013 20:36:02 +0000 (12:36 -0800)]
EbuildMetadataPhase: use dynamic pipe fd
Also, remove deprecated code from doebuild (with hardcoded pipe fd).
Zac Medico [Tue, 15 Jan 2013 20:09:21 +0000 (12:09 -0800)]
SpawnProcess: improve dummy pipe allocation logic
By using allocated file descriptors for keys in fd_pipes, we naturally
avoid interference with callers such as FileDigester and MergeProcess.
See the _setup_pipes docstring for more benefits of this allocation
approach.
Zac Medico [Tue, 15 Jan 2013 15:16:02 +0000 (07:16 -0800)]
Warn if old make.globals found, bug #452176
Zac Medico [Tue, 15 Jan 2013 15:02:59 +0000 (07:02 -0800)]
Warn if 2 make.profile dirs found, bug #452176
Zac Medico [Tue, 15 Jan 2013 14:45:46 +0000 (06:45 -0800)]
test-fail-continue: mark complete, bug #452030
Zac Medico [Tue, 15 Jan 2013 14:12:27 +0000 (06:12 -0800)]
SpawnProcess: avoid fd_pipes interference
This fixes a random collision that can occur with FileDigester,
triggering malfunction and a KeyError.
Zac Medico [Tue, 15 Jan 2013 11:10:22 +0000 (03:10 -0800)]
ebuild.1: update obsolete md5 references
Arfrever Frehtes Taifersar Arahesis [Mon, 14 Jan 2013 23:10:34 +0000 (00:10 +0100)]
Respect LINGUAS in 'make install'.
Zac Medico [Mon, 14 Jan 2013 17:16:14 +0000 (09:16 -0800)]
Makefile: install man/ru/*
Vladimir Romanov [Mon, 14 Jan 2013 16:20:28 +0000 (08:20 -0800)]
ebuild.1: add Russian translation, bug #450372
Arfrever Frehtes Taifersar Arahesis [Mon, 14 Jan 2013 11:35:00 +0000 (03:35 -0800)]
selinux: python3 unicode paths, bug #430488
Zac Medico [Sat, 12 Jan 2013 00:09:25 +0000 (16:09 -0800)]
Tweak init.d qa check for bug #451386.
Zac Medico [Fri, 11 Jan 2013 08:07:29 +0000 (00:07 -0800)]
make.conf.5: tweak escape format for apostrophy
Zac Medico [Fri, 11 Jan 2013 07:22:03 +0000 (23:22 -0800)]
DoebuildSpawnTestCase: also call spawn_nofetch
Zac Medico [Fri, 11 Jan 2013 06:54:30 +0000 (22:54 -0800)]
spawn_nofetch: import portage, bug #451344
Zac Medico [Thu, 10 Jan 2013 14:41:15 +0000 (06:41 -0800)]
Revert "_ctypes: don't cache library, bug #448858"
This reverts commit
9e37cca4f54260bd8c45a3041fcee00938c71649.
As noted in bug #448858, comment #14, dlclose is not called
automatically, so we may as well cache our library handles.
In order to protect ourselves, we use a fork since commit
7ebb2f54877edb28621c33e380f8777b1b1dc201.
Zac Medico [Thu, 10 Jan 2013 14:06:34 +0000 (06:06 -0800)]
Use EventLoop, no SchedulerInterface if possible.
Zac Medico [Thu, 10 Jan 2013 12:03:45 +0000 (04:03 -0800)]
emerge/test_simple.py: override PATH more
Override things that may be unavailable, or may have portability
issues when running tests in exotic environments.
Zac Medico [Thu, 10 Jan 2013 11:11:35 +0000 (03:11 -0800)]
SpawnProcess: handle fcntl ENOTTY for FreeBSD
Zac Medico [Thu, 10 Jan 2013 10:34:49 +0000 (02:34 -0800)]
_emirrordist/main.py: remove extra Config import
Zac Medico [Thu, 10 Jan 2013 09:40:38 +0000 (01:40 -0800)]
FetchTask: use umask for copied files
Zac Medico [Thu, 10 Jan 2013 09:17:46 +0000 (01:17 -0800)]
FetchTask: avoid possible duplicate URI
Zac Medico [Thu, 10 Jan 2013 09:05:40 +0000 (01:05 -0800)]
FetchTask: randomize thirdpartymirrors
Zac Medico [Thu, 10 Jan 2013 08:41:01 +0000 (00:41 -0800)]
FetchTask: log_failure for distfiles digester
Zac Medico [Thu, 10 Jan 2013 07:54:26 +0000 (23:54 -0800)]
FetchIterator: support PORTAGE_CHECKSUM_FILTER
Zac Medico [Thu, 10 Jan 2013 07:17:09 +0000 (23:17 -0800)]
make.conf.5: escape apostropy quote, bug #451118
Zac Medico [Thu, 10 Jan 2013 03:57:09 +0000 (19:57 -0800)]
FetchIterator: use RepoConfig.load_manifest()
Zac Medico [Wed, 9 Jan 2013 22:23:28 +0000 (14:23 -0800)]
_fetch_digester_exit: fix NoneType AttributeError
Zac Medico [Wed, 9 Jan 2013 18:51:10 +0000 (10:51 -0800)]
Makefile: install emirrordist
Zac Medico [Wed, 9 Jan 2013 14:38:16 +0000 (06:38 -0800)]
Add emirrordist, a tool for mirroring distfiles.
Special thanks to Brian Harring, author of the mirror-dist program from
which emirrordist is derived.
Zac Medico [Wed, 9 Jan 2013 12:19:57 +0000 (04:19 -0800)]
Manifest: make distdir argument optional
Zac Medico [Wed, 9 Jan 2013 01:28:34 +0000 (17:28 -0800)]
autounmask: tweak --autounmask-write suggestion
Ben Kohler [Wed, 9 Jan 2013 01:06:01 +0000 (17:06 -0800)]
autounmask: show file names for suggested changes
Also, advise the user to examine the proposed config changes carefully.
X-Gentoo-Bug: 450960
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=450960
Zac Medico [Tue, 8 Jan 2013 02:08:40 +0000 (18:08 -0800)]
SpawnProcess: stdout_fd FD_CLOEXEC
Zac Medico [Tue, 8 Jan 2013 01:48:11 +0000 (17:48 -0800)]
ManifestTask: use PipeLogger for monitoring
Zac Medico [Tue, 8 Jan 2013 01:03:32 +0000 (17:03 -0800)]
Declare regex literal as such.
Zac Medico [Tue, 8 Jan 2013 00:56:12 +0000 (16:56 -0800)]
parseManifest2: handle space in name, bug 450736
Zac Medico [Mon, 7 Jan 2013 09:16:11 +0000 (01:16 -0800)]
PipeLogger: handle file object for input_fd
Zac Medico [Mon, 7 Jan 2013 07:11:28 +0000 (23:11 -0800)]
If 2 make.conf files found, then warn.
This may give a clue to those who unintentionally end up with 2
make.conf files somehow.
Zac Medico [Mon, 7 Jan 2013 00:28:04 +0000 (16:28 -0800)]
MetadataRegen: simplify _iter_every_cp
Zac Medico [Sun, 6 Jan 2013 20:50:28 +0000 (12:50 -0800)]
MetadataRegen: call cp_all for each category
List categories individually, in order to start yielding quicker,
and in order to reduce latency in case of a signal interrupt.
Zac Medico [Sun, 6 Jan 2013 20:48:04 +0000 (12:48 -0800)]
portdbapi.cp_all(): add reverse sort parameter
Zac Medico [Sun, 6 Jan 2013 11:15:49 +0000 (03:15 -0800)]
_keep_scheduling: check _terminated.is_set()
This ensures that scheduling loops terminate as soon as possible after
an interrupt is received.
Zac Medico [Sun, 6 Jan 2013 11:05:58 +0000 (03:05 -0800)]
ManifestScheduler: fix signal interrupt handling
Zac Medico [Sun, 6 Jan 2013 09:14:18 +0000 (01:14 -0800)]
MetadataRegen: portdbapi.cp_all() already sorted
Zac Medico [Sun, 6 Jan 2013 08:44:12 +0000 (00:44 -0800)]
MetadataRegen: fix signal interrupt handling
We have to force it out of the scheduling loop before
_termination_check can have an effect.
Zac Medico [Sat, 5 Jan 2013 15:43:20 +0000 (07:43 -0800)]
Handle os.write() return code with loop.
Zac Medico [Sat, 5 Jan 2013 15:18:29 +0000 (07:18 -0800)]
BinpkgVerifier: use async FileDigester
Zac Medico [Sat, 5 Jan 2013 15:18:05 +0000 (07:18 -0800)]
Add async FileDigester class.
Zac Medico [Sat, 5 Jan 2013 11:14:30 +0000 (03:14 -0800)]
.gitignore: __pycache__/
Zac Medico [Sat, 5 Jan 2013 04:37:35 +0000 (20:37 -0800)]
Add QA_AM_MAINTAINER_MODE for bug #450278.