Bug 224338 - security/nettle: Fix build on mips64
Summary: security/nettle: Fix build on mips64
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: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-14 13:35 UTC by Fukang Chen
Modified: 2017-12-15 23:57 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
patch (376 bytes, patch)
2017-12-14 13:35 UTC, Fukang Chen
no flags Details | Diff
patch (377 bytes, patch)
2017-12-14 13:44 UTC, Fukang Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!