Bug 236752 - www/kiwix-tools: fix build with GCC-based architectures
Summary: www/kiwix-tools: fix build with GCC-based architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-24 06:47 UTC by Piotr Kubaj
Modified: 2019-03-29 15:35 UTC (History)
1 user (show)

See Also:


Attachments
patch (579 bytes, patch)
2019-03-24 06:47 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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