Bug 237254 - textproc/p5-Text-BibTeX: fix build with GCC-based architectures
Summary: textproc/p5-Text-BibTeX: 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: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-13 09:50 UTC by Piotr Kubaj
Modified: 2019-05-01 17:59 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (perl)


Attachments
patch (295 bytes, patch)
2019-04-13 09:50 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (perl)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer 2019-04-13 09:50:03 UTC
Created attachment 203635 [details]
patch

Building this port fails with:
btparse/tests/namebug.c:193: error: 'for' loop initial declaration used outside C99 mode
on GCC architectures.

Set USE_CSTD=c99 to fix build.

Tested on powerpc64 and amd64.
Comment 1 commit-hook freebsd_committer 2019-05-01 17:59:19 UTC
A commit references this bug:

Author: pkubaj
Date: Wed May  1 17:58:35 UTC 2019
New revision: 500601
URL: https://svnweb.freebsd.org/changeset/ports/500601

Log:
  textproc/p5-Text-BibTeX: fix build with GCC-based architectures

  btparse/tests/namebug.c:193: error: 'for' loop initial declaration used outside C99 mode on GCC architectures.

  Set USE_CSTD=c99 to fix build.

  PR:		237254
  Approved by:	perl (maintainer timeout), mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D20114

Changes:
  head/textproc/p5-Text-BibTeX/Makefile