[arch-commits] Commit in amdvlk/trunk (PKGBUILD pal.patch)

Laurent Carlier lcarlier at gemini.archlinux.org
Thu Aug 18 10:07:00 UTC 2022


    Date: Thursday, August 18, 2022 @ 10:07:00
  Author: lcarlier
Revision: 453094

upgpkg: amdvlk 2022.Q3.3-1: upstream update 2022.Q3.3

Added:
  amdvlk/trunk/pal.patch
Modified:
  amdvlk/trunk/PKGBUILD

-----------+
 PKGBUILD  |   20 +++++++++-----------
 pal.patch |   11 +++++++++++
 2 files changed, 20 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-18 10:05:45 UTC (rev 453093)
+++ PKGBUILD	2022-08-18 10:07:00 UTC (rev 453094)
@@ -2,7 +2,7 @@
 # Contributor: lod <aur at cyber-anlage.de>
 
 pkgname=amdvlk
-pkgver=2022.Q3.1
+pkgver=2022.Q3.3
 pkgrel=1
 pkgdesc="AMD's standalone Vulkan driver"
 arch=(x86_64)
@@ -10,10 +10,11 @@
 license=('MIT')
 provides=('vulkan-driver')
 makedepends=('perl-xml-xpath' 'python' 'wayland' 'libxrandr' 'xorg-server-devel' 'cmake' 'ninja' 'git')
-makedepends+=('clang' 'lld')
 options=('!lto')
-source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz")
-sha256sums=('fc1a26cbd3aacd197d17025836fdbbf29a9529af54937c3bfabd58ab86c3d2b3')
+source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz"
+        pal.patch)
+sha256sums=('9efa194cf0572f09a66dcd74dd771a8b12a97f85e1f0905ee6d2bf8025a5abfd'
+            '4953f94566c14c51b82bf7e1c60612f4dac3fd35a0c6da31c8460ee3df69de4c')
             
 prepare() {
   local nrepos path name revision
@@ -31,6 +32,10 @@
       popd
     (( nrepos-- ))
   done
+  
+  # https://github.com/GPUOpen-Drivers/pal/issues/89
+  cd pal
+  patch -Np1 -i ../pal.patch
 }
 
 build() {
@@ -37,15 +42,8 @@
   cd ${srcdir}/spvgen/external
   python fetch_external_sources.py
 
-  # use lld and clang to fix linking error
-  # https://github.com/GPUOpen-Drivers/llpc/issues/1645
   cd ${srcdir}/xgl
   cmake -H. -Bbuilds/Release64 \
-    -DCMAKE_C_COMPILER=clang \
-    -DCMAKE_CXX_COMPILER=clang++ \
-    -DLLVM_USE_LINKER=lld \
-    -DCMAKE_EXE_LINKER_FLAGS='-fuse-ld=lld' \
-    -DCMAKE_SHARED_LINKER_FLAGS='-fuse-ld=lld' \
     -DCMAKE_BUILD_TYPE=Release \
     -DBUILD_WAYLAND_SUPPORT=On \
     -G Ninja

Added: pal.patch
===================================================================
--- pal.patch	                        (rev 0)
+++ pal.patch	2022-08-18 10:07:00 UTC (rev 453094)
@@ -0,0 +1,11 @@
+diff -Nru pal/src/util/lnx/lnxUuid.cpp pal.b/src/util/lnx/lnxUuid.cpp
+--- pal/src/util/lnx/lnxUuid.cpp	2022-08-18 10:38:07.000000000 +0200
++++ pal.b/src/util/lnx/lnxUuid.cpp	2022-08-18 11:24:11.431430755 +0200
+@@ -29,6 +29,7 @@
+ #include "util/imported/libuuid/libuuid.h"
+ 
+ #include <random>
++#include <ctime>
+ #include <unistd.h>
+ 
+ namespace Util



More information about the arch-commits mailing list