From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4BED0158096 for ; Wed, 17 Aug 2022 16:18:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 373BDE08ED; Wed, 17 Aug 2022 16:18:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A654E08ED for ; Wed, 17 Aug 2022 16:18:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2FA6A341362 for ; Wed, 17 Aug 2022 16:18:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B7844580 for ; Wed, 17 Aug 2022 16:18:02 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1660753074.f95f522cef2e681c07608bef7b9b8282ea8ca177.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/amdgpu-pro-vulkan/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/amdgpu-pro-vulkan/Manifest media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-22.20.0.1438747.ebuild X-VCS-Directories: media-libs/amdgpu-pro-vulkan/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: f95f522cef2e681c07608bef7b9b8282ea8ca177 X-VCS-Branch: master Date: Wed, 17 Aug 2022 16:18:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f7697bf7-fd15-4535-ae78-83772c3bf0e5 X-Archives-Hash: cf5b4a975c9762f4939a7d3c220e8be4 commit: f95f522cef2e681c07608bef7b9b8282ea8ca177 Author: Adel KARA SLIMANE zegrapher com> AuthorDate: Fri Jul 22 21:18:22 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Aug 17 16:17:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95f522c media-libs/amdgpu-pro-vulkan: version bump to 22.20 Signed-off-by: Adel KARA SLIMANE zegrapher.com> Signed-off-by: Joonas Niilola gentoo.org> media-libs/amdgpu-pro-vulkan/Manifest | 2 + .../amdgpu-pro-vulkan-22.20.0.1438747.ebuild | 136 +++++++++++++++++++++ 2 files changed, 138 insertions(+) diff --git a/media-libs/amdgpu-pro-vulkan/Manifest b/media-libs/amdgpu-pro-vulkan/Manifest index 3d89b47ae5a9..91550f848c48 100644 --- a/media-libs/amdgpu-pro-vulkan/Manifest +++ b/media-libs/amdgpu-pro-vulkan/Manifest @@ -6,3 +6,5 @@ DIST amdgpu-pro-vulkan-22.10.0.1395274-amd64.deb 9243596 BLAKE2B b083b636cc2f4e1 DIST amdgpu-pro-vulkan-22.10.0.1395274-i386.deb 8992376 BLAKE2B 7b3ea214e5cc6a987cc8cfefa3bce1e06426fca6e0cf125b71e90b5f3d350a8f15c635abb541d479703b5ca0f546a968076a522d526a68e1ec12a90b466721da SHA512 5e5ba42933c820be524cd21685f85c0efc3787e9f1f2bf1d985aea7fd3a386ca98ea7f9f75d32d15d3f9d66e444177cbc7e6f357fe1092bbf193bc9b0f97ee8a DIST amdgpu-pro-vulkan-22.10.3.1420322-amd64.deb 9225672 BLAKE2B ea0496d06ef793a9896e0ff588de13e0a162b88eb3412c3ceea339c469fa08da6a079941209384169fc17cc5251db133d362c5fc631310c636ee23d45338498c SHA512 4bc98bfeb206274f782dea5464d7569cb0edab7816386ec496e8ddb2dba939adffd58cf9fbc470023b28e1cfd0336515ba41d07274547e4994d7a3940a4cacf6 DIST amdgpu-pro-vulkan-22.10.3.1420322-i386.deb 8985660 BLAKE2B dc55f8b9b22269efdae0be7d7dcd67afe25390dc148fbc25b321ff901d764b988aec6465d2faa75a6d6d29256de33add37d9193b290bb717d63f8915e05ad78e SHA512 0bab89dea9b475efae99320f4836ed2ce132a9e04064cd64c2391fbf1f23a2726d3d255f8fae455ede113060a0aad057d028c24548df9a471c907c5dc6422d37 +DIST amdgpu-pro-vulkan-22.20.0.1438747-amd64.deb 9225180 BLAKE2B 0567f16e7ffe0f7c2a46e54eb93d57001f870e9450d63587f9e1b0b74740a4ed43155b36abb155a0e614da36a4241f1b3b26ae06de5472207f7efd62a0823011 SHA512 0629652977190f61138b25daacb5ab13c27121cf674a43aef6023e0c9c5d5d29ae21f7e20cfdb3ca53e354c6409940d664a18df39cc43093a7929af8a84b8998 +DIST amdgpu-pro-vulkan-22.20.0.1438747-i386.deb 8953448 BLAKE2B 4a004ce7fe93fef484e234ca25c1df7798d82e9ce77dba9c8316baebaa567a0a05564bfdcedb35f557ff72b45bd7bbf102bc2d376fb3c36e57dd831c3d768652 SHA512 8ec2b53a42c7c589a6471fd955cb69a3ad40d91551d60a1583bf7bf37927fd6936064a18392a81e123ab3765a3a6353b1cc1ca51632e5466602e460e2ed98891 diff --git a/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-22.20.0.1438747.ebuild b/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-22.20.0.1438747.ebuild new file mode 100644 index 000000000000..a9b1cda7a17a --- /dev/null +++ b/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-22.20.0.1438747.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit unpacker + +MY_PV_HIGH=$(ver_cut 1) +MY_PV_MIDDLE=$(ver_cut 2) +MY_PV_LOW=$(ver_cut 3) +MY_PV_REV=$(ver_cut 4) + +MY_PV="${MY_PV_HIGH}.${MY_PV_MIDDLE}.${MY_PV_LOW}" +[[ $MY_PV_LOW = "0" ]] && MY_PV="${MY_PV_HIGH}.${MY_PV_MIDDLE}" + +MY_PV_FULL="${MY_PV}-${MY_PV_REV}" + +MY_PN="vulkan-amdgpu-pro" + +MY_LINK="https://repo.radeon.com/amdgpu/${MY_PV}/ubuntu/pool/proprietary/v/${MY_PN}" + +UBUNTU_VER="22.04" + +DESCRIPTION="AMD's closed source vulkan driver, from Radeon Software for Linux" +HOMEPAGE="https://www.amd.com/en/support" +SRC_URI=" + abi_x86_64? ( ${MY_LINK}/${MY_PN}_${MY_PV_FULL}~${UBUNTU_VER}_amd64.deb -> ${P}-amd64.deb ) + abi_x86_32? ( ${MY_LINK}/${MY_PN}_${MY_PV_FULL}~${UBUNTU_VER}_i386.deb -> ${P}-i386.deb ) +" +S="${WORKDIR}" + +RESTRICT="bindist mirror" + +LICENSE="AMD-GPU-PRO-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="abi_x86_32 abi_x86_64 video_cards_amdgpu" + +REQUIRED_USE="video_cards_amdgpu" + +BDEPEND="dev-util/patchelf" + +QA_PREBUILT=" + usr/lib64/amdvlkpro64.so* + usr/lib/amdvlkpro32.so* +" + +src_unpack() { + if use abi_x86_64 ; then + mkdir "${S}/${PN}-amd64" || die + cd "${S}/${PN}-amd64" || die + unpack_deb "${DISTDIR}/${P}-amd64.deb" + fi + + if use abi_x86_32 ; then + mkdir "${S}/${PN}-i386" || die + cd "${S}/${PN}-i386" || die + unpack_deb "${DISTDIR}/${P}-i386.deb" + fi +} + +src_prepare() { + if use abi_x86_64 ; then + cd "${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/" || die + + # Make sure there's only one file in the folder, to prevent unexpected behavior of the next command + [[ "$(ls | wc -l)" = '1' ]] || die "more than one file in opt/amdgpu-pro/lib/x86_64-linux-gnu/" + + # Add "pro" in the .so file's name, and remove any numeric extension "e.g. amdvlk64.so.1" + mv amdvlk64.so* amdvlkpro64.so || die + + # same with the SONAME + patchelf --set-soname amdvlkpro64.so "${PWD}"/amdvlkpro64.so || die + + cd "${S}/${PN}-amd64/opt/amdgpu-pro/etc/vulkan/icd.d/" || die + eapply "${FILESDIR}"/icd_amd64.patch + mv amd_icd64.json amd_pro_icd64.json || die + fi + + if use abi_x86_32 ; then + cd "${S}/${PN}-i386/opt/amdgpu-pro/lib/i386-linux-gnu/" || die + + # Make sure there's only one file in the folder, to prevent unexpected behavior of the next command + [[ "$(ls | wc -l)" = '1' ]] || die "more than one file in opt/amdgpu-pro/lib/i386-linux-gnu/" + + # Add "pro" in the .so file's name, and remove any numeric extension "e.g. amdvlk32.so.1" + mv amdvlk32.so* amdvlkpro32.so || die + + # same with the SONAME + patchelf --set-soname amdvlkpro32.so "${PWD}"/amdvlkpro32.so || die + + cd "${S}/${PN}-i386/opt/amdgpu-pro/etc/vulkan/icd.d/" || die + eapply "${FILESDIR}"/icd_x86.patch + mv amd_icd32.json amd_pro_icd32.json || die + fi + + default +} + +src_install() { + if use abi_x86_64 ; then + # Vulkan driver + insinto /usr/lib64 + doins "${S}"/"${PN}"-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/amdvlkpro64.so + + # ICD loader + insinto /usr/share/vulkan/icd.d + doins "${S}"/"${PN}"-amd64/opt/amdgpu-pro/etc/vulkan/icd.d/amd_pro_icd64.json + fi + + if use abi_x86_32 ; then + # Vulkan driver + insinto /usr/lib + doins "${S}"/"${PN}"-i386/opt/amdgpu-pro/lib/i386-linux-gnu/amdvlkpro32.so + + # ICD loader + insinto /usr/share/vulkan/icd.d + doins "${S}"/"${PN}"-i386/opt/amdgpu-pro/etc/vulkan/icd.d/amd_pro_icd32.json + fi +} + +pkg_postinst() { + + if use abi_x86_32; then + elog "To run a 32bit program using the amdgpu-pro vulkan driver, the environment variable" + elog " VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd32.json" + elog "must be set beforehand" + elog + fi + + if use abi_x86_64; then + elog "To run a 64bit program using the amdgpu-pro vulkan driver, the environment variable" + elog " VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json" + elog "must be set beforehand" + fi +}