pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

multimedia/mpv broken on Linux 5.15.80



Hello;
Trying to build multimedia/mpv (pkgsrc-trunk) on Slackware 15.0 I get:

[182/506] Compiling filters/f_autoconvert.c
../video/out/wayland_common.c: In function ‘pointer_handle_button’:
../video/out/wayland_common.c:227:19: error: ‘BTN_MOUSE’ undeclared (first use in this function)
  227 |     if (button >= BTN_MOUSE && button < BTN_JOYSTICK) {
      |                   ^~~~~~~~~
../video/out/wayland_common.c:227:19: note: each undeclared identifier is reported only once for each function it appears in
../video/out/wayland_common.c:227:41: error: ‘BTN_JOYSTICK’ undeclared (first use in this function)
  227 |     if (button >= BTN_MOUSE && button < BTN_JOYSTICK) {
      |                                         ^~~~~~~~~~~~
../video/out/wayland_common.c:245:34: error: ‘BTN_FORWARD’ undeclared (first use in this function); did you mean ‘MP_MBTN_FORWARD’?
  245 |             button += MP_MBTN9 - BTN_FORWARD;
      |                                  ^~~~~~~~~~~
      |                                  MP_MBTN_FORWARD

Apparently this is related to patches/patch-video_out_wayland__common.c,
with particular regard to this commit:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/multimedia/mpv/patches/patch-video_out_wayland__common.c.diff?r1=1.4&r2=1.5&f=h

Where does the macro HAVE_LINUX_INPUT_EVENT_CODES come from and where
is it defined? I might be missing something obvious here, in which case,
sorry in advance.

With the conditional reverted to its previous revision, 
<linux/input-event-codes.h> is included as expected and the build
is carried out successfully.

Regards.

--
PVO

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index