Bug 256138

Summary: graphics/mesa-dri: attempt to fix build on riscv64
Product: Ports & Packages Reporter: Mark Linimon <linimon>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: Closed FIXED    
Severity: Affects Only Me CC: pkubaj, riscv
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: riscv   
OS: Any   
Attachments:
Description Flags
patch to graphics/mesa-dri/Makefile none

Description Mark Linimon freebsd_committer freebsd_triage 2021-05-25 01:57:52 UTC
Created attachment 225241 [details]
patch to graphics/mesa-dri/Makefile

mesa-dri fails on attempts to build (via qemu):

  pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/mesa-dri/work/stage/usr/local/include/GL/internal/dri_interface.h:No such file or directory
  pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/mesa-dri/work/stage/usr/local/libdata/pkgconfig/dri.pc:No such file or directory

This is due to the fact that there is no stanza including riscv64 in the Makefile.  Thus, add one.

Note: the hardware I have is not yet ready for graphics testing, so this is _only_ a compile-time fix so that I can test-build dependent ports.  However, it should be harmless.

Unless there are objections, I intend to commit this in two weeks.
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-06-16 20:33:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b2c4a0ef4b6cf846746653dcea02089c22e0956f

commit b2c4a0ef4b6cf846746653dcea02089c22e0956f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-16 20:33:08 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-06-16 20:33:08 +0000

    graphics/mesa-dri: fix build on riscv64

    Submitted by:   linimon
    PR:     256138

 graphics/mesa-dri/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)