Bug 244658

Summary: math/gmp: Update to 6.2.0
Product: Ports & Packages Reporter: Daniel Engberg <diizzy>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (ale)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch for gmp none

Description Daniel Engberg freebsd_committer freebsd_triage 2020-03-07 17:38:35 UTC
Created attachment 212222 [details]
Patch for gmp

Compile and "make test" tested on:
FreeBSD 13.0-CURRENT #0 r358620: (amd64) - With and without optimization
FreeBSD 13.0-CURRENT #0 r358691 (arm64) - Using generic aarch64 optimization (set by gmp by default)

As far as I can tell it looks like gmp depends on /proc/cpuinfo to determine CPU model for arm64 (https://gmplib.org/repo/gmp-6.2/file/tip/config.guess#l175) which isn't available on FreeBSD and it's beyond my skill to improve CPU detection. On arm64 it compiles irregardless if CPU optimization is set or not so it doesn't cause any build failures.

Removed MAKE_JOBS_UNSAFE, can't trigger any compilation failures.
Patches removed as fixes are in upstream tree.

Tested ok using Poudiere, 12.1-RELEASE (amd64)
Comment 1 Alex Dupre freebsd_committer freebsd_triage 2020-03-08 08:06:51 UTC
(In reply to daniel.engberg.lists from comment #0)

Did you try building it on mips and mips64 without MAKE_JOBS_UNSAFE?
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-03-08 08:07:05 UTC
A commit references this bug:

Author: ale
Date: Sun Mar  8 08:06:43 UTC 2020
New revision: 528002
URL: https://svnweb.freebsd.org/changeset/ports/528002

Log:
  Update to 6.2.0 release.

  PR:		244658
  Submitted by:	daniel.engberg.lists@pyret.net

Changes:
  head/math/gmp/Makefile
  head/math/gmp/distinfo
  head/math/gmp/files/
  head/math/gmp/pkg-plist
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2020-03-08 16:46:58 UTC
Hi,

No, I haven't done any tests on mips or mips64.