Opened 12 years ago

Closed 12 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 12 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 incorrectnetcdf-fortran: incorrect pkg-config info

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.

comment:2 Changed 12 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 12 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 12 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

committed in r92683 and r92684. Thanks.

Note: See TracTickets for help on using tickets.