Skip to content

Commit

Permalink
graphics/mesa-*: Unbreak on 11.4
Browse files Browse the repository at this point in the history
Re-add patches that was removed on the 21.1.5 update.

PR:    257305
  • Loading branch information
evadot committed Jul 28, 2021
1 parent 981cfc2 commit f74b563
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions graphics/mesa-dri/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ PKGHELP= ${.CURDIR}/pkg-help
PKGINSTALL= ${.CURDIR}/pkg-install
PKGDEINSTALL= ${.CURDIR}/pkg-deinstall

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src_util_build__id.c
.endif

.include <bsd.port.pre.mk>

BINARY_ALIAS+= python3=${PYTHON_VERSION}
Expand Down
15 changes: 15 additions & 0 deletions graphics/mesa-dri/files/extra-patch-src_util_build__id.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Elf_ doesn't exist, use Elf32_ or Elf64_
#
--- src/util/build_id.c.orig 2017-12-21 17:31:22 UTC
+++ src/util/build_id.c
@@ -38,6 +38,10 @@
#define ElfW(type) Elf_##type
#endif

+#if defined(__FreeBSD__) && __FreeBSD__ < 12
+typedef Elf_Note Elf_Nhdr;
+#endif
+
struct build_id_note {
ElfW(Nhdr) nhdr;

2 changes: 0 additions & 2 deletions graphics/mesa-libs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ CATEGORIES= graphics

COMMENT= OpenGL libraries that support GLX and EGL clients

BROKEN_FreeBSD_11= error: unknown type name 'Elf_Nhdr'

BUILD_DEPENDS= libglvnd>0:graphics/libglvnd

OPTIONS_GROUP= PLATFORM
Expand Down

0 comments on commit f74b563

Please sign in to comment.