summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* linux-info.eclass: Pass M=${T} to the Linux Makefile unconditionally.Ulrich Müller2020-06-261-6/+3
| | | | | | | | | | | | Using M="${S}" breaks in the pkg_setup phase where the S variable is not valid. Previous commit messages don't give any rationale why some phases would need the dir pointing to ${S}. Therefore, use ${T} in all phases unconditionally. Closes: https://bugs.gentoo.org/729178 Bug: https://bugs.gentoo.org/469210 Acked-by: Thomas Deutschmann <whissi@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* texlive-common.eclass: fix iteration optionsMikle Kolyada2020-06-261-1/+1
| | | | | | Thanks-To: Nuno Silva <njsg@iki.fi> Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* qmail.eclass: clean up and make it work with upcoming notqmail changesRolf Eike Beer2020-06-251-28/+26
| | | | | | | | | | | | The split in the install functions was needed for packages like miniqmail, that only installed a subset of the functions. It has meanwhile been removed from tree. In turn notqmail is going to drop some obsolete programs from the installation. Most documentation files also have been renamed to *.md. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* gnome-python-common-r1.eclass: Remove last-rited eclassAndreas Sturmlechner2020-06-251-107/+0
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* texlive-module: do not install texmf-var unconditionallyMikle Kolyada2020-06-251-2/+4
| | | | Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* kernel-build.eclass: add req'd tools to BDEPENDmatoro2020-06-241-1/+3
| | | | | Closes: https://github.com/gentoo/gentoo/pull/16326 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* dune.eclass: new eclassRafael Kitover2020-06-241-0/+65
| | | | | | | | | | | New eclass for the Dune build system for OCaml. https://github.com/ocaml/dune Based on oasis.eclass and opam.eclass for OCaml. Signed-off-by: Rafael Kitover <rkitover@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* kernel-install.eclass: Warn about linux-firmware in pkg_pretend()Michał Górny2020-06-241-1/+24
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Add pkg_config() to reinstallMichał Górny2020-06-241-0/+23
| | | | | | | Add a pkg_config() phase that can be used to rebuild the initramfs and reinstall the kernel without rebuilding the whole package. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add a helper function for common lit argsMichał Górny2020-06-231-0/+20
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Declare CMAKE_BUILD_TYPEMichał Górny2020-06-231-0/+5
| | | | | | | Deduplicate CMAKE_BUILD_TYPE from most of the LLVM ebuilds to the eclass. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Introduce llvm-project patch-friendly src_prepareMichał Górny2020-06-231-0/+23
| | | | | | | | | Introduce llvm.org_src_prepare() that calls appropriate src_prepare() implementation (either cmake or default), causing patch application to happen in ${WORKDIR} rather than ${S}. This makes it possible to use patches made against llvm-project git repository out of the box. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: mark netsurf.eclass @DEAD.Michael Orlitzky2020-06-221-1/+2
| | | | Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* toolchain.eclass: drop fix_libtool_files.shSergei Trofimovich2020-06-191-31/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fixlafiles.awk can mangle two things in .la fils: 1. patch reference 'from .../libstdc++.la' to '-lstdc++' 2. change ${CHOST} when user switches CHOST and rebuilds the system [1.] is not relevant since gcc-4 in Gentoo where we started deleting libstdc++.la on gcc installation. Nothing should embed libstdc++.la paths anymore. [2.] is a rare one-off step that has a lot more caveats than just .la file patching. Generally .la files are tracked by package manager and should not be changed after they are installed on disk. 'fix_libtool_files.sh' breaks that invariant. On top of that portage's FEATURES=fixlafiles removes nested .la files references. Let's remove 'fix_libtool_files.sh' and 'fixlafiles.awk' completely. If really needed we can reintroduce it as a separate tool. Closes: https://bugs.gentoo.org/722554 Closes: https://bugs.gentoo.org/657330 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/distutils-r1.sh: update dep valuesMichał Górny2020-06-191-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Set min nose/pytest versionsMichał Górny2020-06-191-2/+2
| | | | | | | Require minimum nose/pytest versions in distutils_enable_tests. This should save us some annoying bug reports from outdated systems. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kde.org.eclass: kde-frameworks/kxmlrpcclient moved to portingAidsAndreas Sturmlechner2020-06-141-0/+3
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* multilib.eclass: populate STRINGSSergei Trofimovich2020-06-141-0/+4
| | | | | | | | | | | | | | | | For both multilib and non-multilib profiles binutils provides tools with native CHOST prefix only. For example on amd64 there is only 'x86_64-pc-linux-gnu-strings' and 'strings'. autoconf usually uses AC_CHECK_TOOL(STRINGS, strings) autodetection to discover either of these. The change overrides STRINGS and friends to 'x86_64-pc-linux-gnu-strings' for multilib setup similar to other environment variables. Tested on media-libs/x264 and x11-libs/cairo packages. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain-funcs.eclass: export tc-get*STRINGS helpersSergei Trofimovich2020-06-141-0/+8
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: export PKG_CONFIG in multilib_toolchain_setupMike Gilbert2020-06-131-0/+2
| | | | | | | | | This ensures that autoconf will not try to use a crossdev wrapper for non-native ABIs. Instead, we always use the native pkg-config, and override its behavior via PKG_CONFIG_LIBDIR and PKG_CONFIG_SYSTEM_LIBRARY_PATH. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* multilib.eclass: export PKG_CONFIG_SYSTEM_LIBRARY_PATH in ↵Mike Gilbert2020-06-131-0/+2
| | | | | | | | | multilib_toolchain_setup This ensures pkg-config --libs will filter -L/usr/lib from its output for non-native ABIs. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* Remove MULTILIB_USEDEP from all virtual/pkgconfig dependenciesMike Gilbert2020-06-133-13/+5
| | | | | Bug: https://bugs.gentoo.org/723112 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: override 'nm' tool with tuple-prefixed oneSergei Trofimovich2020-06-131-0/+2
| | | | | | | | | | | | | | x11-libs/libdrm and media-libs/libglvnd fail to find 'nm' tool on sys-devel/binutils-config[-native-symlinks] system as: `meson.build:40:0: ERROR: Program(s) ['nm'] not found or not executable` It's caused by the code that locates the tool as: `prog_nm = find_program('nm')`. The change adds 'nm' tool along with other binutils tools. Closes: https://bugs.gentoo.org/720886 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/go-module.eclass: remove EGO_VENDOR supportWilliam Hubbs2020-06-121-75/+6
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* eclass/cargo.eclass: drop EAPI=6 supportGeorgy Yakovlev2020-06-121-1/+0
| | | | | | no consumers left in the tree Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* toolchain.eclass: drop unused --enable-altivecSergei Trofimovich2020-06-101-4/+7
| | | | | | | | | | | | | | --enable-altivec does not do anything since gcc-4: https://gcc.gnu.org/legacy-ml/gcc/2005-03/msg01091.html The change drops passing of --enable-altivec for all gcc versions and drops IUSE=altivec for gcc-10+. Once gcc-10 is stable everywhere we can drop IUSE=altivec for all gcc versions. Reported-by: Georgy Yakovlev Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/usr-ldscript: make gen_usr_ldscript a noop on PrefixFabian Groffen2020-06-081-0/+1
| | | | | | | | | Like in the old toolchain-funcs.eclass, don't do any usr-linking on Prefix (because there is no usr-split). In particular, this avoid doing stuff like calling linkers with arguments they don't support and therefore dying. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* cmake-utils.eclass: DEPRECATED noticeAndreas Sturmlechner2020-06-081-0/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass: last-rite php-ext-source-r2.eclassJoonas Niilola2020-06-081-1/+2
| | | | | Bug: https://bugs.gentoo.org/727472 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* eclass/nvidia-driver.eclass: Set DESCRIPTION/HOMEPAGEJeroen Roovers2020-06-051-0/+2
| | | | Signed-off-by: Jeroen Roovers <jer@gentoo.org>
* kernel-2.eclass: use $(CC) as HOSTCCSergei Trofimovich2020-06-031-0/+1
| | | | | | | | | | | | | Before the change HOSTCC always used gcc. This was detected by Agostino on linux-headers package. After the change HOSTCC uses user-specified CC (or BUILD_CC). Tested on native linux-headers and on cross-*/linux-headers. Reported-by: Agostino Sarubbo https://bugs.gentoo.org/725878 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* cargo.eclass: tc-export AR CCGeorgy Yakovlev2020-06-021-1/+3
| | | | | | | Bug: https://bugs.gentoo.org/726428 Closes: https://bugs.gentoo.org/726714 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* distutils-r1.eclass: Cover plain '[entry_points]' in setup.cfgMichał Górny2020-06-011-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* qt5-build.eclass: Drop obsolete pre-Qt-5.14.2 quirksAndreas Sturmlechner2020-05-301-8/+2
| | | | | Bug: https://bugs.gentoo.org/676948 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* subversion.eclass: enable subversion[http] if possibleMikle Kolyada2020-05-291-5/+2
| | | | | | Closes: https://bugs.gentoo.org/725952 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* llvm.eclass: Fix prepending LLVM path before system pathsMichał Górny2020-05-282-10/+31
| | | | | | | | | Do not prepend LLVM path before system path, in particular before ccache/distcc paths. Instead, prepend it before the first LLVM version found in PATH, or append to the end if no LLVM is found in PATH. Closes: https://bugs.gentoo.org/627726 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.eclass: Remove remnants of slot :0 supportMichał Górny2020-05-281-13/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.eclass: Add initial testsMichał Górny2020-05-281-0/+138
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: remove unused bzr.eclassJoonas Niilola2020-05-281-290/+0
| | | | | Closes: https://bugs.gentoo.org/719892 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* kernel-2.eclass: avoid lexicographical compare on versions, bug #705246Sergei Trofimovich2020-05-271-4/+4
| | | | | | | | | | | | | | | | Originally found in bug #705240 as: ``` if [[ ... || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then ``` '>' are string comparisons. They are benign so far, but will start failing on linux-10 :) Let's be consistent and use version comparison. Closes: https://bugs.gentoo.org/705246 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kernel-2.eclass: Revert "avoid lexicographical compare on versions, bug #705246"Sergei Trofimovich2020-05-261-4/+4
| | | | | | | | | | | | | | | | | | | This reverts commit 8493b3a1823ea5f24f44ea317ceced513b6722ed. Syntax errors: ``` kernel-2.eclass: line 1081: syntax error near `${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}' kernel-2.eclass: line 1081: syntax error near `${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}' kernel-2.eclass: line 1081: `if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.24 ]] ; then' kernel-2.eclass: line 1081: `if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.24 ]] ; then' ``` Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kernel-2.eclass: avoid lexicographical compare on versions, bug #705246Sergei Trofimovich2020-05-261-4/+4
| | | | | | | | | | | | | | | | Originally found in bug #705240 as: ``` if [[ ... || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then ``` '>' are string comparisons. They are benign so far, but will start failing on linux-10 :) Let's be consistent and use version comparison. Closes: https://bugs.gentoo.org/705246 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* qt5-build.eclass: Drop pre-Qt 5.14 quirksAndreas Sturmlechner2020-05-261-2/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: Introduce qt5_tools_configureAndreas Sturmlechner2020-05-261-0/+31
| | | | | | | | | | | This is run in src_configure for qttools modules unless QT5_TARGET_SUBDIRS is defined. Implementing an idea of Chiitoo in the linked PR. Closes: https://github.com/gentoo/qt/pull/218 Thanks-to: Jimi Huotari <chiitoo@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ros-catkin.eclass: typo fixAlessandro Barbieri2020-05-261-1/+1
| | | | | | Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/13366 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain-funcs.eclass: tweak commentSergei Trofimovich2020-05-251-2/+2
| | | | | | | s/archiver indexer/archive indexer/ Reported-by: Arfrever Frehtes Taifersar Arahesis Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: populate READELFSergei Trofimovich2020-05-251-0/+2
| | | | | | | | | | | | | | | | | For both multilib and non-multilib profiles binutils provides tools with native CHOST prefix only. For example on amd64 there is only 'x86_64-pc-linux-gnu-readelf' and 'readelf'. meson build system uses 'readelf' or $READELF binaries and relies on meson.eclass to populate READELF. The change overrides READELF and friends to 'x86_64-pc-linux-gnu-readelf' for multilib setup similar to other environment variables. Tested on net-libs/gssdp package. Closes: https://bugs.gentoo.org/725304 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain-funcs.eclass: export tc-get*READELF helpersSergei Trofimovich2020-05-251-0/+9
| | | | | Bug: https://bugs.gentoo.org/725304 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* python-utils-r1.eclass: Enable python3_9Michał Górny2020-05-252-3/+17
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multilib.eclass: save/restore AR, NM, RANLIB, OBJDUMP, STRIP, bug #724558Sergei Trofimovich2020-05-241-0/+5
| | | | | | | | | | | | | | | | | | A follow-up to commit dd35b529194fdc ("populate AR, NM, RANLIB, OBJDUMP, STRIP, bug #724558") Before the change AR and friends were set for non-default ABI and were not restored to defaults for next native ABI. It should not be a problem for default case as both do match. For consistency with other variables now we restore possibly unset values for native ABI. Noticed by Arfrever Frehtes Taifersar Arahesis. Reported-by: Arfrever Frehtes Taifersar Arahesis Bug: https://bugs.gentoo.org/724558 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>