Bug 232859 - graphics/gauche-gl: respect CFLAGS
Summary: graphics/gauche-gl: respect CFLAGS
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
Depends on:
Reported: 2018-10-31 17:12 UTC by Piotr Kubaj
Modified: 2018-12-06 13:51 UTC (History)
1 user (show)

See Also:

patch (1.35 KB, patch)
2018-10-31 17:12 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 2018-10-31 17:12:29 UTC
Created attachment 198811 [details]

This port doesn't respect CFLAGS, which also causes build failure on GCC architectures, since c99 needs to be used, but GCC uses c89 by default.

While here, add USES=gl.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2018-11-01 14:11:24 UTC
I'm getting:

math3d-lib.c:2351: error: 'for' loop initial declaration used outside C99 mode
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2018-11-24 08:16:17 UTC
Comment 3 Piotr Kubaj freebsd_committer 2018-11-28 00:16:54 UTC
(In reply to Mark Linimon from comment #2)

I don't have this problem, it builds with my patch.
Comment 4 commit-hook freebsd_committer 2018-12-06 13:51:15 UTC
A commit references this bug:

Author: linimon
Date: Thu Dec  6 13:51:07 UTC 2018
New revision: 486757
URL: https://svnweb.freebsd.org/changeset/ports/486757

  Add patch to respect CFLAGS.  This fixes the build on powerpc64.

  While here, add gl to USES, per modern usage.

  PR:		232859
  Submitted by:	Piotr Kubaj