Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Feb 2022 14:56:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 261654] x11/libinput: enabling DEBUG_GUI fails to build
Message-ID:  <bug-261654-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261654

            Bug ID: 261654
           Summary: x11/libinput: enabling DEBUG_GUI fails to build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: hiroo.ono+freebsd@gmail.com
             Flags: maintainer-feedback?(x11@FreeBSD.org)
          Assignee: x11@FreeBSD.org

Created attachment 231495
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231495&action=
=3Dedit
pull wayland in.

Enabling DEBUG_GUI option in x11/libinput fails to build.
Requiring wayland and wayland-protocols as the attached patch makes it buil=
d,
but I am not sure if it is the right solution.

1) libinput-debug-gui.c
=20
https://gitlab.freedesktop.org/libinput/libinput/-/blob/e9ccd4f402a8b56590a=
cc83009f4045b145587bf/tools/libinput-debug-gui.c
  includes "pointer-constraints-unstable-v1-client-protocol.h" when
GDK_WINDOWING_WAYLAND is defined.
2) GDK_WINDOWING_WAYLAND is defined in
/usr/local/include/gtk-3.0/gdk/gdkconfig.h without any condition.
  I did not verify but is it because I enabled WAYLAND in x11-toolkits/gtk3=
0?
3) libinput's meson.build
=20
https://gitlab.freedesktop.org/libinput/libinput/-/blob/e9ccd4f402a8b56590a=
cc83009f4045b145587bf/meson.build
  only provides "pointer-constraints-unstable-v1-client-protocol.h" when
wayland-client and wayland-protocols are found.

What I am not sure is: is GDK_WINDOWING_WAYLAND in gdkconfig.h is always
defined? Isn't it defined only when option WAYLAND is enabled in
x11-toolkits/gtk30? Then how do I detect it in x11/libinput's port Makefile?

The log is as follows:

cc -Ilibinput-debug-gui.p -I. -I.. -I../src -I../include
-I/usr/local/include/libepoll-shim -I/usr/local/include/gtk-3.0
-I/usr/local/include/pango-1.0 -I/usr/local/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/harfbuzz -I/usr/local/include/freetype2
-I/usr/local/include/libpng16 -I/usr/local/include/fribidi
-I/usr/local/include/cairo -I/usr/local/include/pixman-1
-I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0
-I/usr/local/include/atk-1.0 -I/usr/local/include/at-spi2-atk/2.0
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include
-I/usr/local/include/at-spi-2.0 -I/usr/local/include/libevdev-1.0
-I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0
-fno-color-diagnostics -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra
-std=3Dgnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-protot=
ypes
-Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes
-Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types
-Wformat=3D2 -Wno-missing-field-initializers -Wmissing-declarations
-fvisibility=3Dhidden -O2 -pipe -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -isystem /usr/local/include -pthread
-D_THREAD_SAFE -MD -MQ libinput-debug-gui.p/tools_libinput-debug-gui.c.o -MF
libinput-debug-gui.p/tools_libinput-debug-gui.c.o.d -o
libinput-debug-gui.p/tools_libinput-debug-gui.c.o -c
../tools/libinput-debug-gui.c
../tools/libinput-debug-gui.c:53:11: fatal error:
'pointer-constraints-unstable-v1-client-protocol.h' file not found
        #include "pointer-constraints-unstable-v1-client-protocol.h"
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261654-7141>