Bug 235778 - math/mpfr: cannot build in 4.0.1
Summary: math/mpfr: cannot build in 4.0.1
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
URL:
Keywords: easy, needs-qa, patch
Depends on:
Blocks:
 
Reported: 2019-02-16 11:50 UTC by Yuta MASUMOTO
Modified: 2019-02-18 14:18 UTC (History)
1 user (show)

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


Attachments
changed MASTER_SITES in Makefile (380 bytes, text/plain)
2019-02-16 11:50 UTC, Yuta MASUMOTO
no flags Details
rewrite Makefile, and upgrade to 4.0.2. (4.56 KB, text/plain)
2019-02-16 12:31 UTC, Yuta MASUMOTO
no flags Details
update to 4.0.2 (3.48 KB, patch)
2019-02-16 12:54 UTC, Yuta MASUMOTO
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta MASUMOTO 2019-02-16 11:50:48 UTC
Created attachment 202064 [details]
changed MASTER_SITES in Makefile

Hi,

math/mpfr is cannot build because MASTER_SITES's define is relative.

in 01/31/2019, mpfr is new release ver.4.0.2
https://www.mpfr.org/mpfr-4.0.2/

but this port's (4.0.1) MASTER_SITE's define is:
https://www.mpfr.org/mpfr-current/

mpfr-current point to mpfr-4.0.2, so distinfo's patch (ver 4.0.1) is 404.

I can build w/poudriere what apply this patch.
Comment 1 Koichiro Iwao freebsd_committer 2019-02-16 12:02:34 UTC
> MASTER_SITES=  https://www.mpfr.org/mpfr-${PORTVERSION}/

should work well. And what about updating to 4.0.2?
Comment 2 Yuta MASUMOTO 2019-02-16 12:31:43 UTC
Created attachment 202065 [details]
rewrite Makefile, and upgrade to 4.0.2.

(In reply to Koichiro Iwao from comment #1)

sounds good, I rewrite Makefile, and
upgrade to 4.0.2, please check this patch.
(I am not familiar to write Ports Makefile, sorry.)
Comment 3 Yuta MASUMOTO 2019-02-16 12:38:01 UTC
Comment on attachment 202065 [details]
rewrite Makefile, and upgrade to 4.0.2.

sorry, please ignore this line:

    Only in /home/owata/mpfr/: Makefile.orig
    diff -dur /usr/ports/math/mpfr/pkg-plist /home/owata/mpfr/pkg-plist
    --- /usr/ports/math/mpfr/pkg-plist      2018-04-19 16:08:45.000000000 +0900
    +++ /home/owata/mpfr/pkg-plist  2019-02-16 21:23:21.595651000 +0900
    @@ -3,5 +3,5 @@
     lib/libmpfr.a
     lib/libmpfr.so
     lib/libmpfr.so.6
    -lib/libmpfr.so.6.0.1
    +lib/libmpfr.so.6.0.2
Comment 4 Yuta MASUMOTO 2019-02-16 12:54:06 UTC
Created attachment 202066 [details]
update to 4.0.2

sorry to previous patch is missed, this is I intended patch.
Comment 5 commit-hook freebsd_committer 2019-02-18 14:18:19 UTC
A commit references this bug:

Author: ale
Date: Mon Feb 18 14:18:08 UTC 2019
New revision: 493263
URL: https://svnweb.freebsd.org/changeset/ports/493263

Log:
  Update to 4.0.2 release.

  PR:		235778
  Submitted by:	Yuta MASUMOTO <owata@owatan.jp>

Changes:
  head/math/mpfr/Makefile
  head/math/mpfr/distinfo
  head/math/mpfr/pkg-plist