summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* eclass/ros-catkin.eclass: Bump C++ standard to C++14Alexis Ballier2020-05-181-1/+1
| | | | Signed-off-by: Alexis Ballier <aballier@gentoo.org>
* mozcoreconf-v6.eclass: Work around missing "clang" USE flag in seamonkeyLars Wendler2020-05-151-1/+1
| | | | | Bug: https://bugs.gentoo.org/720316 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* postgres.eclass: Add 9999 slotAaron W. Swenson2020-05-151-1/+1
| | | | Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
* kernel-2.eclass: Add gcc 10.X compatibility to CPU opt patchMike Pagano2020-05-131-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* rebar.eclass: Remove myself from maintainersAmadeusz Piotr Żołnowski2020-05-111-1/+1
| | | | Signed-off-by: Amadeusz Piotr Żołnowski <aidecoe@gentoo.org>
* meson.eclass: add workaround for broken boost detectionMike Gilbert2020-05-101-0/+4
| | | | | Bug: https://bugs.gentoo.org/721786 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* unpacker.eclass: respect AR variable in unpack_debMike Gilbert2020-05-101-1/+2
| | | | | Closes: https://bugs.gentoo.org/722054 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/tests/toolchain.sh: add znver2 downgrade testSergei Trofimovich2020-05-101-0/+1
| | | | | Bug: https://bugs.gentoo.org/721690 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: downgrade znver2 to znver1Alexey Sokolov2020-05-101-0/+1
| | | | | | | | Multiple other downgrades are missing here after 4.9 though Closes: https://bugs.gentoo.org/721690 Closes: https://github.com/gentoo/gentoo/pull/15733 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* meson.eclass: append /usr/share/pkgconfig to PKG_CONFIG_PATHMike Gilbert2020-05-051-2/+2
| | | | | Bug: https://bugs.gentoo.org/720866 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass: fix copyright header on rebar.eclassJoonas Niilola2020-05-041-1/+1
| | | | Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* rebar.eclass: Run tests with newly compiled library.Hanno Böck2020-05-041-1/+3
| | | | | Closes: https://bugs.gentoo.org/720448 Signed-off-by: Hanno Böck <hanno@gentoo.org>
* meson.eclass: use a subshell to unexport variables temporarilyMike Gilbert2020-05-031-16/+18
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: export FLAGS for older versions on mesonMike Gilbert2020-05-031-0/+15
| | | | | Closes: https://bugs.gentoo.org/720860 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: ignore PKG_CONFIG_PATH due to Portage bugMike Gilbert2020-05-031-2/+2
| | | | | Bug: https://bugs.gentoo.org/720866 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: respect PKG_CONFIG_PATH and PKG_CONFIG_LIBDIRMike Gilbert2020-05-031-5/+9
| | | | | | | | | Respect PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR if set before meson_src_configure. Add BUILD variants for use in cross-compiles. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: avoid leaking BUILD vars outside meson_src_configureMike Gilbert2020-05-031-1/+14
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>