Bug 244658 - math/gmp: Update to 6.2.0
Summary: math/gmp: Update to 6.2.0
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: Alex Dupre
Depends on:
Reported: 2020-03-07 17:38 UTC by Daniel Engberg
Modified: 2020-03-08 16:46 UTC (History)
0 users

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

Patch for gmp (3.00 KB, patch)
2020-03-07 17:38 UTC, Daniel Engberg
no flags Details | Diff

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

  Update to 6.2.0 release.

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

Comment 3 Daniel Engberg freebsd_committer 2020-03-08 16:46:58 UTC

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