Bug 242310

Summary: fix build of graphics/glew-wayland on GCC-based systems
Product: Ports & Packages Reporter: Mark Linimon <linimon>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me CC: pkubaj
Priority: --- Flags: jbeich: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to graphics/glew/Makefile none

Description Mark Linimon freebsd_committer freebsd_triage 2019-11-30 02:34:21 UTC
Created attachment 209541 [details]
patch to graphics/glew/Makefile

New port graphics/glew-wayland fails on powerpc64/GCC:

  include/GL/eglew.h:115: error: redefinition of typedef 'EGLint'

This change to the masterport seems to fix it.  (I have no idea why the build of the masterport itself is not affected.)
Comment 1 commit-hook freebsd_committer 2019-11-30 09:06:54 UTC
A commit references this bug:

Author: jbeich
Date: Sat Nov 30 09:06:22 UTC 2019
New revision: 518713
URL: https://svnweb.freebsd.org/changeset/ports/518713

Log:
  graphics/glew-wayland: unbreak on GCC architectures

  In file included from src/glew.c:43:
  include/GL/eglew.h:115: error: redefinition of typedef 'EGLint'
  /usr/local/include/EGL/eglplatform.h:158: error: previous declaration of 'EGLint' was here

  $ gcc42 -xc -c -
  typedef int foo;
  typedef int foo;
  ^D
  <stdin>:2: error: redefinition of typedef 'foo'
  <stdin>:1: error: previous declaration of 'foo' was here

  PR:		242310
  Reported by:	pkubaj

Changes:
  head/graphics/glew-wayland/Makefile
Comment 2 Jan Beich freebsd_committer 2019-11-30 09:15:33 UTC
Sorry, I've mixed you with Piotr.

(In reply to Mark Linimon from comment #0)
> I have no idea why the build of the masterport itself is not affected.

glew-wayland uses EGL (instead of GLX) headers but builds the same files as master port.