Bug 196044

Summary: devel/icu: unbreak on mips
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed FIXED    
Severity: Affects Some People CC: sbruno
Priority: --- Flags: bugzilla: maintainer-feedback? (office)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 199471    
Attachments:
Description Flags
Fix none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2014-12-16 23:28:14 UTC
Created attachment 150659 [details]
Fix

icu detects platform endianess by checking widely used BYTE_ORDER define. On FreeBSD, it is not defined unless sys/endian.h is included. As icu doesn't include that header, endianess detection breaks and defaults to little endian, which breaks at least mips build. The attached patch fixes it. Build checked on amd64, i386, armv6 and mips - all successfully. This fix should unblock many packages on mips and possibly other big endian architectures like sparc64.

Related upstream ticket:

https://ssl.icu-project.org/trac/ticket/11437
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-16 23:28:14 UTC
Auto-assigned to maintainer office@FreeBSD.org
Comment 2 commit-hook freebsd_committer freebsd_triage 2014-12-19 18:13:12 UTC
A commit references this bug:

Author: amdmi3
Date: Fri Dec 19 18:13:02 UTC 2014
New revision: 374962
URL: https://svnweb.freebsd.org/changeset/ports/374962

Log:
  - Fix build in MIPS (and other big-endian archs) by addin an include needed for proper endianess detection

  Upstream ticket: https://ssl.icu-project.org/trac/ticket/11437

  PR:		196044
  Submitted by:	amdmi3
  Approved by:	bapt

Changes:
  head/devel/icu/files/patch-common__unicode__platform.h
Comment 3 commit-hook freebsd_committer freebsd_triage 2014-12-25 17:33:28 UTC
A commit references this bug:

Author: amdmi3
Date: Thu Dec 25 17:32:33 UTC 2014
New revision: 375591
URL: https://svnweb.freebsd.org/changeset/ports/375591

Log:
  - Roll back r374962 (Fix build in MIPS (and other big-endian archs) by addin an include needed for proper endianess detection) as it breaks build on i386 < 10.x until proper solution is found

  PR:		196044
  Approved by:	bapt (implicit)

Changes:
  head/devel/icu/files/patch-common__unicode__platform.h
Comment 4 Sean Bruno freebsd_committer freebsd_triage 2015-05-03 18:36:00 UTC
Patch needs to be reworked.  I'm reopening this.
Comment 5 Sean Bruno freebsd_committer freebsd_triage 2015-05-31 18:54:39 UTC
I've patched our build for big-endian architectures to DTRT.

As far as I can tell, this works.  Retest please?
Comment 6 Sean Bruno freebsd_committer freebsd_triage 2015-06-29 15:22:32 UTC
Resolved:

https://svnweb.freebsd.org/changeset/ports/388126