# HG changeset patch # User Stanislas Leduc # Date 1717432178 0 # Node ID 9cfcf18b0d6c8b7cdda01db4544064e4197aec89 # Parent cec918ae56eedb17a47cc7cbf4f4a2025c7f5630 Rework mesa-dri to use symlink (85% size free), thanks alanyih diff -r cec918ae56ee -r 9cfcf18b0d6c mesa-dri-ati/receipt --- a/mesa-dri-ati/receipt Sun Jun 02 13:33:59 2024 +0000 +++ b/mesa-dri-ati/receipt Mon Jun 03 16:29:38 2024 +0000 @@ -16,5 +16,12 @@ genpkg_rules() { mkdir -p $fs/usr/lib/dri - cp $install/usr/lib/dri/r[0-9a]*_dri.so $fs/usr/lib/dri + + for drv in "r200" "radeon"; do + ln -s i830_dri.so $fs/usr/lib/dri/"$drv"_dri.so + done + + for drv in "r300" "r600" "radeonsi"; do + ln -s kms_swrast_dri.so $fs/usr/lib/dri/"$drv"_dri.so + done } diff -r cec918ae56ee -r 9cfcf18b0d6c mesa-dri-crocus/receipt --- a/mesa-dri-crocus/receipt Sun Jun 02 13:33:59 2024 +0000 +++ b/mesa-dri-crocus/receipt Mon Jun 03 16:29:38 2024 +0000 @@ -15,5 +15,5 @@ genpkg_rules() { mkdir -p $fs/usr/lib/dri - cp $install/usr/lib/dri/crocus_dri.so $fs/usr/lib/dri + ln -s kms_swrast_dri.so $fs/usr/lib/dri/crocus_dri.so } diff -r cec918ae56ee -r 9cfcf18b0d6c mesa-dri-intel/receipt --- a/mesa-dri-intel/receipt Sun Jun 02 13:33:59 2024 +0000 +++ b/mesa-dri-intel/receipt Mon Jun 03 16:29:38 2024 +0000 @@ -15,5 +15,8 @@ genpkg_rules() { mkdir -p $fs/usr/lib/dri - cp $install/usr/lib/dri/i[0-9]*_dri.so $fs/usr/lib/dri + cp $install/usr/lib/dri/i830_dri.so $fs/usr/lib/dri + for drv in "i915" "i965"; do + ln -s i830_dri.so $fs/usr/lib/dri/"$drv"_dri.so + done } diff -r cec918ae56ee -r 9cfcf18b0d6c mesa-dri-iris/receipt --- a/mesa-dri-iris/receipt Sun Jun 02 13:33:59 2024 +0000 +++ b/mesa-dri-iris/receipt Mon Jun 03 16:29:38 2024 +0000 @@ -15,5 +15,5 @@ genpkg_rules() { mkdir -p $fs/usr/lib/dri - cp $install/usr/lib/dri/iris_dri.so $fs/usr/lib/dri + ln -s kms_swrast_dri.so $fs/usr/lib/dri/iris_dri.so } diff -r cec918ae56ee -r 9cfcf18b0d6c mesa-dri-nouveau/receipt --- a/mesa-dri-nouveau/receipt Sun Jun 02 13:33:59 2024 +0000 +++ b/mesa-dri-nouveau/receipt Mon Jun 03 16:29:38 2024 +0000 @@ -17,7 +17,9 @@ mkdir -p $fs/usr/lib/dri mkdir -p $fs/etc/X11/xorg.conf.d - cp $install/usr/lib/dri/nouveau*_dri.so $fs/usr/lib/dri + for drv in "nouveau" "nouveau_vieux"; do + ln -s i830_dri.so $fs/usr/lib/dri/"$drv"_dri.so + done cat > $fs/etc/X11/xorg.conf.d/90-DRI.conf <