Opened 7 years ago

Last modified 7 years ago

#39319 new defect

netcdf-fortran: NETCDF.mod install location varies with universal variant

Reported by: ryandesign (Ryan Schmidt) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: netcdf-fortran

Description

netcdf-fortran installs NETCDF.mod to a different location depending on whether or not the universal variant is used:

$ port -v -q installed netcdf-fortran
  netcdf-fortran @4.2_6+gcc47 (active) platform='darwin 12' archs='x86_64'
  netcdf-fortran @4.2_6+gcc47+universal platform='darwin 12' archs='i386 x86_64'
$ port contents netcdf-fortran | grep mod
  /opt/local/include/NETCDF.mod
  /opt/local/include/TYPESIZES.mod
$ sudo port activate netcdf-fortran @4.2_6+gcc47+universal
--->  Computing dependencies for netcdf-fortran
--->  Deactivating netcdf-fortran @4.2_6+gcc47
--->  Activating netcdf-fortran @4.2_6+gcc47+universal
--->  Cleaning netcdf-fortran
$ port contents netcdf-fortran | grep mod
  /opt/local/include/TYPESIZES.mod
  /opt/local/include/mods32/NETCDF.mod
  /opt/local/include/mods64/NETCDF.mod

How are ports that want to use NETCDF.mod meant to deal with this situation? Currently it is leading to build failures like comment:ticket:38995:10.

Change History (4)

comment:1 Changed 7 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 7 years ago by cooljeanius (Eric Gallager)

The muniversal portgroup is the cause for this: browser:trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl#L546

This would be easier for portfile authors to deal with if #32428 were fixed...

Last edited 7 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:3 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: mcalhoun@… added

Oh. Looks like it's been that way for awhile, since r49727. But I'm still curious how ports are intended to use this. How are ports supposed to find a file provided by another port if that file's location varies?

comment:4 Changed 7 years ago by ryandesign (Ryan Schmidt)

I no longer see this difference between netcdf-fortran @4.2_9+gcc48 and netcdf-fortran @4.2_9+gcc48+universal... so is this fixed?

Note: See TracTickets for help on using tickets.