Bug 225635

Summary: x11-toolkits/gtksourceview3 and all dependent ports need compiler:c11 and USE_CSTD=c11 (or gnu11)
Product: Ports & Packages Reporter: Justin Hibbits <jhibbits>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me CC: brd, linimon
Priority: --- Flags: bugzilla: maintainer-feedback? (gnome)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch for all ports tested none

Description Justin Hibbits freebsd_committer freebsd_triage 2018-02-02 17:05:33 UTC
x11-toolkits/gtksourceview3 uses C11 features, such as redefined identical typedefs.  This leads to errors such as:

/usr/local/include/gtksourceview-3.0/gtksourceview/gtksourcetag.h:43: error: redefinition of typedef 'GtkSourceTag'
/usr/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h:63: error: previous declaration of 'GtkSourceTag' was here

All dependent ports are affected.
Comment 1 Justin Hibbits freebsd_committer freebsd_triage 2018-02-20 03:15:13 UTC
Created attachment 190817 [details]
Patch for all ports tested

This is a patch against all ports I've built with gtksourceview3, adding the compiler USES incantation.
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-03-25 21:49:32 UTC
A commit references this bug:

Author: brd
Date: Sun Mar 25 21:48:33 UTC 2018
New revision: 465547
URL: https://svnweb.freebsd.org/changeset/ports/465547

Log:
  Fix build on ppc64 by specifying what is needed from the compiler.

  PR:		225635
  Submitted by:	jhibbits
  Approved by:	maintainer timeout

Changes:
  head/editors/gedit/Makefile
  head/editors/gedit-plugins/Makefile
  head/editors/pluma/Makefile
  head/math/gnome-calculator/Makefile
  head/x11/mate-applets/Makefile
  head/x11-fm/sushi/Makefile
  head/x11-toolkits/gtksourceview3/Makefile