Bug 243027 - math/gretl: fix build on GCC architectures
Summary: math/gretl: fix build on GCC 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: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-01 22:16 UTC by Piotr Kubaj
Modified: 2020-01-01 23:10 UTC (History)
1 user (show)

See Also:
yuri: maintainer-feedback+


Attachments
patch (673 bytes, patch)
2020-01-01 22:16 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (yuri)
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 2020-01-01 22:16:35 UTC
Created attachment 210377 [details]
patch

Since the last upgrade, gretl requires C11:
../lib/src/bhhh_max.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Lval'

Fix this by adding USES=compiler:c11 and replacing OPENMP_USES=compiler:openmp with OPENMP_USE=GCC=yes. This sets the correct CC.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-01-01 22:50:48 UTC
A commit references this bug:

Author: pkubaj
Date: Wed Jan  1 22:50:05 UTC 2020
New revision: 521784
URL: https://svnweb.freebsd.org/changeset/ports/521784

Log:
  math/gretl: fix build on GCC architectures

  Since the last upgrade, gretl requires C11:
  ../lib/src/bhhh_max.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Lval'

  Fix this by adding USES=compiler:c11 and replacing OPENMP_USES=compiler:openmp with OPENMP_USE=GCC=yes. This sets the correct CC.

  PR:		243027
  Approved by:	yuri (maintainer)

Changes:
  head/math/gretl/Makefile
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-01-01 23:10:51 UTC
A commit references this bug:

Author: pkubaj
Date: Wed Jan  1 23:09:52 UTC 2020
New revision: 521786
URL: https://svnweb.freebsd.org/changeset/ports/521786

Log:
  MFH: r521784

  math/gretl: fix build on GCC architectures

  Since the last upgrade, gretl requires C11:
  ../lib/src/bhhh_max.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Lval'

  Fix this by adding USES=compiler:c11 and replacing OPENMP_USES=compiler:openmp with OPENMP_USE=GCC=yes. This sets the correct CC.

  PR:		243027
  Approved by:	yuri (maintainer)
  Approved by:	portmgr (fix build blanket)

Changes:
_U  branches/2020Q1/
  branches/2020Q1/math/gretl/Makefile