diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2024-03-21 14:22:21 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-26 10:19:08 +0100 |
commit | 50057dff3afe668862240c7b041c044d5900c9dc (patch) | |
tree | 7e81fcac7326e7df2bec04ea4411115ae6716bc4 | |
parent | dev-util/hip: fix compilation with musl (diff) | |
download | gentoo-50057dff3afe668862240c7b041c044d5900c9dc.tar.gz gentoo-50057dff3afe668862240c7b041c044d5900c9dc.tar.bz2 gentoo-50057dff3afe668862240c7b041c044d5900c9dc.zip |
dev-libs/half: move half.hpp from /usr/include to /usr/include/half
Previous idea to install header to /usr/include was unfortunetely not very good.
As Gentoo ships version from ROCm/half, correct place should be /usr/include/half
per https://github.com/ROCm/half/blob/rocm-6.0.2/CMakeLists.txt#L27
When half.hpp is installed directly into /usr/include, it causes issues with every ROCm component,
including MIOpen, MIVisionX, AMDMIGraphX, rpp, MIFin, rocAL. These projects as well as some other
non-ROCm projects include <half/half.hpp>.
This change is added with ebuild revbump, with few followup commits:
* sci-libs/composable-kernel-5.7.1-r1 will drop dev-libs/half from dependencies (because it was never needed)
* sci-libs/miopen 5.1.3 and 5.7.1 should use -DHALF_INCLUDE_DIR
Other changes:
* Add myself to maintainers
* Change HOMEPAGE to https://github.com/ROCm/composable_kernel (because sourceforge code is not used)
* Rename ROCmSoftwarePlatform -> ROCm
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | dev-libs/half/half-1.12.0-r1.ebuild | 17 | ||||
-rw-r--r-- | dev-libs/half/half-1.12.0.ebuild | 17 | ||||
-rw-r--r-- | dev-libs/half/metadata.xml | 4 |
3 files changed, 21 insertions, 17 deletions
diff --git a/dev-libs/half/half-1.12.0-r1.ebuild b/dev-libs/half/half-1.12.0-r1.ebuild new file mode 100644 index 000000000000..ca1f81430b3d --- /dev/null +++ b/dev-libs/half/half-1.12.0-r1.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Half-precision floating-point library" +HOMEPAGE="https://github.com/ROCm/half" +SRC_URI="https://github.com/ROCm/half/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64" +SLOT="0/$(ver_cut 1)" + +src_install() { + insinto /usr/include/half + doins include/half.hpp +} diff --git a/dev-libs/half/half-1.12.0.ebuild b/dev-libs/half/half-1.12.0.ebuild deleted file mode 100644 index ac2051bdc10b..000000000000 --- a/dev-libs/half/half-1.12.0.ebuild +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="Half-precision floating-point library" -HOMEPAGE="http://half.sourceforge.net/" -SRC_URI="https://github.com/ROCmSoftwarePlatform/half/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -KEYWORDS="~amd64" -SLOT="0/$(ver_cut 1)" - -src_install() { - cd include || die - doheader half.hpp -} diff --git a/dev-libs/half/metadata.xml b/dev-libs/half/metadata.xml index b71bc2af0234..64e8126aa406 100644 --- a/dev-libs/half/metadata.xml +++ b/dev-libs/half/metadata.xml @@ -12,6 +12,10 @@ <email>xgreenlandforwyy@gmail.com</email> <name>Yiyang Wu</name> </maintainer> + <maintainer type="person"> + <email>lockalsash@gmail.com</email> + <name>Sv. Lockal</name> + </maintainer> <upstream> <remote-id type="github">ROCm/half</remote-id> </upstream> |