New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #25138 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

arpack default variant not handled correctly

Reported by: and.damore@… Owned by: mmoll@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: arpack

Description

The default_variant if condition in Portfile is placed after the if/elseif/else that executes 'set gccversion 4.x'.

This way when no variant is explicitly selected gccversion is set to 4.5, the last else branch, even if default_variant is gcc44.

The build breaks and there are gcc45 references in compiler linker flags:

shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_math_arpack/work/ARPACK && /usr/bin/ld -arch x86_64 -dynamic -dylib -single_module -dead_strip -x -all_load -L. -L/opt/local/lib/gcc45/x86_64 -L/opt/local/lib/gcc45 -L/opt/local/lib -dylib_install_name /opt/local/lib/libarpack.1.dylib -current_version 1 -compatibility_version 1 libarpack.a -o libarpack.1.dylib -latlas -llapack -lgfortran -lSystem" returned error 1

I'm attaching a patch

Attachments

patch-arpack.diff (691 bytes) - added by and.damore@… 3 years ago.

Change History

Changed 3 years ago by and.damore@…

comment:1 Changed 3 years ago by mmoll@…

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

Committed in r68541.

Note: See TracTickets for help on using tickets.