summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* acct-user.eclass: die explicitly if HOME is missing in preinstMike Gilbert2019-08-151-0/+8
| | | | | Closes: https://bugs.gentoo.org/691478 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* perl-module.eclass: Also populate BDEPEND in EAPI=7Andreas K. Hüttel2019-08-151-2/+29
| | | | | | In addition, no slot op in DEPEND. Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* kde5-functions.eclass: Drop obsolete Plasma 5.16.3 min depsAndreas Sturmlechner2019-08-151-1/+0
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Drop obsolete KDE_BLOCK_SLOT4 varAndreas Sturmlechner2019-08-151-6/+0
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Drop obsolete QCH workaround for <Qt-5.12Andreas Sturmlechner2019-08-151-11/+0
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Drop obsolete kde-frameworks/kdewebkit switchAndreas Sturmlechner2019-08-151-3/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kernel-2.eclass: Inherit python-any-r1 only in deblob branchMichał Górny2019-08-151-3/+5
| | | | | Closes: https://github.com/gentoo/gentoo/pull/12684 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* xorg-3.eclass: Add XORG_TARBALL_SUFFIXMatt Turner2019-08-131-1/+7
| | | | | | To allow overriding the tarball type. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* user.eclass: Use egetent in eget{user,group}nameMichał Górny2019-08-121-2/+2
| | | | | | | | | | Use egetent+cut to obtain user/group names rather than id(1). The latter has no real advantage (besides being shorter to type), and does not work correctly for getting groups. Closes: https://bugs.gentoo.org/691056 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* perl-module.class: Enable EAPI=7 supportAndreas K. Hüttel2019-08-121-15/+15
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* perl-functions.eclass: Add EAPI=7 supportAndreas K. Hüttel2019-08-121-5/+5
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* mount-boot.eclass: Fix ro checkThomas Deutschmann2019-08-121-1/+1
| | | | | | | | Make sure we check only /boot mount and not any mount containing '/boot'. Closes: https://bugs.gentoo.org/691874 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* toolchain.eclass (do_gcc_CYGWINPORTS_patches): avoid bash-4.4ismMichael Haubenwallner2019-08-121-2/+2
| | | | | Closes: https://bugs.gentoo.org/690686 Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
* savedconfig.eclass: Only check config file candidate onceThomas Deutschmann2019-08-081-4/+8
| | | | | | | | | | Due to the injection of $CTARGET and $CHOST in file path we could end up with an already checked config file candidate if $CTARGET or $CHOST isn't used. This commit will make sure that we don't check the same file twice. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* savedconfig.eclass: Always quote filename in outputThomas Deutschmann2019-08-081-3/+3
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* savedconfig.eclass: Re-use configuration file schemeArfrever Frehtes Taifersar Arahesis2019-08-081-13/+27
| | | | | | | | | Make save_config() re-use configuration file scheme used by restore_config(). Fixes: https://bugs.gentoo.org/686348 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* dev-python/gnome-python*-base: Fix python eclass usageMart Raudsepp2019-08-041-2/+2
| | | | | Closes: https://bugs.gentoo.org/691406 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
* font.eclass: add @SUPPORTED_EAPISJoonas Niilola2019-08-031-1/+2
| | | | Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* virtualx.eclass: Fix no display for an emerge following a failureChris Mayo2019-07-291-2/+5
| | | | | | | | | | | | If using GNOME GDM, X is started on DISPLAY :0 but a lock file /tmp/.X1024-lock is created instead of /tmp/.X0-lock. virtx() will initially set XDISPLAY to 0 and attempt to start Xvfb on DISPLAY :0 which fails but DISPLAY :1 (and greater) is not attempted if a previous emerge left /tmp/.X1-lock behind. Closes: https://bugs.gentoo.org/690778 Signed-off-by: Chris Mayo <aklhfex@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* user.eclass: Allocate next free UID or GID from 999 downwards.Ulrich Müller2019-07-291-4/+4
| | | | | | | | | | | Fixed UIDs and GIDs are mostly located in the low range, therefore going downwards from 999 to 101 will minimise collisions between fixed and dynamically allocated IDs. Note that on Linux and other targets using "groupadd -r" from sys-apps/shadow, GIDs are already allocated that way implicitly. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kde5-functions.eclass: Drop obsolete minimum version declarationsAndreas Sturmlechner2019-07-281-12/+2
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ruby-ng.eclass: remove emtpy line in documentationHans de Graaff2019-07-281-1/+0
| | | | | | | | This was breaking man page generation. Fixes: https://bugs.gentoo.org/690868 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* cdrom.eclass: Append to PROPERTIES variable.Ulrich Müller2019-07-271-3/+3
| | | | | | It is not accumulated across eclasses. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass: Add "live" to PROPERTIES in all live eclasses.Ulrich Müller2019-07-278-6/+22
| | | | | Bug: https://bugs.gentoo.org/233589 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* vcs-snapshot.eclass: Detect unnecessary usage and complainMichał Górny2019-07-271-0/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* vcs-snapshot.eclass: Detect and report invalid directory structureMichał Górny2019-07-271-2/+15
| | | | | | | | Detect when the archive does not contain a single top-level directory, and abort in that case. Otherwise, --strip-components would result in unpredictable mess. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* vcs-snapshot.eclass: Add verbose einfo for unpackingMichał Górny2019-07-271-0/+1
| | | | | | | Add an einfo call to make explicit notice of each archive being unpacked. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* vcs-snapshot.eclass: Update 'unusage' warningMichał Górny2019-07-271-15/+18
| | | | | | | | Nowadays both GitHub and GitLab snapshot do not need this eclass, so make it clear it's needed only for BitBucket. Also make the warning uppercase because people still don't read it. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* vcs-snapshot.eclass: Allow EAPI 7Michał Górny2019-07-271-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Fix egetgroups bash compliance, and make it simplerMichał Górny2019-07-271-4/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ruby-fakegem.eclass: warn about using the fallback gemspecHans de Graaff2019-07-271-0/+9
| | | | | | | | | | | | The fallback gemspec does not contain dependencies so it will only work for packages without any runtime gem dependencies. It is easy to use it by mistake when switching from a gem to a source-based archive, because the source-based archive does not contain the generated metadata, but RUBY_FAKEGEM_GEMSPEC has not been set yet. This warning alerts developers to this situation and encourages them to set RUBY_FAKEGEM_GEMSPEC instead. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-fakegem.eclass: change default DOC recipe to use rdocHans de Graaff2019-07-271-1/+8
| | | | | | | | | | | The previous default was "rake" but this turned out to be a poor choice because many packages do not implement "rake doc" and even if they do there are usually many local development environment assumption attached to that task. Using a consistent "rdoc" call that is handled by the eclass gets more consistent results at the code of missing out on specific rdoc options set by packages. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-fakegem.eclass: enable EAPI 7Hans de Graaff2019-07-271-2/+9
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-utils.eclass: remove ruby23 from stable targets listHans de Graaff2019-07-251-2/+2
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-ng.eclass: remove 2-arg calling of depend methods in EAPI 7Hans de Graaff2019-07-251-6/+20
| | | | | | | No longer allow the deprecated 2 argument calls to the ruby*depend methods in EAPI 7. These are already deprecated for a long time. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-ng.eclass: handle BDEPEND for EAPI 7Hans de Graaff2019-07-251-15/+47
| | | | | | | | | | | | | | | | | | | | | | Add support for BDEPEND in EAPI 7. It is not clear how to handle test dependencies since the test framework will need to run on the CBUILD host but the code that needs to run is already cross-compiled for the CHOST. Most likely tests won't work at all in this case. Add test dependencies to BDEPEND in EAPI 7 since this matches most closely to how the test will be executed. Adjust `ruby_add_bdepend` to add to BDEPEND on EAPI 7. This also allows us to keep the name for this method. Add a new `ruby_add_depend` to add to DEPEND in EAPI 7 and newer only. This allows for the rare case where gems need to link to other gem code (e.g. dev-ruby/nokogumbo). Add ruby itself to RDEPEND, BDEPEND, and DEPEND since it is expected to be present in all three cases. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-ng.eclass: use ruby_rbconfig_valueHans de Graaff2019-07-251-3/+3
| | | | | | | Consistently use ruby_rbconfig_value to get ruby configuration information. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-ng.eclass: make presence of RUBY_PATCHES fatalHans de Graaff2019-07-251-1/+6
| | | | | | | | The eqawarn in EAPI 6 is easy to mis and may lead to patches "silently" not being applied. die on this in EAPI 7 to make this situation more explicit. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-ng.eclass: stop inheriting toolchain-funcsHans de Graaff2019-07-251-2/+5
| | | | | | | | Stop inheriting toolchain-funcs in EAPI 7. The eclass does not use this eclass and any ebuild that requires it should inherit it directly instead. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-ng.eclass: add EAPI 7 supportHans de Graaff2019-07-251-3/+3
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* meson.eclass: don't pass --verbose to meson testMike Gilbert2019-07-241-3/+2
| | | | | | | This ends up sending spamming stdout/stderr with test output. It's better to have that redirected to the test log. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* python-any-r1.eclass: Declare PYTHON_REQUIRED_USE to catch errorsMichał Górny2019-07-221-1/+7
| | | | | Closes: https://github.com/gentoo/gentoo/pull/12492 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ruby-fakegem.eclass: drop support for old EAPIsHans de Graaff2019-07-221-8/+8
| | | | | | Drop support for EAPI 0, 1, 2, 3. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-fakegem.eclass: List myself as authorHans de Graaff2019-07-221-0/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-fakegem.eclass: remove obsolete jruby supportHans de Graaff2019-07-221-16/+5
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* cvs.eclass: Add proper EAPI conditional, drop EAPIs 0 to 3.Ulrich Müller2019-07-211-2/+7
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cvs.eclass: Remove support for PATCHES.Ulrich Müller2019-07-211-14/+0
| | | | | | Not used in the tree, and broken in EAPI 7. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cvs.eclass: Remove support for running under sudo.Ulrich Müller2019-07-211-45/+8
| | | | | | This neither works, nor is it used in the tree. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ruby-ng.eclass: future proof EAPI checksHans de Graaff2019-07-211-3/+5
| | | | | | | Explicitly list old EAPIs but use a wildcard for the latest EAPI, so that these changes will also be used by default in newer EAPIs. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-ng.eclass: drop support for EAPI 2 and EAPI 3Hans de Graaff2019-07-211-33/+10
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>