xwayland: remove includedir from pkgconfig
Before this change, the xwayland pkgconfig file will always contain an includedir directive, even though xwayland is not a linkable shared library: prefix=/nix/store/3spcjqp5zcyg8arz6dnsj59fal5yk3jy-xwayland-23.2.6 includedir=${prefix}/include exec_prefix=${prefix} xwayland=/nix/store/3spcjqp5zcyg8arz6dnsj59fal5yk3jy-xwayland-23.2.6/bin/Xwayland […] Cflags: -I${includedir} According to a bug reporter this trips up cmake [1], which expects that the include directory exists, which it does not since xwayland does not install any header files. Add the dataonly directive to pkgsconfig.generate() which will remove the default "." subdir and ensures that includedir is not set inside the pkgconfig file. Additionally enforce the install directory to $libdir/pkgconfig, since it otherwise will be installed to $datadir/pkgconfig, which precludes programs from finding the pkgconfig because share/pkgconfig is usually not included in the search path. The resulting pkgconfig does not contain an includedir: prefix=/nix/store/p7xhdzl65hfhzf36vxykzp2i9cyy7y6c-xwayland-23.2.6 exec_prefix=${prefix} xwayland=/nix/store/p7xhdzl65hfhzf36vxykzp2i9cyy7y6c-xwayland-23.2.6/bin/Xwayland have_glamor=true have_eglstream=true have_initfd=true have_listenfd=true have_verbose=true have_terminate_delay=true have_no_touch_pointer_emulation=true have_force_xrandr_emulation=true have_geometry=true have_fullscreen=true have_host_grab=true have_decorate=false have_enable_ei_portal=true have_byteswappedclients=true Name: Xwayland Description: X Server for Wayland Version: 23.2.6 [1]: https://github.com/NixOS/nixpkgs/pull/309075#issuecomment-2108381428 Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de> Reviewed-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1543>
This commit is contained in:
parent
89c3f35d92
commit
9df084c8d1
|
@ -182,6 +182,8 @@ pkgconfig.generate(
|
||||||
filebase: 'xwayland',
|
filebase: 'xwayland',
|
||||||
name: 'Xwayland',
|
name: 'Xwayland',
|
||||||
description: 'X Server for Wayland',
|
description: 'X Server for Wayland',
|
||||||
|
dataonly: true,
|
||||||
|
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
||||||
variables: [
|
variables: [
|
||||||
'exec_prefix=${prefix}',
|
'exec_prefix=${prefix}',
|
||||||
'xwayland=' + xwayland_path / xwayland_server.name(),
|
'xwayland=' + xwayland_path / xwayland_server.name(),
|
||||||
|
|
Loading…
Reference in New Issue