<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - build fails because install-data-local doesn't follow $DESTDIR"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94969">94969</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>build fails because install-data-local doesn't follow $DESTDIR
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Vulkan/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lonewolf@xs4all.nl
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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) .</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>