Opened 13 years ago
Closed 13 years ago
#34317 closed defect (fixed)
netcdf-fortran: incorrect pkg-config info
Reported by: | SiggyF | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
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 (4)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Milestone: | MacPorts 2.1.0 |
---|---|
Owner: | changed from macports-tickets@… to takeshi@… |
Summary: | pkg-config info of netcdf-fortran is incorrect → netcdf-fortran: incorrect pkg-config info |
comment:2 Changed 13 years ago by SiggyF
I found the source of the problem in the original {{netcdf-fortran.pc.in file}}. I'll file a bug report at unidata.
comment:3 Changed 13 years ago by SiggyF
I got word from unidata. This will be fixed in the next release.
If you want to patch it in the meantime, the netcdf-fortran.pc.in
file should have prefix=@prefix@
as a first line.
comment:4 Changed 13 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.