<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 - libinput-1.10.0: meson doesn't respect --bindir"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105080">105080</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libinput-1.10.0: meson doesn't respect --bindir
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>timo.gurr@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=137321" name="attach_137321" title="0001-meson-Fix-bindir-usage-in-install-script.patch">attachment 137321</a> <a href="attachment.cgi?id=137321&action=edit" title="0001-meson-Fix-bindir-usage-in-install-script.patch">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=105080&attachment=137321'>[review]</a>
0001-meson-Fix-bindir-usage-in-install-script.patch

Passing a bindir different from prefix like e.g.

meson --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/bin
--libdir=/usr/x86_64-pc-linux-gnu/lib
--libexecdir=/usr/x86_64-pc-linux-gnu/libexec
--includedir=/usr/x86_64-pc-linux-gnu/include --sysconfdir=/etc
--datadir=/usr/share --mandir=/usr/share/man --default-library=shared
-Ddebug-gui=false -Dudev-dir=/usr/x86_64-pc-linux-gnu/lib/udev
-Ddocumentation=false -Dlibwacom=false -Dtests=false
/var/tmp/paludis/build/sys-libs-libinput-1.10.0/work/libinput-1.10.0

to meson results in an install error later on:

[...]
--- /usr/bin/libinput-list-devices
--- /usr/bin/libinput-debug-events
--- No need to do anything for preinst phase
<span class="quote">>>> Checking whether we can merge to / ..................</span >
!!! Expected '/usr/bin' to be a directory but found a symlink to a directory
[...]

It should respect the bindir passed via meson configure and install to
/usr/x86_64-pc-linux-gnu/bin instead of /usr/bin.

There was aleady a patch proposed which still applies to 1.10.0 and fixed the
problem:
<a href="https://lists.freedesktop.org/archives/wayland-devel/2017-November/036009.html">https://lists.freedesktop.org/archives/wayland-devel/2017-November/036009.html</a>

For completeness the patch is attached as well.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>