summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* llvm.org.eclass: Remove old snapshot hashesMichał Górny2023-04-111-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: use upstream default checking for pre/non-released compilersSam James2023-04-101-3/+6
| | | | | | | | | | | | | | Note that this only affects actually-non-released compilers like GCC 13 at this point in time and *not* snapshots from the stable branches. Upstream default to more checking (asserts/runtime integrity checks) when 'gcc/DEV-PHASE' contains 'experimental'. Copy that and defer to the configure.ac default when it does. The practical upshot of this is that we go from --enable-checking=release for GCC 13 to --enable-checking=yes,extra. Signed-off-by: Sam James <sam@gentoo.org>
* ruby-ng.eclass: error out earlier if RUBY is unsetSam James2023-04-101-0/+7
| | | | | | | | | | | | | | | | This might prevent an ebuild installing no files, but the main aim here is to give a better error message earlier on rather than the classic "Unable to generate gemspec file". The output looks like: ``` * Failed to determine a path for ${RUBY} for USE=ruby_targets_ruby31: * ruby_implementation_command returned an empty RUBY for ruby31 * ERROR: dev-ruby/mercenary-0.4.0-r1::gentoo failed (setup phase): * Could not find RUBY for ruby31. Is dev-lang/ruby:3.1 installed? ``` Signed-off-by: Sam James <sam@gentoo.org>
* ruby-fakegem.eclass: include ${PF} in global-scope eqawarnSam James2023-04-081-1/+1
| | | | | | | | This makes it a lot easier to narrow down the culprit given it warns in global scope. (Apparently ${EBUILD} isn't defined in PMS.) Signed-off-by: Sam James <sam@gentoo.org>
* ruby-single.eclass: depend on virtual/rubygems[ruby_targets_rubyNN(-)] for ↵Sam James2023-04-081-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | each impl Noticed when looking at bug 771744 which seems hard to trigger deliberately - the webkit-gtk ebuild already tries to check the chosen Ruby has rubygems available. Anyway, when looking at that, I noticed it's possible for Portage to queue the following, even if it's not what's happening in this case: - dev-lang/ruby:2.7 is already installed - virtual/rubygems[ruby_targets_ruby27] is already installed (PDEPEND of ruby) and then, in a fresh emerge: - dev-lang/ruby:3.0 is installed - app-misc/foo (with only USE_RUBY="ruby30") using ruby-single.eclass is queued and fails because the installed Ruby isn't fully usable yet, because the eclass only guarantees dev-lang/ruby:3.0 and virtual/rubygems is installed, not necessarily rubygems for that interpreter. - virtual/rubygems[ruby_targets_ruby30] is built (PDEPEND of ruby) This isn't a substitute for a ruby-any.eclass and/or a pkg_setup which helps enforcement, but that's another thing to handle. Followup to d078ec2a151d16b7ed045f1889bb5b97c4b9e6af ("Add virtual/rubygems to dependencies[...]"). Bug: https://bugs.gentoo.org/771744 Signed-off-by: Sam James <sam@gentoo.org>
* ecm.eclass: Add Qt 5.15.9 to ECM_QTHELP Portage bug workaroundAndreas Sturmlechner2023-04-081-6/+15
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* preserve-libs.eclass: add EAPI 8Sam James2023-04-071-3/+3
| | | | | | Trivial changes. Signed-off-by: Sam James <sam@gentoo.org>
* unpacker.eclass: Don't assume the default tar is stdinArsen Arsenović2023-04-061-1/+1
| | | | | | | | | | | | | Despite common misconception, the default GNU tar tarfile is not stdin. On some systems, this can cause tar to fail to extract relevant files. See '(tar)file tutorial' for a description of how the default is picked. Closes: https://bugs.gentoo.org/903631 Closes: https://bugs.gentoo.org/903914 Closes: https://bugs.gentoo.org/903919 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
* llvm.org.eclass: Enable prebuilt manpages for 16.0.1Michał Górny2023-04-051-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove < dep on dev-python/setuptoolsMichał Górny2023-04-051-7/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* qmail.eclass: Patch make-makelib.sh only if it is presentPetr Vaněk2023-04-041-1/+6
| | | | | | | | | | | | | | | Some packages use qmail_set_cc function but they don't contain make-makelib.sh script. However, recent addition of || die to the sed patching this file is newly triggering build failure. This commit addresses the problem by checking if the script is available. Closes: https://bugs.gentoo.org/902009 Closes: https://bugs.gentoo.org/902019 Fixes: fd4e88c55e34 ("qmail.eclass: remove EAPI 6") Closes: https://github.com/gentoo/gentoo/pull/30456 Closes: https://github.com/gentoo/gentoo/pull/30205 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Florian Schmaus <flow@gentoo.org>
* sgml-catalog-r1.eclass: Strip ROOT when generating catalogRaul E Rangel2023-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When cross compiling by setting the ROOT variable, the eclass was writing the full EROOT path into the catalog file. This results in an invalid path at runtime. i.e., $ cat /build/amd64-host/etc/sgml/catalog CATALOG "/build/amd64-host/etc/sgml/sgml-docbook.cat" CATALOG "/build/amd64-host/etc/sgml/sgml-ent.cat" CATALOG "/build/amd64-host/etc/sgml/xml-docbook-4.1.2.cat" Instead we should be stripping off the ROOT so we get a valid path: $ cat /build/amd64-host/etc/sgml/catalog CATALOG "/etc/sgml/sgml-docbook.cat" CATALOG "/etc/sgml/sgml-ent.cat" CATALOG "/etc/sgml/xml-docbook-4.1.2.cat" We don't strip EROOT because we want to keep the prefix if it's present. Closes: https://bugs.gentoo.org/903747 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Closes: https://github.com/gentoo/gentoo/pull/30462 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gnome.org.eclass: Handle GNOME's .alpha/.beta/.rc versioningMatt Turner2023-04-011-2/+2
| | | | | | | | | | | | Tested by removing SRC_URI and S overrides in evince-44_rc.ebuild and glib-networking-2.76_beta.ebuild and confirming that we fetch the same distfile and build from the same source directory. Also confirmed that (alpha|beta|rc).<num> works by making a glib-networking-2.76_beta1.ebuild and seeing that we attempt to fetch glib-networking-2.76.beta.1.tar.xz. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gnome.org.eclass: Add GNOME_ORG_PV variableMatt Turner2023-04-011-0/+7
| | | | | | | Provides the package version in the format used upstream by GNOME projects. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gnome.org.eclass: Rename GNOME_ORG_PVP -> GNOME_ORG_RELEASEMatt Turner2023-04-011-4/+4
| | | | | | I don't think PVP stood for anything. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ruby-ng.eclass: improve error when no valid Ruby in USE_RUBYSam James2023-03-311-1/+6
| | | | | | | | This means we don't get confusing *DEPEND/REQUIRED_USE errors about it being unparseable and instead just get a straightforward die message indicating the problem. Signed-off-by: Sam James <sam@gentoo.org>
* linux-info.eclass: fix @AUTHOR eclassdocSam James2023-03-291-1/+1
| | | | | | | This breaks our brittle eclass2manpages script for now. Fixes: 8435a16eb3e375dfe0a37f076eb6a1ebfed0a55b Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-autoconf.eclass: Add option to disable Info slottingArsen Arsenović2023-03-271-3/+43
| | | | | Closes: https://bugs.gentoo.org/902461 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
* elisp-common.eclass: Update NEED_EMACS to 25.3Ulrich Müller2023-03-261-1/+1
| | | | | | | This corresponds to the oldest version of Emacs (other than slot 18) currently in the tree. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cmake.eclass: Set Python3_FIND_UNVERSIONED_NAMES FIRSTAndreas Sturmlechner2023-03-261-0/+1
| | | | | | | | See also: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8287 Bug: https://bugs.gentoo.org/835799 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* webapp.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* waf-utils.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* virtualx.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* vdr-plugin-2.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* unpacker.eclass: fix spellingSam James2023-03-261-2/+2
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: fix spellingSam James2023-03-261-5/+5
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* texlive-module.eclass: fix spellingSam James2023-03-261-2/+2
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* subversion.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* selinux-policy-2.eclass: fix spellingSam James2023-03-261-5/+5
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ruby-fakegem.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rebar.eclass: fix spellingSam James2023-03-261-2/+2
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* qmail.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* pypi.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* portability.eclass: fix spellingSam James2023-03-261-3/+3
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* pam.eclass: fix spellingSam James2023-03-261-3/+3
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* office-ext-r1.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ninja-utils.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* multilib.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* mozcoreconf-v6.eclass: fix spellingSam James2023-03-261-2/+2
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* mate.eclass: fix spellingSam James2023-03-261-2/+2
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-mod.eclass: fix spellingSam James2023-03-261-3/+3
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-info.eclass: fix spellingSam James2023-03-261-3/+3
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: fix spellingSam James2023-03-261-14/+14
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-vm-2.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-utils-2.eclass: fix spellingSam James2023-03-261-5/+5
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-pkg-2.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-ant-2.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* haskell-cabal.eclass: fix spellingSam James2023-03-261-5/+5
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gstreamer-meson.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gnustep-base.eclass: fix spellingSam James2023-03-261-2/+2
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>