aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'overlays-gentoo-org/master' into prefixFabian Groffen2014-09-2843-1127/+1630
|\ | | | | | | | | | | | | | | | | | | | | | | 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 for gcc warning checksv2.2.14_rc1Michał Górny2014-09-251-29/+33
| | | | | | | | | | | | 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.
| * Update gcc warning checks to work with colored outputMichał Górny2014-09-251-33/+52
| | | | | | | | | | | | | | | | | | 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 in QA checksMichał Górny2014-09-252-63/+70
| | | | | | | | | | | | 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.
| * Run install-qa-check.d scripts from repositoriesMichał Górny2014-09-251-0/+13
| | | | | | | | | | --- (following the remaster of install_qa_check())
| * Split install_qa_check() into install-qa-check.d scriptsMichał Górny2014-09-2517-928/+1073
| | | | | | | | | | Convert the horrendous install_qa_check() function into a plug-in system that calls separate QA checking scripts from install-qa-check.d.
| * Re-apply "Rewrite default ebuild phase setting code" (bug 523182)"Michał Górny2014-09-253-66/+63
| | | | | | | | | | | | | | | | | | 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>
| * Initial creation of a deprecated-path scriptBrian Dolbec2014-09-241-0/+28
| | | | | | | | | | 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.
| * emerge-webrsync: fix bug #523494Zac Medico2014-09-241-2/+2
| | | | | | | | | | | | | | | | 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
| * Revert "Rewrite default ebuild phase setting code" (bug 523182)Brian Dolbec2014-09-192-53/+66
| | | | | | | | | | | | This reverts commit 772ed29fd9e7cf722aed943adbe33a27f250e1ff. X-Gentoo-Bug: 523182 X-Gentoo-Url: https://bugs.gentoo.org/show_bug.cgi?id=523182
| * portageq: Migrate docstrings to a dictionaryBrian Dolbec2014-09-191-126/+199
| | | | | | | | | | Due to python optimizations, __doc__ are removed. Reviewed by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
| * xattr-helper: Migrate docstrings to a variableBrian Dolbec2014-09-191-2/+4
| | | | | | | | | | Due to python optimizations, __doc__ are removed. Reviewed by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
| * chpathtool: migrate docstrings to a variableBrian Dolbec2014-09-191-3/+5
| | | | | | | | | | Due to python optimizations, __doc__ are removed. Reviewed by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
| * Update sys.path in scripts only when using not installed instance of Portage.Arfrever Frehtes Taifersar Arahesis2014-09-2016-45/+54
| | | | | | | | | | Modules of installed instance of Portage are now placed in standard location, which is included in default sys.path.
| * Rewrite default ebuild phase setting codeMichał Górny2014-09-112-66/+53
| | | | | | | | | | | | | | 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.
| * econf: Add EAPI-conditional arguments via arrayMichał Górny2014-09-111-3/+7
| | | | | | | | | | | | Use a dedicated array variable to add EAPI-conditional arguments to the configure script instead of prepending them to the command parameters.
| * econf: Replace unnecessary 'case' statements with 'if'sMichał Górny2014-09-111-10/+6
| | | | | | | | | | | | | | Replace the 'case' statements used to match 'configure' output with simpler pattern-matching 'if's. Acked-by: Alexander Berntsen <bernalex@gentoo.org>
| * Output uniform status message before and after src_test()Michał Górny2014-09-112-4/+6
| | | | | | | | | | | | | | | | 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.
| * Run distcc-pump server throughout src_configure() to src_install()Michał Górny2014-09-101-7/+19
| | | | | | | | | | | | | | | | | | | | 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
| * QA: Add a set of checks for bash-completion filesMichał Górny2014-09-031-0/+124
| | | | | | | | | | | | | | | | 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>
| * bin/misc-functions.sh: Empty flag variable 'error' before (re-)useeroen2014-08-261-1/+1
| | | | | | | | | | | | | | | | 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>
| * repoman: Disable DESCRIPTION.punctuation checkAlexander Berntsen2014-08-121-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * QA: Warn when systemd units use /etc/conf.dMichał Górny2014-08-111-0/+15
| | | | | | | | | | | | Acked-by: Alexander Berntsen <bernalex@gentoo.org> Acked-by: Brian Dolbec <dolsen@gentoo.org> Reviewed-by: Anthony G. Basile <blueness@gentoo.org>
| * QA: Use pngfix to find broken PNG filesMichał Górny2014-08-111-1/+28
| | | | | | | | | | | | | | 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>
| * Enable consistent __future__ behavior for divisionMichał Górny2014-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * repoman: Do not report DESCRIPTION.punctuation warning for "etc.".Arfrever Frehtes Taifersar Arahesis2014-08-101-1/+5
| |
| * emake: pass EXTRA_EMAKE after user's "$@", not beforeSergei Trofimovich2014-08-092-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * repoman: fix atom.blocker checks.Michał Górny2014-08-061-3/+3
| | | | | | | | | | The original checks assume that no-blocker is denoted as 'None'. However, currently atom.blocker returns just 'False'.
| * Revert incorrect commit 9351edad48523bb38b1bf651506786bdc8814f62, which ↵Arfrever Frehtes Taifersar Arahesis2014-08-041-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)"
| * bin/chpathtool.py: fix py3.2 &py3.3 test failurev2.2.11Brian Dolbec2014-08-031-3/+6
| | | | | | | | | | 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.
| * repoman: Warn if virtuals depend on perl-core, bug 516428Andreas K. Huettel (dilfridge)2014-07-251-0/+9
| | | | | | | | | | | | | | 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>
| * ebuild-helpers/xattr/install: use install-xattrAnthony G. Basile2014-06-171-2/+25
| | | | | | | | | | | | | | | | | | | | | | 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}.
| * repoman: Fix broken userquery importBrian Dolbec2014-06-151-2/+3
| | | | | | | | | | Commit: 15433c52866e09967142fd2352bd7aad9ad5026f Author: Alexander Berntsen <bernalex@gentoo.org> (Thu 08 May 2014 08:47:58 AM PDT) Subject: emerge: Implement "--alert"
| * Turn a traceback into a graceful errorAlexander Berntsen2014-06-141-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | install_qa_check_macho: introduce QA_IGNORE_INSTALL_NAME_FILESFabian Groffen2014-09-281-7/+25
| | | | | | | | | | Add QA_IGNORE_INSTALL_NAME_FILES containing a list for file to treat as non-fatal when they have failures with install_names.
* | Revert "install_qa_check_macho: introduce QA_INSTALL_NAME"Fabian Groffen2014-09-281-21/+1
| | | | | | | | | | | | Consensus said this was not the right way to go. See follow-up commit. This reverts commit 90691e509210bce88c715022eaba72fac5cf76b5.
* | install_qa_check_macho: introduce QA_INSTALL_NAMEFabian Groffen2014-06-201-1/+21
| | | | | | | | | | Allow certain install_names to be ignored when checking for validity. This is useful for libraries that will be managed by tools like eselect.
* | Merge remote-tracking branch 'overlays-gentoo-org/master' into prefixFabian Groffen2014-05-061-0/+9
|\|
| * repoman: Add accidently deleted closing bracket ')'Brian Dolbec2014-04-181-1/+1
| | | | | | | | | | Fixes commit: repoman: Add DESCRIPTION.puntuation check (bug #438976) SHA: 06637c4215d55c57517739214c6e0fd6f8f53914 Date: (Fri Apr 18 21:55:56 2014)
| * repoman: Add ruby18 warning for deprecated ruby targetManuel Rüger2014-04-181-0/+1
| |
| * repoman: Add DESCRIPTION.puntuation check (bug #438976)Michael Orlitzky2014-04-181-0/+8
| | | | | | | | | | Basic patch supplied by Michael Orlitzky. Modified to be easier to add/remove puntuation to the check.
* | Merge tag 'v2.2.10' into prefixFabian Groffen2014-04-221-1/+18
|\| | | | | | | | | Conflicts: pym/portage/dbapi/bintree.py
| * Use function pointer when choosing qa output functionChris Reffett2014-02-191-4/+8
| | | | | | | | | | Replace the chain of if/else statements deciding which output formatting function to use with a function pointer wrt comments by vapier
| * Add --output-style option to repomanChris Reffett2014-02-111-1/+14
| | | | | | | | | | | | | | | | | | | | 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
* | Merge remote-tracking branch 'overlays-gentoo-org/master' into prefixFabian Groffen2014-02-0629-64/+64
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Rename a private function.Arfrever Frehtes Taifersar Arahesis2014-02-053-7/+7
| |
| * Use -b instead of -bb.Arfrever Frehtes Taifersar Arahesis2014-01-2325-25/+25
| | | | | | | | (-bb can trigger errors, depending on Python version and environment.)
| * Enable BytesWarnings.Arfrever Frehtes Taifersar Arahesis2014-01-1825-55/+55
| |
| * Update dates in recently changed files.Arfrever Frehtes Taifersar Arahesis2014-01-072-2/+2
| |
* | Merge remote-tracking branch 'overlays-gentoo-org/master' into prefixFabian Groffen2014-01-0616-343/+441
|\| | | | | | | | | | | Conflicts: bin/helper-functions.sh pym/portage/const.py