summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* toolchain.eclass: ensure thumb mode for armv6mMarek Behún2022-05-301-0/+2
| | | | | | | | | | | | | | | | | | Currently the eclass ensures thumb mode compilation for libgcc for armv7m targets with [[ ${arm_arch} == armv7? ]] && arm_arch=${arm_arch/7/7-} ... [[ ${arm_arch} == *-m ]] && confgcc+=( --with-mode=thumb ) But libgcc should also be compiled in thumb mode for the armv6m target. Add the dash as is done for the armv7 case so that --with-mode=thumb option is added for armv6m. Signed-off-by: Marek Behún <kabel@kernel.org> Closes: https://github.com/gentoo/gentoo/pull/25687 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add comment above LTO logicSam James2022-05-301-0/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* vim-plugin.eclass: fix manpage formattingAnna Vyalkova2022-05-301-0/+5
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-plugin.eclass: add debug-print-function callsAnna Vyalkova2022-05-301-0/+12
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-doc.eclass: document update_vim_helptagsAnna Vyalkova2022-05-301-0/+4
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-doc.eclass: add debug-print-function callAnna Vyalkova2022-05-301-0/+2
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-plugin.eclass: document VIM_PLUGIN_VIM_VERSIONAnna Vyalkova2022-05-301-1/+4
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-plugin.eclass: EAPI 8: add src_prepareAnna Vyalkova2022-05-301-1/+31
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-plugin.eclass: EAPI 8: install allowed dirs onlyAnna Vyalkova2022-05-301-7/+32
| | | | | Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-plugin.eclass: support EAPI 8Thomas Bracht Laumann Jespersen2022-05-301-15/+20
| | | | | | | | | | | | | * Drop EAPI 0, 1, 2 workarounds * Move EXPORT_FUNCTIONS to end of file * Add required @USAGE on functions * Add _VIM_PLUGIN_ECLASS guard Bug: https://bugs.gentoo.org/830867 Bug: https://bugs.gentoo.org/830866 Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-doc.eclass: support EAPI 8Thomas Bracht Laumann Jespersen2022-05-301-27/+39
| | | | | | | | | | | | * Added "|| die" statements * Create links only if they don't exist yet * `readlink` -> `readlink -f` * Quoted variables Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo/pull/24941 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* toolchain.eclass: restore dropped EXTRA_ECONFSam James2022-05-301-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add bootstrap-set build config if USE=cetSam James2022-05-301-2/+13
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: prepend output sync againSam James2022-05-301-1/+1
| | | | | | It's easier for folks to override and the issue I hit was something else. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: misc fixupsSam James2022-05-291-18/+18
| | | | | | | | | | - Revert back to previous MAKEOPTS method which seemed to work better (weird splitting/parsing issue?) - Throw in extra bash like we did before, not just relying on CONFIG_SHELL - Add missing die - Build JIT variant first, then main variant Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: sync outputSam James2022-05-291-0/+5
| | | | | | | | | | Makes the build output far easier to read (GCC has "parallel configure" for a start which is confusing enough) and doesn't slow anything down, although does affect output speed. I've prepended rather than appended to MAKEOPTS to allow override. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: build JIT variant separately to avoid slowdownSam James2022-05-291-16/+65
| | | | | | | | | | | | | It's what GCC upstream recommend to avoid slowing down the main GCC binaries which need to be built w/ -fPIC for JIT. We build twice but do an extremely minimal build for the JIT part which is rather quick. Install the JIT version first, then the main GCC variant, so the overlapping binaries come from the main build => more featureful, correct build options/needed ones for a full GCC build, etc. Closes: https://bugs.gentoo.org/843341 Signed-off-by: Sam James <sam@gentoo.org>
* Revert "toolchain.eclass: build JIT variant separately to avoid slowdown"Sam James2022-05-291-65/+14
| | | | | | | | Let's re-commit this a bit after the nightly snapshot is made. This reverts commit 3910f2d8719d8cb8fbb19572cb524b0472429c81. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: build JIT variant separately to avoid slowdownSam James2022-05-291-14/+65
| | | | | | | | | | | | | It's what GCC upstream recommend to avoid slowing down the main GCC binaries which need to be built w/ -fPIC for JIT. We build twice but do an extremely minimal build for the JIT part which is rather quick. Install the JIT version first, then the main GCC variant, so the overlapping binaries come from the main build => more featureful, correct build options/needed ones for a full GCC build, etc. Closes: https://bugs.gentoo.org/843341 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: drop -j1 for src_installSam James2022-05-271-1/+1
| | | | | | | | | | | | | | | Originates from CVS times (commit hash from git graft): ``` commit 0a4b02d50f2202089927d1526ebe003f54ad55a9 Author: Mike Frysinger <vapier@gentoo.org> Date: Thu Jan 29 06:06:45 2009 +0000 at least gcc-4.1 has problems with parallel installs, so use -j1 with it ``` Doesn't seem relevant in the year 2022 and modern GCCs. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: introduce TOOLCHAIN_PATCH_SUFFIXSam James2022-05-221-11/+15
| | | | | | | | | Apologies for the churn here. It's turned out to be easier to just do this based on EAPI and override in ebuilds if needed. I won't plan to change this again. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: simplify logic for GCC 9Sam James2022-05-221-3/+2
| | | | | | We're not likely to update the patchset again. Signed-off-by: Sam James <sam@gentoo.org>
* eclass/ruby-fakegem.eclass: depend on virtual/pkgconfigHans de Graaff2022-05-221-0/+5
| | | | | | | | | Many C extensions depend on pkgconfig during their configure phase and this is easy to miss in the ebuild. Handle this in the eclass instead even though the dependency will not be needed for all extensions. Closes: https://bugs.gentoo.org/845393 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* qmail.eclass: remove usage of egrepRolf Eike Beer2022-05-211-3/+2
| | | | | | | | | | This does not use extended regular expressions in any way. While at it change the way these matches are done: it's irrelevant if the entire expression is in the file, if there is any rule for the given IP address then do not add the new expression. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* qmail.eclass: drop obsolete install hooksRolf Eike Beer2022-05-211-24/+0
| | | | | | | | The last user went away with mail-mta/qmail-ldap. Closes: https://bugs.gentoo.org/843716 Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/postgresql.eclass: Remove obsolete postgres slotsPatrick Lauer2022-05-211-1/+1
| | | | Signed-off-by: Patrick Lauer <patrick@gentoo.org>
* haskell-cabal.eclass: Update function callUlrich Müller2022-05-201-1/+1
| | | | | | | ghc-extractportageversion was renamed to ghc-extract-pm-version. Bug: https://bugs.gentoo.org/843713 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ghc-package.eclass: Avoid reserved function nameUlrich Müller2022-05-201-3/+3
| | | | | | | Rename function ghc-extractportageversion to ghc-extract-pm-version. Closes: https://bugs.gentoo.org/843713 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-mod.eclass: Remove incorrect INTERNAL tagsMike Pagano2022-05-181-2/+0
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Documentation updatesMike Pagano2022-05-181-33/+33
| | | | | | | Document functions which did not have any documentation or were not formatted to gentoo specifications Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Remove internal function not used since 2005Mike Pagano2022-05-181-44/+0
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* gstreamer-meson.eclass: Fix typosMatt Turner2022-05-171-2/+2
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gstreamer.eclass: Fix typosMatt Turner2022-05-171-3/+3
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* mozcoreconf-v5.eclass: [QA] drop (very) stale GCC version checksSam James2022-05-171-14/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* multilib.eclass: Avoid reserved variable namesUlrich Müller2022-05-171-6/+6
| | | | | | | Names that begin with __ are reserved for package manager use. Closes: https://bugs.gentoo.org/843722 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* user.eclass: Avoid reserved function nameUlrich Müller2022-05-161-8/+8
| | | | | | | | Names that contain "ebuild" are reserved for package manager use. Closes: https://bugs.gentoo.org/843707 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: document proper tc-check-openmp useDavid Seifert2022-05-161-0/+13
| | | | | | Signed-off-by: David Seifert <soap@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/25498 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: deprecate tc-has-openmpDavid Seifert2022-05-161-4/+15
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* ruby-ng.eclass: fgrep -> grep -FSam James2022-05-161-1/+1
| | | | | | Deprecated for a while but newer grep emits deprecation warnings. Signed-off-by: Sam James <sam@gentoo.org>
* haskell-cabal.eclass: egrep -> grep -ESam James2022-05-161-3/+3
| | | | | | Deprecated for a while but newer grep emits deprecation warnings. Signed-off-by: Sam James <sam@gentoo.org>
* epatch.eclass: egrep -> grep -ESam James2022-05-161-3/+3
| | | | | | Deprecated for a while but newer grep emits deprecation warnings. Signed-off-by: Sam James <sam@gentoo.org>
* autotools.eclass: egrep -> grep -ESam James2022-05-161-1/+1
| | | | | | Deprecated for a while but newer grep emits deprecation warnings. Signed-off-by: Sam James <sam@gentoo.org>
* linux-info.eclass: Documentation updatesMike Pagano2022-05-161-5/+30
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/aspell-dict-r1.eclass: add which to BDEPENDConrad Kostecki2022-05-141-0/+1
| | | | | Closes: https://bugs.gentoo.org/844094 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
* inux-info.eclass: Remove local function.Calling code removed on Aug 3,2010Mike Pagano2022-05-131-20/+0
| | | | | | | | | | This function was only called locally and the last use was almost 12 years ago See: https://gitlab.com/rindeal/gentoo-cvs-history-archive/-/commit/1715ad cd9e404075340e5a5ed82f88928feeffd9 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* toolchain.eclass: start work on eclassdocsSam James2022-05-131-6/+54
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: followup style tweaksSam James2022-05-131-6/+12
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: style cleanupsSam James2022-05-131-216/+278
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: filter -fsanitize=*Sam James2022-05-121-0/+2
| | | | | | Doesn't make any sense for building GCC. Signed-off-by: Sam James <sam@gentoo.org>
* xorg-3.eclass: Don't indent eclass documentationUlrich Müller2022-05-121-11/+13
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>