summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* mozcoreconf-v6.eclass: fix lto on arm and ppc64Georgy Yakovlev2019-08-291-2/+2
| | | | | | Closes: https://bugs.gentoo.org/692500 Acked-by: Jory Pratt <anarchy@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: add cargo_live_src_unpack()Georgy Yakovlev2019-08-291-1/+26
| | | | | | | | | | | | | | | | | | | | | | | This function will allow using 'cargo fetch' during src_unpack Since only new cargo supports vendoring, all live packages will have to depend on >=rust-1.37.0 This enables us to ship live rust packages, cargo fetch will download all crates and vendor them for offline phases. here's an example of src_unpack() src_unpack() { if [[ "${PV}" == *9999* ]]; then git-r3_src_unpack cargo_live_src_unpack else cargo_src_unpack fi } Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* kodi-addon.eclass: EAPI=7 support, fix warningCraig Andrews2019-08-261-4/+8
| | | | | | | Fix CMAKE_INSTALL_LIBDIR warning, see: https://github.com/xbmc/xbmc/blob/18.3-Leia/cmake/scripts/common/AddonHelpers.cmake#L308 Signed-off-by: Craig Andrews <candrews@gentoo.org>
* libretro-core.eclass: Update copyrightCraig Andrews2019-08-261-1/+1
| | | | Signed-off-by: Craig Andrews <candrews@gentoo.org>
* libretro-core.eclass: replace CXXFLAGS in src_prepare stageYuri Konotopov2019-08-261-0/+1
| | | | | Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org> Signed-off-by: Craig Andrews <candrews@gentoo.org>
* libretro-core.eclass: make $LIBRETRO_CORE_LIB_FILE variable localYuri Konotopov2019-08-261-6/+15
| | | | | | | | | Default $LIBRETRO_CORE_LIB_FILE variable value depends on $S which should be set after "inherit" section according to skel.ebuild. Also this variable is used in libretro-core_src_install function only. Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org> Signed-off-by: Craig Andrews <candrews@gentoo.org>
* libretro-core.eclass: replace hyphens in default $LIBRETRO_CORE_NAMEYuri Konotopov2019-08-261-4/+8
| | | | | | | | | Libretro cores are named with underscores instead of hyphens. E.g. genesis_plus_gx or vba_next. Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org> Closes: https://github.com/gentoo/gentoo/pull/12738 Signed-off-by: Craig Andrews <candrews@gentoo.org>
* xorg-3.eclass: Add media-fonts/ to a couple casesMatt Turner2019-08-251-0/+2
| | | | | | | | media-fonts/font-util doesn't require all of the extra logic xorg-2 contains for fonts. Adding these two lines are needed for new font-util to use xorg-3. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* toolchain.eclass: cleanup create_revdep_rebuild_entry()Sergei Trofimovich2019-08-251-2/+2
| | | | | | | | | | | | | From #gentoo-toolchain: """ <+[Arfrever]> It will cause that empty /etc/revdep-rebuild directory will be installed by gcc. Please move dodir to after 'is_crosscompile || return 0'. <+[Arfrever]> ${revdep_rebuild_file} should be quoted. """ Reported-by: Arfrever Frehtes Taifersar Arahesis Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/toolchain.eclass: mask LIBPATH for cross-case, bug #692844Sergei Trofimovich2019-08-251-0/+15
| | | | | | | | | | | | | | | | | /usr/lib/gcc/${CTARGET}/${GCC_CONFIG_VER} contains libraries destined to be used by ${CTARGET}. revdep-rebuild complains about missing dependencies against them as we don't populate LDPATH (or anything else) for them. The change populates /etc/revdep-rebuild/05cross-${CTARGET}-${GCC_CONFIG_VER} with a single entry: SEARCH_DIRS_MASK="/usr/lib/gcc/${CTARGET}/${GCC_CONFIG_VER}" crossdev will still own root's SEARCH_DIRS_MASK="/usr/${CTARGET}". Reported-by: crocket Closes: https://bugs.gentoo.org/692844 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* acct-user.eclass: Fix typo in eislocked()Michał Górny2019-08-241-2/+2
| | | | | | Reported by Hello71. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-2.eclass: Add support for gcc 9.1 CPU optimization patchMike Pagano2019-08-231-6/+20
| | | | | | | See bug #692320 See https://github.com/graysky2/kernel_gcc_patch Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* check-reqs.eclass: Remove duplicate slash in path.Ulrich Müller2019-08-231-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* check-reqs.eclass: Drop unused code for EAPIs without MERGE_TYPE.Ulrich Müller2019-08-231-9/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: drop USE=nptl from kgcc64, bug #642932Sergei Trofimovich2019-08-221-6/+8
| | | | | | | | | USE=nptl is neededonly for compilers that target userspace. kgcc64 is for building kernels only. Reported-by: Rolf Eike Beer Closes: https://bugs.gentoo.org/642932 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: Fix gcj's automagic dependency on dev-java/antlrJames Le Cuirot2019-08-211-4/+5
| | | | | Closes: https://bugs.gentoo.org/552882 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* toolchain.eclass: fix gdb autoload path, bug #572480Sergei Trofimovich2019-08-211-2/+2
| | | | | | Reported-and-fixed-by: Hristo Venev Bug: https://bugs.gentoo.org/572480 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* acct-{group,user}.eclass: Add @SUPPORTED_EAPIS.Ulrich Müller2019-08-202-3/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* check-reqs.eclass: check-reqs_memory(): Check for available swap.Arfrever Frehtes Taifersar Arahesis2019-08-191-7/+18
| | | | | | | | Print warning if usage of swap appears to be needed. Closes: https://bugs.gentoo.org/569966 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* meson.eclass: meson_src_{compile,install}: Pass "$@" to eninja.Arfrever Frehtes Taifersar Arahesis2019-08-191-2/+4
| | | | | | Closes: https://bugs.gentoo.org/670788 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* qmail.eclass: honor toolchain settings for ar and ranlibRolf Eike Beer2019-08-181-0/+1
| | | | | | | Closes: https://bugs.gentoo.org/471436 Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Closes: https://github.com/gentoo/gentoo/pull/12631 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* ssl-cert.eclass: improve EAPI 7 supportMichael Palimaka2019-08-181-3/+14
| | | | Signed-off-by: Michael Palimaka <kensington@gentoo.org>
* ssl-cert.eclass: allow EAPI=7Michael Palimaka2019-08-181-1/+1
| | | | Signed-off-by: Michael Palimaka <kensington@gentoo.org>
* toolchain.eclass: obey user's USE=cxx option, bug #692126Sergei Trofimovich2019-08-171-1/+0
| | | | | | | | | | USE=cxx presence on typical systems is maintained by profiles/base/package.use.force entry. Let's drop silent override from the eclass. Reported-by: Agostino Sarubbo Bug: https://bugs.gentoo.org/692126 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* acct-*.eclass: Allow dynamic UID/GID assignment via -1Michał Górny2019-08-172-0/+8
| | | | | | | | | | | | | | | | Allow a special value of '-1' to dynamically assign UID/GID for the user or group. This is intended to be used in overlays where proper assignment does not take place but whose owners wish to switch to acct-* packages. While technically it is possible to choose a free UID/GID, it could be taken afterwards by some Gentoo package and unnecessarily introduce a conflict. Using '999' was also suggested (as the first dynamic UID/GID) but it would cause issues for people enabling ACCT_*_ENFORCE_ID. To avoid this, '-1' does not trigger collision checks. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* xdg-utils.eclass: add freedesktop-bugs to maintainer listMike Gilbert2019-08-161-0/+1
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* xdg-utils.eclass: Mark 2 local variables with 'local'.Arfrever Frehtes Taifersar Arahesis2019-08-161-2/+2
| | | | | Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* qmail.eclass: do not install man templates to section 8Rolf Eike Beer2019-08-161-6/+0
| | | | | | | | | | The files named *.9 are actually only templates for the real manpages, some of them _not_ in section 8 at all. Those are properly gerated and installed anyway, so just leave these alone as they were never meant to be installed. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Closes: https://github.com/gentoo/gentoo/pull/12632 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* 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>