aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bin/ebuild: Fix to work with installed packageZac Medico2019-08-101-1/+6
| | | | | | | | | | | | | | | | Fix the following AttributeError error: # ebuild /var/db/pkg/sys-apps/portage-2.3.71/portage-2.3.71.ebuild clean pretend clean Traceback (most recent call last): File "/usr/lib/python-exec/python3.6/ebuild", line 318, in <module> type_name=pkg_type) File "/usr/lib64/python3.6/site-packages/_emerge/Package.py", line 72, in __init__ db = self.cpv._db AttributeError: 'str' object has no attribute '_db' Bug: https://bugs.gentoo.org/532674 Fixes: bfe7892202b8 ("_pkg_str: add _db attribute (bug 640318)") Signed-off-by: Zac Medico <zmedico@gentoo.org>
* ebuild: apply_priorities (PORTAGE_NICENESS)Felix Neumärker2019-08-031-0/+3
| | | | | | | | Respect PORTAGE_NICENESS variable. Closes: https://github.com/gentoo/portage/pull/441 Signed-off-by: Felix Neumärker <xdch47@posteo.de> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* bin/ebuild: fix --debug to work during manifest generationZac Medico2018-08-161-0/+6
| | | | Reported-by: M. J. Everitt <m.j.everitt@iee.org>
* Refer to "ebuild repository" rather than "portage tree"Zac Medico2018-08-061-1/+1
|
* Rename pym→lib, for better distutils-r1 interoperabilityMichał Górny2018-07-181-1/+1
| | | | Closes: https://github.com/gentoo/portage/pull/343
* asyncio: explicitly close event loops (bug 654390)Zac Medico2018-05-061-0/+4
| | | | | | | The default asyncio event loop triggers a resource warning if it is not explicitly closed, therefore close it when appropriate. Bug: https://bugs.gentoo.org/654390
* bin/ebuild: selectively handle PortageKeyerror from doebuildZac Medico2018-05-021-2/+2
| | | | | In order to avoid swallowing an unexpected KeyError, selectively handle PortageKeyerror from doebuild.
* emerge/ebuild: sanitize file descriptors on startupZac Medico2018-02-221-0/+2
| | | | | | | | | | | In order to ensure that any unintentionally inherited file descriptors will not be inherited by child processes, set the inheritable flag to False on startup, except for those corresponding to stdin, stdout, and stderr. This mitigates potential problems that might result from making the portage.process.spawn close_fds parameter default to False for versions of python with PEP 446 support. Bug: https://bugs.gentoo.org/648432
* Do not enable optimizations by default to work-around pycparser issueMichał Górny2017-09-021-1/+1
| | | | | | | | | | | | | | dev-python/pycparser-2.18+ exposes a design flaw in dev-python/ply that makes it unable to work with -OO code. Given that Gentoo compiles its Python packages with -OO and both -O and -OO use the same files for Python < 3.5, using -O in Portage implicitly means -OO for those implementations. Remove the optimizations from Portage shebangs to prevent triggering the issue until we find a proper solution for it. Bug: https://bugs.gentoo.org/628386 Reviewed-by: Zac Medico <zmedico@gentoo.org>
* bin/ebuild: fix EBUILD_FORCE_TEST / RESTRICT interaction (bug 601466)Zac Medico2016-12-031-7/+18
| | | | | | | | | | | | Ensure that config adjustments are applied to all relevant config instances, in order to prevent inconsistencies like the one that triggered bug 601466. Move the "Forcing test" message from config to bin/ebuild, in order to avoid duplicate messages. X-Gentoo-Bug: 601466 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=601466 Acked-by: Brian Dolbec <dolsen@gentoo.org>
* Revert "ebuild: Set PORTAGE_REPOSITORIES instead of deprecated PORTDIR_OVERLAY."Michał Górny2015-12-131-17/+21
| | | | | | This reverts commit 9e104c424ef08d543546eb4ae54724af97d11c0e. This was unreviewed and the PORTAGE_REPOSITORIES design is at least controversial.
* Revert "ebuild: Rename some variables."Michał Górny2015-12-131-14/+14
| | | | | | This reverts commit fb4d1f4ff710c7d7c848cf5ed4a7232bc1dd1e19. The revert is necessary to make it possible to sanely revert 9e104c4 ("ebuild: Set PORTAGE_REPOSITORIES instead of deprecated PORTDIR_OVERLAY.")
* Revert unreviewed and breaking changes done by ArfreverMichał Górny2015-12-091-1/+1
| | | | | | Reverts: e7d95cb ("Support location with trailing whitespace [...]") Reverts: 7853950 ("Delete support for PORTDIR and PORTDIR_OVERLAY [...]") Reverts: 31923f4 ("Skip some warnings for Portage Python [...]")
* portage.repository.config.RepoConfig: Support location with trailing ↵Arfrever Frehtes Taifersar Arahesis2015-12-091-1/+1
| | | | | | whitespace by using quoting. configparser.ConfigParser strips initial and trailing whitespace.
* ebuild: Rename some variables.Arfrever Frehtes Taifersar Arahesis2015-12-081-14/+14
|
* ebuild: Set PORTAGE_REPOSITORIES instead of deprecated PORTDIR_OVERLAY.Arfrever Frehtes Taifersar Arahesis2015-12-081-21/+17
|
* ebuild: Move imports to the top.Arfrever Frehtes Taifersar Arahesis2015-12-011-10/+7
|
* ebuild: Do not catch unexpected KeyErrors from aux_get().Arfrever Frehtes Taifersar Arahesis2015-12-011-2/+3
|
* _argparse: punt the moduleMike Frysinger2015-10-291-2/+2
| | | | | Since we don't support python 2.6 anymore, there's no need to wrap argparse, so switch all the users to the standard library for it.
* bin/ebuild: fix --color=n for bug #531690Zac Medico2014-12-061-0/+1
| | | | | | | | | | When the NOCOLOR variable is overridden in portage.settings, it's necessary to call the config.backup_changes method in order for the change to persist through config.reset calls. X-Gentoo-Bug: 531690 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=531690 Acked-by: Brian Dolbec <dolsen@gentoo.org>
* bin/ebuild: allow useful phases with pkg_configZac Medico2014-10-241-1/+5
| | | | | | | | | | | It makes sense to run pkg_config by itself, but special phases like "clean", "digest", and "manifest" can be useful. For example, if the developer modifies the ebuild, then it's useful to regenerate the manifest and use "clean" to discard the stale environment. Fixes: bfa98d7a5b7a ("fixed ebuild so") Reported-by: Vlastimil Babka <caster@gentoo.org> Reviewed-by: Alexander Berntsen <bernalex@gentoo.org>
* Update sys.path in scripts only when using not installed instance of Portage.Arfrever Frehtes Taifersar Arahesis2014-09-201-2/+2
| | | | | Modules of installed instance of Portage are now placed in standard location, which is included in default sys.path.
* Use -b instead of -bb.Arfrever Frehtes Taifersar Arahesis2014-01-231-1/+1
| | | | (-bb can trigger errors, depending on Python version and environment.)
* Enable BytesWarnings.Arfrever Frehtes Taifersar Arahesis2014-01-181-2/+2
|
* Fix ResourceWarning.Arfrever Frehtes Taifersar Arahesis2013-12-241-1/+1
|
* fix random pylint errorsMike Frysinger2013-11-291-2/+2
| | | | Shouldn't be any functional changes here.
* ebuild: portage.util._argparseZac Medico2013-08-021-27/+26
|
* *_DEFAULT_OPTS: shlex for embedded quotesZac Medico2013-05-201-1/+2
|
* bin/ebuild: tweak FEATURES=digest logicZac Medico2013-04-161-3/+3
|
* bin/ebuild: only digest once for FEATURES=digestZac Medico2013-04-161-1/+3
|
* ebuild: standardize error output a bitMike Frysinger2013-03-271-13/+10
| | | | | | | 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>
* ebuild: add _reset_legacy_globals for reloadZac Medico2013-02-111-2/+1
| | | | | | This avoids weird issues that are triggered when the module is reloaded (like having classes redefined while instances from the old classes are still around, triggering TypeError confusion).
* doebuild: tweak handling of _unused paramZac Medico2013-01-151-1/+1
|
* Add portage._internal_caller var, and use it.Zac Medico2013-01-031-2/+2
|
* Move portage.dep._internal_warnings to portage.v2.2.0_alpha139Zac Medico2012-10-161-1/+1
|
* Unconditionally insert our pym dir in sys.path.Zac Medico2012-09-021-7/+4
| | | | | This is especially necessary when running in prefix mode, since sys.path may contain the path for a different version of portage.
* Don't use SIGUSR1 under Jython, bug #424259.Zac Medico2012-07-021-1/+8
|
* Allow dots in package names in EAPI="4-python".Arfrever Frehtes Taifersar Arahesis2012-05-121-2/+8
|
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-2/+2
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* bin/ebuild: don't set PORTAGE_CALLERZac Medico2011-10-151-1/+0
| | | | This removes the last reference to PORTAGE_CALLER.
* cache: rewrite to support arbitrary validation methodBrian Harring2011-10-141-4/+2
| | | | | | | | | | Specifically, the cache can use any portage supported checksum method, or use the standard mtime approach. In addition, support controlling whether or not paths are stored, and generally try to restore some of the centralization/encapsulation that was in place originally. (cherry picked from commit bc1aed614fb588f0ade5bcb5d1265a8db0f8d247) Change-Id: Ic38057e7dbb15063c64a93c99e66e113a7d4c70e
* bin/ebuild: add --version optionZac Medico2011-10-111-3/+9
|
* bin/ebuild: simplify PORTDIR_OVERLAY queryv2.2.0_alpha59Zac Medico2011-09-181-5/+1
| | | | | There's no need to query os.environ here, because portage.settings will inherit the value automatically.
* Deprecate the manifest1_compat parameter.v2.2.0_alpha56Zac Medico2011-09-131-1/+1
|
* ebuild(1): remove unneeded porttrees modificationZac Medico2011-09-121-6/+4
| | | | | | | | This code should be unnecessary, as long as the repo is correctly identified for all calls to portdbapi methods like aux_get and findname. Notably, config.setcpv() must be called with a Package instance in order to ensure that it gets the metadata from the correct repository.
* ebuild(1): avoid "Location not set for repo" msgsZac Medico2011-09-121-2/+8
| | | | | | When overriding PORTDIR_OVERLAY, we can avoid "Location not set for repository" messages if we include the original PORTDIR_OVERLAY paths in the overridden setting.
* Bind all manifest access through repoconfigsBrian Harring2011-09-121-2/+3
| | | | | This enables controling the behaviour (creation and validation) per repo, and while mildly ugly, refactors in the right direction.
* ebuild(1): show merge/noauto msg only if neededZac Medico2011-08-201-4/+4
|
* ebuild(1): pass missing myrepo arg to aux_getZac Medico2011-06-291-1/+1
|
* ebuild(1): pass "installed" arg to PackageZac Medico2011-06-291-0/+1
|