Bug 231736 - devel/objecthash: fix build on powerpc64
Summary: devel/objecthash: fix build on powerpc64
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: 2018-09-26 12:48 UTC by Piotr Kubaj
Modified: 2018-11-02 15:19 UTC (History)
1 user (show)

See Also:


Attachments
patch (4.45 KB, patch)
2018-09-26 12:48 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 2018-09-26 12:48:05 UTC
Created attachment 197511 [details]
patch

GCC disallows creating arrays of variable size (and const int is a variable as well). Fix that to fix build on powerpc64.

Tested also on amd64.

Hardware sponsored by IntegriCloud.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-11-02 15:19:56 UTC
A commit references this bug:

Author: linimon
Date: Fri Nov  2 15:19:34 UTC 2018
New revision: 483817
URL: https://svnweb.freebsd.org/changeset/ports/483817

Log:
  GCC disallows creating arrays of variable size (and const int is a
  variable as well). Fix that to fix build on powerpc64.

  PR:		231736
  Submitted by:	Piotr Kubaj

Changes:
  head/devel/objecthash/files/
  head/devel/objecthash/files/patch-Makefile
  head/devel/objecthash/files/patch-objecthash.c
  head/devel/objecthash/files/patch-objecthash.h