File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ sed -i \
4949 -e ' s/-D video-codecs=all/-D video-codecs=all -D amd-use-llvm=false -D draw-use-llvm=false/' \
5050 " $PKGBUILD "
5151
52+ # Patch AMDGPU DRM version check for compatibility with older kernels
53+ sed -i ' /^ cd mesa-\$_pkgver$/a\
54+ echo "Patching amdgpu DRM version check..."\
55+ find . -name "ac_gpu_info.c" -print -exec sed -i "s/info->drm_minor < 54/info->drm_minor < 0/" {} \\;' " $PKGBUILD "
56+
5257cat " $PKGBUILD "
5358
5459# Do not build if version does not match with upstream
Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ sed -i \
5151 -e ' s/-D video-codecs=all/-D video-codecs=all -D amd-use-llvm=false -D draw-use-llvm=false/' \
5252 " $PKGBUILD "
5353
54+ # Patch AMDGPU DRM version check for compatibility with older kernels
55+ sed -i ' /^ cd mesa-\$_pkgver$/a\
56+ echo "Patching amdgpu DRM version check..."\
57+ find . -name "ac_gpu_info.c" -print -exec sed -i "s/info->drm_minor < 54/info->drm_minor < 0/" {} \\;' " $PKGBUILD "
58+
5459cat " $PKGBUILD "
5560
5661# Do not build if version does not match with upstream
You can’t perform that action at this time.
0 commit comments