Bug 224338

Summary: security/nettle: Fix build on mips64
Product: Ports & Packages Reporter: Fukang Chen <loader>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: loader
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch
none
patch none

Description Fukang Chen freebsd_committer freebsd_triage 2017-12-14 13:35:22 UTC
Created attachment 188823 [details]
patch

https://lists.freebsd.org/pipermail/freebsd-pkg-fallout/Week-of-Mon-20171211/594777.html

__sgi is not defined on FreeBSD mips64, and the lib*.so
files were installed into ${STAGEDIR}/usr/local/lib32/.

${WRKSRC}/configure:
6776  #if defined(__sgi) && defined(__LP64__)
6777  #error 64-bit mips
6778  #endif
6779  
6780  int
6781  main ()
6782  {
6783  
6784    ;
6785    return 0;
6786  }
6787  _ACEOF
6788  if ac_fn_c_try_compile "$LINENO"; then :
6789  
6790        ABI=32
6791  
6792  else
6793  
6794        ABI=64
6795  
6796  fi

poudriere: https://pastebin.com/raw/J4XUjWwZ
gmake check:  https://pastebin.com/raw/hEgtntJ3
Comment 1 Fukang Chen freebsd_committer freebsd_triage 2017-12-14 13:44:52 UTC
Created attachment 188824 [details]
patch
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-12-15 23:52:29 UTC
A commit references this bug:

Author: sunpoet
Date: Fri Dec 15 23:51:46 UTC 2017
New revision: 456424
URL: https://svnweb.freebsd.org/changeset/ports/456424

Log:
  Fix build on mips64

  PR:		224338
  Submitted by:	loader

Changes:
  head/security/nettle/Makefile
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-12-15 23:57:44 UTC
Committed. Thanks!