Bug 247000 - graphics/mesa-dri: meson.build:1317:2: ERROR: Dependency "wayland-scanner" not found
Summary: graphics/mesa-dri: meson.build:1317:2: ERROR: Dependency "wayland-scanner" no...
Status: Closed DUPLICATE of bug 246997
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-05 13:54 UTC by O. Hartmann
Modified: 2020-06-05 14:18 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments
Patch (390 bytes, patch)
2020-06-05 14:07 UTC, Guido Falsi
no flags Details | Diff
Fix without WAYLAND (884 bytes, patch)
2020-06-05 14:14 UTC, Guido Falsi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***