summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* multilib.eclass: consolidate save/restore listSergei Trofimovich2020-05-241-2/+16
| | | | | | | | | To avoid duplicating save/restore variable lists gathered the list into a separate helper local variables. This change is a no-op. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: don't backup/restore ASSergei Trofimovich2020-05-241-4/+2
| | | | | | | Not needed since Oct 27 2011, commit b0ab4faaee818c7bd5 ("drop AS export since get_abi_ASFLAGS no longer exists"), Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* ghc-package.eclass: disable CFLAGS QA check, bug #722078Sergei Trofimovich2020-05-241-0/+8
| | | | | | | | | | | | | | GHC uses it's own native code generator. Portage's QA check generates false positive because it assumes presence of GCC-specific sections. Workaround false positiove by disabling the check completely. bug #722078, bug #677600 Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/722078 Bug: https://bugs.gentoo.org/677600 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Revert "meson.eclass: define host_machine in the native machine file"Mike Gilbert2020-05-231-6/+0
| | | | | | | This change did not have the desired effect. Reverts: c21b75bd0b6bf77e2b51c51222b4281729bb1c01. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: define host_machine in the native machine fileMike Gilbert2020-05-231-0/+6
| | | | | | | Should resolve a problem with inline assembly in media-libs/mesa for multilib builds. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* linux-info.eclass: avoid lexicographical compare on numbers, bug #705248Sergei Trofimovich2020-05-231-3/+3
| | | | | | | | | | | | | | | | | Originally found in bug #705240 as: ``` error=0 ... if [[ ${error} > 0 ]]; then ... ``` '>' are string comparisons. They are benign in this case, but let's be consistent and use integer comparison. Closes: https://bugs.gentoo.org/705248 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* gnome-python-common-r1.eclass: Mark as DEADAndreas Sturmlechner2020-05-231-0/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* twisted-r1.eclass: RemoveMichał Górny2020-05-231-238/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multilib.eclass: populate AR, NM, RANLIB, OBJDUMP, STRIP, bug #724558Sergei Trofimovich2020-05-231-0/+5
| | | | | | | | | | | | | | | | 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-nm' and 'nm'. On abi_x86_32 tools are usually configured with --host=i686-pc-linux-gnu. Configure tries i686-pc-linux-gnu-nm, then falls back to 'nm'. The change overrides NM and friends to 'x86_64-pc-linux-gnu-nm' for multilib setup similar to other environment variables. Reported-by: Kent Fredric Closes: https://bugs.gentoo.org/724558 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/kernel-build.eclass: fix messed up dtbs_installAlexey Shvetsov2020-05-221-8/+4
| | | | | Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-{build,install}.eclass: more ARM supportAlexey Shvetsov2020-05-212-2/+29
| | | | | Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: permit savedconfig without predef .configAlexey Shvetsov2020-05-211-1/+1
| | | | | Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>