When trying to build mesa master using --with-vulkan-drivers=intel (fakeroot environment), make DESTDIR="${srcdir}/fakeinstall" install fails. Making install in vulkan make[3]: Entering directory '/home/panoramix/Documents/WIP/pkgbuilds/mesa-git/src/mesa/src/intel/vulkan' make install-recursive make[4]: Entering directory '/home/panoramix/Documents/WIP/pkgbuilds/mesa-git/src/mesa/src/intel/vulkan' Making install in . make[5]: Entering directory '/home/panoramix/Documents/WIP/pkgbuilds/mesa-git/src/mesa/src/intel/vulkan' make[6]: Entering directory '/home/panoramix/Documents/WIP/pkgbuilds/mesa-git/src/mesa/src/intel/vulkan' /usr/bin/install -c -m 644 -D ./intel_icd.json /etc/vulkan/icd.d/intel_icd.json /usr/bin/install: cannot create directory '/etc/vulkan': Permission denied Makefile:1989: recipe for target 'install-data-local' failed make[6]: *** [install-data-local] Error 1 make[6]: *** Waiting for unfinished jobs.... The culprit appears to be in src/intel/vulkan/Makefile.am : $(INSTALL_DATA) -D $(srcdir)/intel_icd.json $(VULKAN_ICD_INSTALL_DIR)/intel_icd.json I'm currently building with $(INSTALL_DATA) -D $(srcdir)/intel_icd.json $(DESTDIR)$(VULKAN_ICD_INSTALL_DIR)/intel_icd.json Build is succesfull using that line, but i can't do runtime tests due to lack of needed hardware (only amd gpus here) .
Created attachment 123006 [details] [review] workaround workaround to make vulkan-intel use DESTDIR for icddir location creation
Fixed by https://cgit.freedesktop.org/mesa/mesa/commit/?id=12cf08fcc3e3229ce8b4f8f9b3230388b16a7e62 author Laurent Carlier <lordheavym@gmail.com> commit 12cf08fcc3e3229ce8b4f8f9b3230388b16a7e62 anv: honor DESTDIR when installing icd file
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.