From a9af1af5f1f9aa9fdea9e73135a92f053478f849 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 20 Jan 2016 16:10:15 +0100 Subject: [PATCH] VDPAU/XVMC libs: Replace hardlinks with copies Since these are packaged separately in (open)SUSE anyway, one can use copies as well. This makes debug packages possible again. (bnc #962609) Signed-off-by: Stefan Dirsch --- src/gallium/targets/vdpau/Makefile.am | 4 ++-- src/gallium/targets/xvmc/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) Index: mesa-18.1.0/src/gallium/targets/vdpau/Makefile.am =================================================================== --- mesa-18.1.0.orig/src/gallium/targets/vdpau/Makefile.am +++ mesa-18.1.0/src/gallium/targets/vdpau/Makefile.am @@ -91,7 +91,7 @@ all-local: $(vdpau_LTLIBRARIES) j=libvdpau_gallium.$(LIB_EXT); \ k=libvdpau_$${i}.$(LIB_EXT); \ l=$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0; \ - ln -f .libs/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0 \ + cp -a .libs/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0 \ $${link_dir}/$${l}; \ ln -sf $${l} \ $${link_dir}/$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR); \ @@ -116,7 +116,7 @@ install-data-hook: j=libvdpau_gallium.$(LIB_EXT); \ k=libvdpau_$${i}.$(LIB_EXT); \ l=$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0; \ - ln -f $${dest_dir}/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0 \ + cp -a $${dest_dir}/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0 \ $${dest_dir}/$${l}; \ ln -sf $${l} \ $${dest_dir}/$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR); \ Index: mesa-18.1.0/src/gallium/targets/xvmc/Makefile.am =================================================================== --- mesa-18.1.0.orig/src/gallium/targets/xvmc/Makefile.am +++ mesa-18.1.0/src/gallium/targets/xvmc/Makefile.am @@ -75,7 +75,7 @@ install-data-hook: j=libXvMCgallium.$(LIB_EXT); \ k=libXvMC$${i}.$(LIB_EXT); \ l=$${k}.$(XVMC_MAJOR).$(XVMC_MINOR).0; \ - ln -f $${dest_dir}/$${j}.$(XVMC_MAJOR).$(XVMC_MINOR).0 \ + cp -a $${dest_dir}/$${j}.$(XVMC_MAJOR).$(XVMC_MINOR).0 \ $${dest_dir}/$${l}; \ ln -sf $${l} \ $${dest_dir}/$${k}.$(XVMC_MAJOR).$(XVMC_MINOR); \