Bug 201255

Summary: games/crafty: fix build on non-x86
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Johan van Selst <johans>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (johans)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2015-07-01 16:36:39 UTC
Created attachment 158227 [details]
Patch

Set CPUS=1 on non-x86. This leads to disabling custom thread synchronization primitives coded in x86 assembly and thus allows build (confirmed successful builds on mips and armv6, however haven't tested whether it actually works)
Comment 1 Johan van Selst freebsd_committer freebsd_triage 2015-07-01 19:55:51 UTC
Well found. I remember looking into this a while ago, but missed that.
Thanks for the patch. Committed now.
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-07-01 19:55:56 UTC
A commit references this bug:

Author: johans
Date: Wed Jul  1 19:54:58 UTC 2015
New revision: 391118
URL: https://svnweb.freebsd.org/changeset/ports/391118

Log:
  - Fix build for several architectures.
    Set CPUS=1 on non-x86. This leads to disabling custom thread synchronization
    primitives coded in x86 assembly and thus allows build (confirmed successful
    builds on mips and armv6, however haven't tested whether it actually works).
  - Minor cleanups added to pet portlint

  PR:		201255
  Submitted by:	amdmi3

Changes:
  head/games/crafty/Makefile
  head/games/crafty/pkg-plist