Ticket #34317 (closed defect: fixed)
netcdf-fortran: incorrect pkg-config info
| Reported by: | f.baart@… | Owned by: | takeshi@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | Cc: | ||
| Port: | netcdf-fortran |
Description
The information provided by pkg-config about netcdf-fortran is incorrect. After installing netcdf-fortran 4.2 the pkg-config info returns the following:
$ pkg-config --libs netcdf-fortran -L/usr/local/lib -lnetcdf
The -L/usr/local/lib should be -L/opt/local/lib. The file that contains the incorrect information is /opt/local/lib/pkgconfig/netcdf-fortran.pc. The prefix variable in that line should be fixed. I am not sure yet if the problem is in the port or in the source.
Change History
comment:1 Changed 13 months ago by ryandesign@…
- Owner changed from macports-tickets@… to takeshi@…
- Summary changed from pkg-config info of netcdf-fortran is incorrect to netcdf-fortran: incorrect pkg-config info
- Milestone MacPorts 2.1.0 deleted
comment:2 Changed 13 months ago by f.baart@…
I found the source of the problem in the original {{netcdf-fortran.pc.in file}}. I'll file a bug report at unidata.
Note: See
TracTickets for help on using
tickets.


The problem is the netcdf-fortran software; the MacPorts Portfile doesn't currently do anything regarding the .pc file. We can of course work around the problem in MacPorts until upstream fixes the problem.