Bug 253722

Summary: games/freeblocks: fix build on FreeBSD 13+
Product: Ports & Packages Reporter: Christian Weisgerber <naddy>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Many People Flags: amdmi3: maintainer-feedback+
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
freeblocks.patch none

Description Christian Weisgerber freebsd_committer freebsd_triage 2021-02-20 15:20:43 UTC
Created attachment 222678 [details]
freeblocks.patch

games/freeblocks fails to build on FreeBSD 13+ due to the new -fno-common default in LLVM11.

The attached patch fixes the variable declarations, so the port will build with LLVM11 and GCC10.
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2021-02-25 00:42:34 UTC
LGTM, please commit
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-02-25 14:58:56 UTC
A commit references this bug:

Author: naddy
Date: Thu Feb 25 14:58:05 UTC 2021
New revision: 566539
URL: https://svnweb.freebsd.org/changeset/ports/566539

Log:
  games/freeblocks: fix build on FreeBSD 13/14

  This fixes the variable declarations so the port will build with
  LLVM11's and GCC10's default of -fno-common.

  PR:		253722
  Approved by:	amdmi3

Changes:
  head/games/freeblocks/Makefile
  head/games/freeblocks/files/patch-src_block.c
  head/games/freeblocks/files/patch-src_block.h
  head/games/freeblocks/files/patch-src_game.c
  head/games/freeblocks/files/patch-src_game.h
  head/games/freeblocks/files/patch-src_menu.h
  head/games/freeblocks/files/patch-src_sys.c
  head/games/freeblocks/files/patch-src_sys.h