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 9643815808B for ; Sun, 18 Feb 2024 16:15:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B773F2BC026; Sun, 18 Feb 2024 16:15:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 94B6C2BC026 for ; Sun, 18 Feb 2024 16:15:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 9FC0334312E for ; Sun, 18 Feb 2024 16:15:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03B9114D2 for ; Sun, 18 Feb 2024 16:15:44 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1708269275.0643c00df81ff8a08cff0d2f7e929ae341404212.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-libs/amdvlk-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-libs/amdvlk-bin/Manifest media-libs/amdvlk-bin/amdvlk-bin-2024.1.1.ebuild media-libs/amdvlk-bin/metadata.xml X-VCS-Directories: media-libs/amdvlk-bin/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 0643c00df81ff8a08cff0d2f7e929ae341404212 X-VCS-Branch: master Date: Sun, 18 Feb 2024 16:15:44 +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: c8cd3c36-489c-4338-8c67-c3f4922d311b X-Archives-Hash: fc00707c0f931fb6275f98efd79f1232 commit: 0643c00df81ff8a08cff0d2f7e929ae341404212 Author: Denis Reva gmail com> AuthorDate: Sun Feb 18 15:14:18 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sun Feb 18 15:14:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0643c00d media-libs/amdvlk-bin: new package, add 2024.1.1 Signed-off-by: Denis Reva gmail.com> media-libs/amdvlk-bin/Manifest | 2 + media-libs/amdvlk-bin/amdvlk-bin-2024.1.1.ebuild | 109 +++++++++++++++++++++++ media-libs/amdvlk-bin/metadata.xml | 15 ++++ 3 files changed, 126 insertions(+) diff --git a/media-libs/amdvlk-bin/Manifest b/media-libs/amdvlk-bin/Manifest new file mode 100644 index 0000000000..13d0d16472 --- /dev/null +++ b/media-libs/amdvlk-bin/Manifest @@ -0,0 +1,2 @@ +DIST amdvlk-bin-2024.1.1-amd64.rpm 18242384 BLAKE2B f26155287dfd7c968581b5eba3a4ad4ac9e1c0d4740a9aa57e120c8a21a1638cf0f02bcf3fd51fb2b6150031b7d81a2c755095807f8afbec5727be4dd661bcaf SHA512 f75b175377a9c252d564db5d99aae47d833d6ddc2c0b7c9292113e96e0635d059deae82ef54e9a88025c28b8b2271113ab468c72a0aa16c4908857b970f3634e +DIST amdvlk-bin-2024.1.1-i386.deb 25981812 BLAKE2B c8cb424798b6d2f64f0d4c68930c4fbe7ac02039373d33aa6cc0c2912b71df7a7adff64e3f60be52f3bd4bcec0c91ee5f3a0edfaa88dc2f09390c245e94f0170 SHA512 6c3f5aea6e734fa3550c7f4103108dd3efca2ce0ddb1e0410b46ef3d4171deb66cf10b2e38935bf965d729daa221fd6af119582ef7b15e779df80d84122b9587 diff --git a/media-libs/amdvlk-bin/amdvlk-bin-2024.1.1.ebuild b/media-libs/amdvlk-bin/amdvlk-bin-2024.1.1.ebuild new file mode 100644 index 0000000000..9c98574bf3 --- /dev/null +++ b/media-libs/amdvlk-bin/amdvlk-bin-2024.1.1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +inherit rpm unpacker multilib-build + +DESCRIPTION="AMD Open Source Driver for Vulkan: official binary version" +HOMEPAGE="https://github.com/GPUOpen-Drivers/AMDVLK" +MY_PV="${PV/'.'/'.Q'}" +FETCH_URI="https://github.com/GPUOpen-Drivers/AMDVLK/releases/download" +SRC_URI="${FETCH_URI}/v-${MY_PV}/amdvlk-${MY_PV}.x86_64.rpm -> ${P}-amd64.rpm +${FETCH_URI}/v-${MY_PV}/amdvlk_${MY_PV}_i386.deb -> ${P}-i386.deb" +RESTRICT="test" +REQUIRED_USE="abi_x86_64" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* ~amd64" # The hardware is not supported x86 anymore + +RDEPEND=" + sys-libs/zlib[${MULTILIB_USEDEP}] + app-arch/zstd[${MULTILIB_USEDEP}] + x11-libs/libdrm[${MULTILIB_USEDEP}] + x11-libs/libXrandr[${MULTILIB_USEDEP}] + x11-libs/libxcb[${MULTILIB_USEDEP}] + x11-libs/libxshmfence[${MULTILIB_USEDEP}] + >=media-libs/vulkan-loader-1.3.224[${MULTILIB_USEDEP}] + " +DEPEND=" + ${RDEPEND} +" +BDEPEND="sys-apps/sed" +QA_PREBUILT=" + usr/lib/* + usr/lib64/* +" +# TODO: Found a correct way to disable QA_SONAME for /usr/lib/amdvlk32.so +# I don't know why the current value is not working +QA_SONAME="usr/lib/*" + +S=${WORKDIR} + +pkg_pretend(){ + if use abi_x86_32; then + ewarn "32-bit amdvlk binary is untested" + ewarn "Work in progress" + fi +} + +src_unpack(){ + elog "Unpacking abi_x86_64..." + mkdir -p "${S}"/amd64 + cd "${S}"/amd64 || die + rpm_unpack ${P}-amd64.rpm + if use abi_x86_32; then + elog "Unpacking abi_x86_32..." + mkdir -p "${S}"/i386 || die + cd "${S}"/i386 || die + unpacker ${P}-i386.deb + fi +} + +src_prepare() { + default + if use abi_x86_32; then + elog "Changing layout of abi_x86_32 from debian/ubuntu to Gentoo/RHEL-alike" + mv "${S}/i386/usr/lib/i386-linux-gnu/amdvlk32.so" "${S}/i386/usr/lib/" || die + rm -d "${S}/i386/usr/lib/i386-linux-gnu/" || die + rm -r "${S}/i386/usr/share/" || die + fi + mv "${S}/amd64/usr/share/doc/amdvlk/LICENSE.txt" "${S}" || die + rm -r "${S}/amd64/usr/share/" || die +} + +src_configure(){ + if use abi_x86_32; then + elog "Changing configuration of abi_x86_32 from debian/ubuntu to Gentoo/RHEL-alike" + sed -i 's/\/usr\/lib\/i386-linux-gnu\/amdvlk32.so/\/usr\/lib\/amdvlk32.so/g' \ + "${S}/i386/etc/vulkan/icd.d/amd_icd32.json" || die + sed -i 's/\/usr\/lib\/i386-linux-gnu\/amdvlk32.so/\/usr\/lib\/amdvlk32.so/g' \ + "${S}/i386/etc/vulkan/implicit_layer.d/amd_icd32.json" || die + fi +} +src_compile(){ + elog "Nothing to compile..." +} + +src_install(){ + if use abi_x86_32; then + cp -a "${S}/i386"/* "${D}" || die + fi + cp -a "${S}/amd64"/* "${D}" || die + dodoc LICENSE.txt +} + +pkg_postinst(){ + ewarn "If you are using Xorg:" + ewarn "Make sure the following line is NOT included in the any Xorg configuration section:" + ewarn "| Driver \"modesetting\"" + ewarn "and make sure you use DRI3 mode for Xorg" + ewarn "If you are using Wayland, it should be fine" + elog "More information about the configuration can be found here:" + elog "https://github.com/GPUOpen-Drivers/AMDVLK" + elog "You can use AMD_VULKAN_ICD variable to switch to the required driver." + elog "AMD_VULKAN_ICD=RADV application - for using radv." + elog "AMD_VULKAN_ICD=AMDVLK application - for using amdvlk." +} diff --git a/media-libs/amdvlk-bin/metadata.xml b/media-libs/amdvlk-bin/metadata.xml new file mode 100644 index 0000000000..0d58bfb318 --- /dev/null +++ b/media-libs/amdvlk-bin/metadata.xml @@ -0,0 +1,15 @@ + + + + + denis7774@gmail.com + Denis Reva + rarogcmex + + + The AMD Open Source Driver for Vulkan® is an open-source Vulkan driver for Radeon™ graphics adapters on Linux®. It is built on top of AMD's Platform Abstraction Library (PAL), a shared component that is designed to encapsulate certain hardware and OS-specific programming details for many of AMD's 3D and compute drivers. Leveraging PAL can help provide a consistent experience across platforms, including support for recently released GPUs and compatibility with AMD developer tools. + + + GPUOpen-Drivers/AMDVLK + +