Bug 236752

Summary: www/kiwix-tools: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Mark Linimon <linimon>
Status: Closed FIXED    
Severity: Affects Only Me CC: linimon
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-03-24 06:47:09 UTC
Created attachment 203097 [details]
patch

Add USES=compiler:c++11-lang.

Add -Wno-error=maybe-uninitialized to CXXFLAGS when using gcc. gcc apparently thinks latitude and distance may be uninitialised, but this shouldn't happen anyway.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2019-03-24 06:47:09 UTC
Maintainer informed via mail
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-03-29 15:35:56 UTC
A commit references this bug:

Author: linimon
Date: Fri Mar 29 15:35:42 UTC 2019
New revision: 497153
URL: https://svnweb.freebsd.org/changeset/ports/497153

Log:
  Fix build on GCC-based architectures:

    ERROR: C++ Compiler does not support -std=c++11

  and adjust CFLAGS.

  PR:		236752
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Changes:
  head/www/kiwix-tools/Makefile