summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* flag-o-matic.eclass: add LDFLAGS testing against linkerSergei Trofimovich2019-12-242-15/+59
| | | | | | | | | | | | | | | | Before the change we tested only compiler driver (gcc flag parser) for LDFLAGS. This does not cover cases when we would really like to filter out unsupported linker flags like -Wl,--hash-style=gnu passed to non-ELF targets. The change adds test-flag-CCLD() helper to perform all of assembly, compilation and linking steps. Helper is used to filter LDFLAGS variable in strip-unsupported-flags(). Closes: https://bugs.gentoo.org/333763 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* distutils-r1.eclass: Permit DISTUTILS_USE_SETUPTOOLS=manualMichał Górny2019-12-241-2/+5
| | | | | | | | | Add a new DISTUTILS_USE_SETUPTOOLS option to permit manually setting the dependencies correctly and suppressing the check. Requested by Arfrever. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* dotnet.eclass: Add EAPI 7 supportJames Le Cuirot2019-12-231-8/+10
| | | | | | | | I could not see eutils.eclass being used anywhere but multilib.eclass is needed for get_libdir. I will fix implicit use of eutils by libgdiplus for prune_libtool_files. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* eclass/tests/flag-o-matic.sh: clarify the filterSergei Trofimovich2019-12-231-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: disable sandbox on gcc's test suiteSergei Trofimovich2019-12-221-2/+4
| | | | | | | | 'asan' wants to be preloaded first, so does 'sandbox'. To make asan tests work disable sandbox for all of test suite. 'backtrace' tests also does not like 'libsandbox.so' presence. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* elisp-common.eclass: Add missing argument to eend.Ulrich Müller2019-12-221-1/+1
| | | | | | Thanks to mgorny for pointing this out. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* llvm.org.eclass: [QA] Fix missing eend argMichał Górny2019-12-221-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* elisp-common.eclass: Report Emacs version with einfo, not elog.Ulrich Müller2019-12-211-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp-common.eclass: Small documentation update.Ulrich Müller2019-12-211-1/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp.eclass: Depend on app-editors/emacs directly.Ulrich Müller2019-12-211-11/+7
| | | | | | | | | This replaces the indirect dependency on virtual/emacs. Update pkg_setup() to call elisp-check-emacs-version instead of the now deprecated elisp-need-emacs. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp-common.eclass: Update documentation.Ulrich Müller2019-12-211-19/+26
| | | | | | | | | | After the package split between emacs and emacs-vcs is gone, packages can depend on app-editors/emacs directly. Deprecate function elisp-need-emacs; ebuilds should assign variable NEED_EMACS instead. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp-common.eclass: New function elisp-check-emacs-version.Ulrich Müller2019-12-211-1/+51
| | | | | | | | | | | | | | | | Tests if the Emacs version is at least the (full) version specified by NEED_EMACS, otherwise dies. Intended as a replacement for function elisp-need-emacs, which did only a simple numeric comparison of the major version. Call the new function before doing any actual work in elisp-compile() and elisp-make-autoload-file(), so ebuilds inheriting only elisp-common.eclass (but not elisp.eclass) won't have to add a pkg_setup phase function. Drop support for EAPIs 0 to 3. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* llvm.org.eclass: Fix appending GitHub SRC_URIMichał Górny2019-12-211-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Revert "elisp-common.eclass: Drop support for EAPIs 0 to 3."Ulrich Müller2019-12-201-10/+7
| | | | | | | | | This wasn't correct. doins will indeed die by itself since EAPI 4, but die in a subshell is not guaranteed to work before EAPI 7. This reverts commit 72855c617981e1f1191a0ab2a9589d90c27f1b68. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* x11-libs/fox: bump versionsJason A. Donenfeld2019-12-161-1/+1
| | | | | Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
* qt5-build.eclass: Disable zstd for Qt5 >=5.13.2 RCC compressionAndreas Sturmlechner2019-12-161-0/+3
| | | | | Closes: https://bugs.gentoo.org/699248 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* fox.eclass: Mark @DEAD for removalMichał Górny2019-12-161-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-2.eclass: Mark @DEAD for removalMichał Górny2019-12-161-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* xemacs-elisp{,-common}.eclass: Mark as @DEAD for removal.Ulrich Müller2019-12-162-0/+10
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* obs-download.eclass: Mark @DEAD for removalMichał Górny2019-12-151-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* obs-service.eclass: Mark @DEAD for removalMichał Górny2019-12-151-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Remove SGR control sequences from messages.Ulrich Müller2019-12-151-9/+9
| | | | | | | These prevent NOCOLOR in make.conf or emerge --color=n from working correctly, and may also be problematic for accessibility. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp-common.eclass: Drop support for EAPIs 0 to 3.Ulrich Müller2019-12-151-7/+10
| | | | | | | This goes along with a small code simplification, since doins will die by itself in EAPI 4 or later. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp.eclass: Fix initial copyright year.Ulrich Müller2019-12-151-1/+1
| | | | | | The eclass was initially committed on 2002-10-29. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ecm.eclass: Fix kde-frameworks/ minimum to major.minor of PVAndreas Sturmlechner2019-12-151-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Set correct KFMIN default for kde-frameworks/*Andreas Sturmlechner2019-12-151-2/+7
| | | | | Closes: https://bugs.gentoo.org/703006 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass/tests/toolchain-funcs.sh: fix gold tests, bug #700812Sergei Trofimovich2019-12-131-9/+9
| | | | | | | | | | | | | | | | | As written tests assumed that $CC always called ld.bfd as a linker. The assumption fails when default linker is not ld.bfd, (for example sys-devel/binutils[default-gold]). The change uses LDFLAGS=-fuse-ld=bfd explicitly. Fixes the following tests: * Testing tc-ld-is-gold (bfd selected) ... [ !! ] * Testing tc-ld-disable-gold (bfd selected) ... [ !! ] Reported-by: Michał Górny Closes: https://bugs.gentoo.org/700812 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* *.eclass: Reassign ml@ eclassesMichał Górny2019-12-133-5/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* bsdmk.eclass: Last riteDavid Seifert2019-12-131-0/+3
| | | | | Acked-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* ecm.eclass: cmake-utils_use_find_package -> cmake_use_find_packageAndreas Sturmlechner2019-12-121-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Extend KDE_RELEASE_SERVICE support to stable branchesAndreas Sturmlechner2019-12-121-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Introduce KDE_RELEASE_SERVICEAndreas Sturmlechner2019-12-121-10/+24
| | | | | | Experiment with non-kde-apps category handling. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Add release-service SRC_URIAndreas Sturmlechner2019-12-121-1/+2
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Drop KDE Frameworks 5.60 conditionalAndreas Sturmlechner2019-12-121-3/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* oasis.eclass: Add RESTRICT="!test? ( test )"Michał Górny2019-12-121-2/+5
| | | | | | This fixes 30 cases of MissingTestRestrict. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-utils-2.eclass: Add RESTRICT="!test? ( test )"Michał Górny2019-12-121-0/+2
| | | | | | | Add RESTRICT="!test? ( test )" when the ebuild specified JAVA_PKG_IUSE="test". This fixes further 100 MissingTestRestrict cases. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/ros-catkin.eclass: Switch the entire ROS stack to python 3.6Alexis Ballier2019-12-121-1/+1
| | | | Signed-off-by: Alexis Ballier <aballier@gentoo.org>
* haskell-cabal.eclass: Fix MissingTestRestrictMichał Górny2019-12-111-1/+2
| | | | | | | | | This fixes 564 cases of MissingTestRestrict. According to md5-cache inspection, no other changes in metadata occur. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/13945 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* virtualx.eclass: Append RESTRICT="!test? ( test )" by defaultMichał Górny2019-12-111-0/+2
| | | | | | | | Append RESTRICT="!test? ( test )" in the default case when virtualx is conditional to USE=test. This fixes 440 MissingTestRestrict warnings. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* font.eclass: Ban EAPIs < 5David Seifert2019-12-111-27/+15
| | | | | | | | * Add inherit guard like all modern eclasses Closes: https://bugs.gentoo.org/679658 Closes: https://github.com/gentoo/gentoo/pull/13360 Signed-off-by: David Seifert <soap@gentoo.org>
* mount-boot.eclass: Check if /boot is sane, but don't try to mount it.Ulrich Müller2019-12-111-96/+48
| | | | | | | | | | | | | | | | | | | The eclass failed to remount a read-only mounted /boot, because package collision sanity checks in recent Portage versions prevented it from reaching pkg_preinst() at all. Furthermore, with the "mount-sandbox" feature enabled, the mount won't be propagated past pkg_preinst() and installed files would end up under the (shadowed) mount point. Therefore don't even attempt to mount /boot ourselves, but error out if it isn't mounted read/write and ask the user to mount /boot. Also clean up and simplify. (For example, awk is a grown-up program which doesn't need any help from egrep or sed. :-) Closes: https://bugs.gentoo.org/532264 See-also: https://bugs.gentoo.org/274130#c5 Acked-by: Jaco Kroon <jaco@uls.co.za> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/ros-catkin.eclass: add RESTRICT for testsAaron Bauman2019-12-101-0/+1
| | | | | | | * Eclass is inherited only by dev-ros/* and ros-meta/* consumers which do not set any RESTRICT in ebuilds. Signed-off-by: Aaron Bauman <bman@gentoo.org>
* gnustep-2.eclass: drop obsolete gdb blockerBernard Cafarelli2019-12-101-2/+1
| | | | Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
* sgml-catalog.eclass: Last riteDavid Seifert2019-12-101-0/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* mozconfig-v6.60.eclass: Last riteDavid Seifert2019-12-101-0/+3
| | | | | Acked-by: Jory Pratt <anarchy@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* games-mods.eclass: Last riteDavid Seifert2019-12-101-0/+4
| | | | | Bug: https://bugs.gentoo.org/156882 Signed-off-by: David Seifert <soap@gentoo.org>
* eclass/tests/distutils-r1.sh: Disable setuptools depMichał Górny2019-12-071-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Revert "Remove deprecated PYTHON_USEDEP..."Michał Górny2019-12-071-13/+109
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Revert "Remove unused PYTHON_TARGETS"Michał Górny2019-12-071-8/+27
| | | | | | Pushed too many commits. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Depend on setuptools by defaultMichał Górny2019-12-071-6/+76
| | | | | | | | | | | | Add a new DISTUTILS_USE_SETUPTOOLS top variable, and make it default to BDEPEND-ing on dev-python/setuptools (which should be correct for the majority of packages). Packages that either need RDEPEND or no dependency at all can override it. Also add a check for correct value in esetup.py. This should make it easy for developers to adjust the new variable in their packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>