<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 install phase failure"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105939">105939</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libinput install phase failure
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>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>lhcwhu@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi, I met an error when compiling libinput, it gave me the following error
during "install" phase.

➜  libinput git:(master) ✗ sudo ninja -C builddir/ install
Password:
ninja: Entering directory `builddir/'
[306/307] Installing files.
Installing libinput-device-group to /usr/lib/udev/libinput-device-group
Installing libinput-model-quirks to /usr/lib/udev/libinput-model-quirks
Installing libinput.so.10.13.0 to /usr/lib64/libinput.so.10.13.0
Installing libinput-debug-events to /usr/libexec/libinput/libinput-debug-events
Installing libinput-list-devices to /usr/libexec/libinput/libinput-list-devices
Installing libinput-measure to /usr/libexec/libinput/libinput-measure
Installing libinput-record to /usr/libexec/libinput/libinput-record
Installing libinput-debug-gui to /usr/libexec/libinput/libinput-debug-gui
Installing libinput to /usr/bin/libinput
Installing libinput.h to /usr/include/
Installing
/home/psdrv/Downloads/libinput/builddir/80-libinput-device-groups.rules to
/usr/lib/udev/rules.d
Installing
/home/psdrv/Downloads/libinput/builddir/90-libinput-model-quirks.rules to
/usr/lib/udev/rules.d
Installing
/home/psdrv/Downloads/libinput/builddir/90-libinput-model-quirks.hwdb to
/usr/lib/udev/hwdb.d
Installing /home/psdrv/Downloads/libinput/builddir/meson-private/libinput.pc to
/usr/lib64/pkgconfig
Installing /home/psdrv/Downloads/libinput/builddir/libinput-debug-events.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/builddir/libinput-list-devices.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/builddir/libinput-measure.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/tools/libinput-measure-touchpad-tap
to /usr/libexec/libinput
Installing
/home/psdrv/Downloads/libinput/builddir/libinput-measure-touchpad-tap.1 to
/usr/share/man/man1
Installing
/home/psdrv/Downloads/libinput/tools/libinput-measure-touchpad-pressure to
/usr/libexec/libinput
Installing
/home/psdrv/Downloads/libinput/builddir/libinput-measure-touchpad-pressure.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/tools/libinput-measure-touch-size to
/usr/libexec/libinput
Installing
/home/psdrv/Downloads/libinput/builddir/libinput-measure-touch-size.1 to
/usr/share/man/man1
Installing
/home/psdrv/Downloads/libinput/tools/libinput-measure-trackpoint-range to
/usr/libexec/libinput
Installing
/home/psdrv/Downloads/libinput/builddir/libinput-measure-trackpoint-range.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/builddir/libinput-record.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/tools/libinput-replay to
/usr/libexec/libinput
Installing /home/psdrv/Downloads/libinput/builddir/libinput-replay.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/builddir/libinput-debug-gui.1 to
/usr/share/man/man1
Installing /home/psdrv/Downloads/libinput/builddir/libinput.1 to
/usr/share/man/man1
Failed to restore SELinux context of installed files...
Standard output:

Standard error:
No such file or directory

Running custom install script '/bin/sh
/home/psdrv/Downloads/libinput/src/libinput-restore-selinux-context.sh
/usr/lib64 /home/psdrv/Downloads/libinput/builddir/libinput.so.10.13.0'
Restoring SELinux context on /usr/lib64/libinput.so.10.13.0
No such file or directory
Failed to run install script '/bin/sh
/home/psdrv/Downloads/libinput/src/libinput-restore-selinux-context.sh
/usr/lib64 /home/psdrv/Downloads/libinput/builddir/libinput.so.10.13.0'
FAILED: meson-install
/usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal install
/home/psdrv/Downloads/libinput/builddir/meson-private/install.dat
ninja: build stopped: subcommand failed.


-------------------------
It seems "libinput-restore-selinux-context.sh" failed, however, i have disabled
selinux on my machine. Even when I manually edit meson.build to not run this
script, the install phase still fails.

I would appreciate if you can give any hints on how to solve this problem.

Who prints the message "Failed to restore SELinux context"? I grep through the
code base, but no matches.

The software versions I use:
Python 3.5
meson 0.45.1
ninja 1.8.2


Thanks.</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>