File revert_d5ec3a89.patch of Package Mesa
diff -uNr mesa.orig/bin/install_megadrivers.py mesa/bin/install_megadrivers.py
--- mesa.orig/bin/install_megadrivers.py 2024-07-22 14:53:56.584616627 +0200
+++ mesa/bin/install_megadrivers.py 2024-07-22 14:54:27.226747490 +0200
@@ -42,8 +42,7 @@
else:
to = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], args.libdir)
- basename = os.path.basename(args.megadriver)
- master = os.path.join(to, basename)
+ master = os.path.join(to, os.path.basename(args.megadriver))
if not os.path.exists(to):
if os.path.lexists(to):
@@ -55,8 +54,8 @@
if os.path.lexists(abs_driver):
os.unlink(abs_driver)
- print(f'Installing symlink pointing to {basename} to {abs_driver}')
- os.symlink(basename, abs_driver)
+ print(f'Installing hardlink to {args.megadriver} to {abs_driver}')
+ os.link(master, abs_driver)
try:
ret = os.getcwd()
diff -uNr mesa.orig/src/gallium/targets/dril/meson.build mesa/src/gallium/targets/dril/meson.build
--- mesa.orig/src/gallium/targets/dril/meson.build 2024-07-22 14:53:56.327615587 +0200
+++ mesa/src/gallium/targets/dril/meson.build 2024-07-22 14:54:27.226747490 +0200
@@ -133,8 +133,9 @@
foreach d : dril_drivers
custom_target(
d,
+ input : dril_dri,
output : d,
- command : [prog_ln, '-sf', 'libdril_dri.so', '@OUTPUT@'],
+ command : [prog_ln, '-f', '@INPUT@', '@OUTPUT@'],
build_by_default : true,
)
endforeach