New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34317 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

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

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 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.

comment:3 Changed 13 months ago by f.baart@…

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 months ago by takeshi@…

  • Status changed from new to closed
  • Resolution set to fixed

committed in r92683 and r92684. Thanks.

Note: See TracTickets for help on using tickets.