Bug 247000

Summary: graphics/mesa-dri: meson.build:1317:2: ERROR: Dependency "wayland-scanner" not found
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: madpilot, zeising
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch
none
Fix without WAYLAND none

Description O. Hartmann 2020-06-05 13:54:40 UTC
Port  graphics/mesa-dri fails to compile complaining about missing dependency, see below.

Host is running CURRENT FreeBSD 13.0-CURRENT #4 r361728: Tue Jun  2 20:30:08 CEST 2020 amd64.


[...]
Run-time dependency libunwind found: YES 1.4.0
Using 'PKG_CONFIG' from environment with value: 'pkgconf'
Found pkg-config: /usr/local/bin/pkgconf (1.6.3)
Found CMake: /usr/local/bin/cmake (3.17.3)
Using 'LDFLAGS' from environment with value: ' -Wl,-rpath=/usr/local/llvm80/lib -fstack-protector-strong '
Build-time dependency wayland-scanner found: NO (tried pkgconfig and cmake)

meson.build:1317:2: ERROR: Dependency "wayland-scanner" not found, tried pkgconfig and cmake

A full log can be found at /usr/ports/graphics/mesa-dri/work/mesa-19.0.8/_build/meson-logs/meson-log.txt
===>  Script "configure" failed unexpectedly.
Please report the problem to x11@FreeBSD.org [maintainer] and attach the
"/usr/ports/graphics/mesa-dri/work/mesa-19.0.8/_build/meson-logs/meson-log.txt"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2020-06-05 14:07:54 UTC
Created attachment 215247 [details]
Patch

I have seen the same failure. It happens because you, like, me, have the WAYLAND option turned off.

I've attached a fix which worked for me.

Looks like the meson file forces wayland support otherwise.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2020-06-05 14:14:35 UTC
Created attachment 215248 [details]
Fix without WAYLAND

First patch was incomplete. mesa-dri also needs the same fix.

This patch is untested though. Still building.
Comment 3 Niclas Zeising freebsd_committer freebsd_triage 2020-06-05 14:18:01 UTC
This is a duplicate of 246997, closing this, please continue the conversation in the other PR.

*** This bug has been marked as a duplicate of bug 246997 ***