| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
bin/ebuild-helpers/emake
bin/misc-functions.sh
bin/portageq
doc/Makefile
pym/_emerge/EbuildBuild.py
pym/portage/const.py
pym/portage/dbapi/vartree.py
pym/portage/package/ebuild/doebuild.py
|
| |
| |
| |
| |
| |
| | |
Use a single grep call with all gcc warning checks combined rather than
calling grep separately for each message being checked. Aside to being
faster, this also avoids outputting warnings in separate blocks.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use -W indicators whenever possible, or more flexible regular
expressions so that our checks correctly match output with
-fdiagnostics-color. Also, enable a few extra warnings with some
of the currently used -W flags.
Based on the patch from Ryan Hill <rhill@gentoo.org>.
|
| |
| |
| |
| |
| |
| | |
Allow inheriting utility eclasses for use in QA checks. The eclasses can
be used e.g. to obtain paths or other data needed for the check.
However, the eclasses must not export phases or set ebuild metadata.
|
| |
| |
| |
| |
| | |
---
(following the remaster of install_qa_check())
|
| |
| |
| |
| |
| | |
Convert the horrendous install_qa_check() function into a plug-in system
that calls separate QA checking scripts from install-qa-check.d.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add empty default src_prepare() as required by PMS
Add missing bind for pkg_nofetch. Spotted-by: Zac Medico <zmedico@gentoo.org>
X-Gento-Bug: 523182
X-Gentoo-URL: https://bugs.gentoo.org/show_bug.cgi?id=523182
Merged 3 pathces by: Brian Dolbec <dolsen@gentoo.org>
|
| |
| |
| |
| |
| | |
This script is for installed portage bin/ scripts that have been moved from their original installed path.
It will search the PATH for the script called and run it from there.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Use PATH instead of PORTAGE_BIN_PATH to locate emerge.
Fixes: 0cc4c1ac21a2 ("Install Portage using setup.py")
X-Gentoo-Bug: 523494
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=523494
|
| |
| |
| |
| |
| |
| | |
This reverts commit 772ed29fd9e7cf722aed943adbe33a27f250e1ff.
X-Gentoo-Bug: 523182
X-Gentoo-Url: https://bugs.gentoo.org/show_bug.cgi?id=523182
|
| |
| |
| |
| |
| | |
Due to python optimizations, __doc__ are removed.
Reviewed by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
|
| |
| |
| |
| |
| | |
Due to python optimizations, __doc__ are removed.
Reviewed by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
|
| |
| |
| |
| |
| | |
Due to python optimizations, __doc__ are removed.
Reviewed by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
|
| |
| |
| |
| |
| | |
Modules of installed instance of Portage are now placed in standard location,
which is included in default sys.path.
|
| |
| |
| |
| |
| |
| |
| | |
Replace the ebuild phase setting code for EAPI 2 and newer with a
simpler approach; first set proper default_* functions, and call them
within the phase. Disallow calling default_* for other phase functions
than the one being run.
|
| |
| |
| |
| |
| |
| | |
Use a dedicated array variable to add EAPI-conditional arguments to
the configure script instead of prepending them to the command
parameters.
|
| |
| |
| |
| |
| |
| |
| | |
Replace the 'case' statements used to match 'configure' output with
simpler pattern-matching 'if's.
Acked-by: Alexander Berntsen <bernalex@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Output the status messages before and after running src_test()
unconditionally, alike it is done for other src_* phase functions,
rather than in EAPI-default src_test() function. This fixes the issue of
test phase output lacking delimitation whenever a custom src_test()
function was used.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Start distcc-pump server in all phases throughout src_configure() to
src_install() rather than in src_compile() alone. Since each of those
phases may involve some compilations, we should try to take full
advantage of distcc in all of them. Moreover, this silences distcc
warnings about being unable to connect to the server when compiling.
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=507482
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add checks for common mistakes when installing bash completion files:
legacy directory, incorrect naming, missing aliases, deprecated 'have'
function.
Acked-by: Brian Dolbec <dolsen@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Prevent subsequent .png files from inheriting error status from earlier
file.
Reviewed-By: Michał Górny <mgorny@gentoo.org>
Acked-By: Brian Dolbec <dolsen@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commits:
06637c4215d55c57517739214c6e0fd6f8f53914
repoman: Add DESCRIPTION.puntuation check (bug #438976)
0a2dab393f2ecf0476262620aa2e9a68d1f88a95
repoman: Add accidently deleted closing bracket ')'
bbb34efebd0bfc0b231073d00b863b3e3ebd918a
repoman: Do not report DESCRIPTION.punctuation warning for "etc.".
QA has requested these reverts, as they did not approve of this repoman
check.
Signed-off-by: Alexander Berntsen <bernalex@gentoo.org>
Reviewed-by: Brian Dolbec <dolsen@gentoo.org>
|
| |
| |
| |
| |
| |
| | |
Acked-by: Alexander Berntsen <bernalex@gentoo.org>
Acked-by: Brian Dolbec <dolsen@gentoo.org>
Reviewed-by: Anthony G. Basile <blueness@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| | |
Acked-by: Alexander Berntsen <bernalex@gentoo.org>
Acked-by: Brian Dolbec <dolsen@gentoo.org>
Reviewed-by: Justin Lecher <jlec@gentoo.org>
Reviewed-by: Sergei Trofimovich <slyfox@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In Python 2, the division ('/') operator defaults to integer
(truncating) division when given integer argument. In Python 3, it
performs floating-point division unconditionally instead. To overcome
this difference and get a consistent behavior, integers were converted
to floats explicitly in a few places.
Instead, use a simpler 'from __future__ import division' statement that
enables floating-point division globally in Python 2. Use it in all
relevant files to get a consistent behavior, and use '//' appropriately
whenever integer division is desired.
Reviewed-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Acked-by: Alexander Berntsen <bernalex@gentoo.org>
Acked-by: Brian Dolbec <dolsen@gentoo.org>
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Patch allows easier override or ebuild things, like
#foo-9999.ebuild:
src_compile() {
emake V=1
}
EXTRA_EMAKE="V=0" emerge =foo-9999
That way it's easier to eyeball upstream builds for new warnings.
This behaviour is more in line with EXTRA_ECONF variable.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
| |
| |
| |
| |
| | |
The original checks assume that no-blocker is denoted as 'None'.
However, currently atom.blocker returns just 'False'.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
broke file type detection
in chpathtool.py with Python 3 and magic module present.
>>> import magic
>>> m = magic.open(magic.MIME_TYPE)
>>> m.load()
0
>>> m.file(b"/etc/fstab")
'text/plain'
>>> m.file(str(b"/etc/fstab"))
"cannot open `b'/etc/fstab'' (No such file or directory)"
|
| |
| |
| |
| |
| | |
The magic module for those 2 python versions do not handle byte strings correctly.
forcing the filename to str() fixes it for all pythons tested.
|
| |
| |
| |
| |
| |
| |
| | |
Reported-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Authored-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Reviewed-by: Alexander Berntsen <bernalex@gentoo.org>
Signed-off-by: Alexander Berntsen <bernalex@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Currently bin/ebuild-helpers/xattr/install uses ${PORTAGE_BIN_PATH}/install.py
as a wrapper to coreutils' install to preserve a file's extended attributes when
installing, usually during src_install(). This is needed, for instance, when
preserving xattr based PaX flags, bug #465000. However the python wrapper is
very slow, comment #42 of bug #465000. A C wrapper was developed and tested,
bugs #501534 and #511984. This patch checks for the existence of the C wrapper,
and uses it, falling back on the python wrapper only if not found, or if over-
ridden by ${PORTAGE_INSTALL_XATTR_IMPLEMENTATION}.
|
| |
| |
| |
| |
| | |
Commit: 15433c52866e09967142fd2352bd7aad9ad5026f
Author: Alexander Berntsen <bernalex@gentoo.org> (Thu 08 May 2014 08:47:58 AM PDT)
Subject: emerge: Implement "--alert"
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Prior to this patch, the following would traceback:
mkdir -p /etc/portage/make.profile/packages
emerge foo
This patch turns such a traceback into an error by implementing
IsADirectory error handling.
Signed-off-by: Alexander Berntsen <bernalex@gentoo.org>
|
| |
| |
| |
| |
| | |
Add QA_IGNORE_INSTALL_NAME_FILES containing a list for file to treat as
non-fatal when they have failures with install_names.
|
| |
| |
| |
| |
| |
| | |
Consensus said this was not the right way to go. See follow-up commit.
This reverts commit 90691e509210bce88c715022eaba72fac5cf76b5.
|
| |
| |
| |
| |
| | |
Allow certain install_names to be ignored when checking for validity.
This is useful for libraries that will be managed by tools like eselect.
|
|\| |
|
| |
| |
| |
| |
| | |
Fixes commit: repoman: Add DESCRIPTION.puntuation check (bug #438976)
SHA: 06637c4215d55c57517739214c6e0fd6f8f53914
Date: (Fri Apr 18 21:55:56 2014)
|
| | |
|
| |
| |
| |
| |
| | |
Basic patch supplied by Michael Orlitzky.
Modified to be easier to add/remove puntuation to the check.
|
|\|
| |
| |
| |
| | |
Conflicts:
pym/portage/dbapi/bintree.py
|
| |
| |
| |
| |
| | |
Replace the chain of if/else statements deciding which output formatting
function to use with a function pointer wrt comments by vapier
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch adds a --output-style option to repoman, which gives the user
a choice of output formats for the repoman checks. Choices are "default"
(current style) and "column" (a greppable format), but it should be easy
to add more. Fixes bug 481584.
v2: Fix docstring to be complete and in the standard format, make use of
default choices in --output-style wrt comments by antarus and dol-sen
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
bin/archive-conf
bin/binhost-snapshot
bin/check-implicit-pointer-usage.py
bin/chpathtool.py
bin/clean_locks
bin/dispatch-conf
bin/dohtml.py
bin/ebuild
bin/ebuild-helpers/prepstrip
bin/ebuild-ipc.py
bin/egencache
bin/emaint
bin/emerge
bin/emerge-webrsync
bin/emirrordist
bin/env-update
bin/filter-bash-environment.py
bin/fixpackages
bin/glsa-check
bin/install.py
bin/isolated-functions.sh
bin/lock-helper.py
bin/portageq
bin/quickpkg
bin/regenworld
bin/repoman
bin/save-ebuild-env.sh
bin/xattr-helper.py
bin/xpak-helper.py
misc/emerge-delta-webrsync
pym/portage/dispatch_conf.py
pym/portage/getbinpkg.py
pym/portage/tests/runTests
runtests.sh
tabcheck.py
|
| | |
|
| |
| |
| |
| | |
(-bb can trigger errors, depending on Python version and environment.)
|
| | |
|
| | |
|
|\|
| |
| |
| |
| |
| | |
Conflicts:
bin/helper-functions.sh
pym/portage/const.py
|