Bug 225467 - lang/p5-ExtUtils-F77 hardcoded default gfortran version may cause libgfortran not to be found
Summary: lang/p5-ExtUtils-F77 hardcoded default gfortran version may cause libgfortran...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-26 13:11 UTC by Erik B Knudsen
Modified: 2018-01-26 18:16 UTC (History)
1 user (show)

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


Attachments
patch to use the default gfortran instead of 4.8 (293 bytes, patch)
2018-01-26 13:35 UTC, Erik B Knudsen
erkn: maintainer-approval? (erkn)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik B Knudsen 2018-01-26 13:11:03 UTC
In the installed perl module F77.pm (in the FreeBSD section), the variable $gfortran is set to 'gfortran48'. The default version of gfortran installed on FeŕeeBSD 11 seems to be 6.
This causes the next line: $dir = `$gfortran -print-file-name=libgfortran.a`; to return empty. This in turn means that libgfortran is not compiled in when ExtUtils-F77 is used by applications, causing undefined refs.. See bug #225375.
Comment 1 Erik B Knudsen 2018-01-26 13:35:33 UTC
Created attachment 190083 [details]
patch to use the default gfortran instead of 4.8

This is to default to the whatever version of gfortran happens to be installed. instead of silently requiring 4.8
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-01-26 18:14:58 UTC
A commit references this bug:

Author: sunpoet
Date: Fri Jan 26 18:13:52 UTC 2018
New revision: 460046
URL: https://svnweb.freebsd.org/changeset/ports/460046

Log:
  Fix FC substitution

  - Bump PORTREVISION for package change

  PR:		225467
  Submitted by:	Erik B Knudsen <erkn@fysik.dtu.dk>

Changes:
  head/lang/p5-ExtUtils-F77/Makefile
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-01-26 18:16:06 UTC
Committed. Thanks!