Bug 246913

Summary: graphics/mesa-devel: fix build on powerpc64
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me CC: powerpc
Priority: --- Flags: jbeich: maintainer-feedback+
Version: Latest   
Hardware: powerpc   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2020-06-01 14:19:59 UTC
Created attachment 215137 [details]
patch

Libunwind doesn't work on powerpc64.

i965 and iris don't compile on powerpc64, but they are only available on amd64 anyway.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2020-06-01 15:04:50 UTC
Comment on attachment 215137 [details]
patch

I'd like to keep the style declarative which means no ugly .if conditionals and duplication. aarch64 and DragonFly are in similar boat.

Being able to add/remove each driver is on the table. I've played with OPTIONS a bit but don't like the result yet.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-06-01 23:26:05 UTC
A commit references this bug:

Author: jbeich
Date: Mon Jun  1 23:25:44 UTC 2020
New revision: 537515
URL: https://svnweb.freebsd.org/changeset/ports/537515

Log:
  graphics/mesa-devel: allow users to disable drivers

  - DragonFly cannot use anv without futex (Linux, OpenBSD) or _umtx_op (FreeBSD)
  - DragonFly doesn't install libelf from ELF Tool Chain
  - powerpc64 cannot use LIBUNWIND as it yet to be ported
  - powerpc64 on FreeBSD < 13 cannot use -fuse-ld=lld
  - anv, i965, iris only support Intel GPUs on x86
  - anv, i965, iris work fine without LLVM support

  PR:		246913

Changes:
  head/graphics/mesa-devel/Makefile
  head/graphics/mesa-devel/files/libmap.conf.in
  head/graphics/mesa-devel/pkg-plist
Comment 3 Jan Beich freebsd_committer freebsd_triage 2020-06-01 23:31:49 UTC
Piotr, does it work now?
Comment 4 Piotr Kubaj freebsd_committer freebsd_triage 2020-06-02 00:32:06 UTC
Yes, that works, thank you!