Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12253 closed enhancement (fixed)

libnc-dap: always use gcc42, not just on i386

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: tenomoto (Takeshi Enomoto), basmac
Port:

Description

libnc-dap uses gcc40 on powerpc and gcc42 on i386. I imagine that gcc40 was used on powerpc because it was the latest stable release at the time, and gcc42 was used on i386 because earlier gccs don't work on Intel Macs. But now that gcc42 is out of beta, it should be used always. I'll attach a patch.

Attachments (2)

libnc-dap.diff (983 bytes) - added by ryandesign (Ryan Carsten Schmidt) 17 years ago.
Portfile (1.4 KB) - added by takeshi@… 17 years ago.

Download all attachments as: .zip

Change History (8)

Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: libnc-dap.diff added

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… takeshi@… added

The patch libnc-dap.diff does the following things:

  • removes powerpc and i386 platform selectors
  • defines variant gcc42, default, unless g95 is selected
  • adds variant descriptions
  • fixes name of gfortran (has been "gfortran-mp-42" for awhile)
  • gcc is a build dependency, not a library dependency

Note that I have not tested this patch, because I do not use the libnc-dap software. Please test the patch to ensure it works, and then commit it. (If you don't have commit access, let me know and I'll be happy to commit it.)

Changed 17 years ago by takeshi@…

Attachment: Portfile added

comment:2 Changed 17 years ago by takeshi@…

This is a supporting library for netcdf+OPeNDAP clients and servers. It looks OK with g95... I don't use gfortran. Would be nice if someone could test with gcc42.

comment:3 Changed 17 years ago by nox@…

Priority: ExpectedNormal
Type: defectenhancement
Version: 1.4.42

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

Cc: takeshi@… barry.j.mcinnes@… added; ryandesign@… takeshi@… removed

Has duplicate #13863.

comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I think it's time this fix was committed. It works for me on i386 with gcc42. It works for the maintainer with g95; see comment 2. Unfortunately nobody tested it on powerpc, but I believe the fix is correct, so I committed it in r33937.

Please wait 12 hours, then "sudo port selfupdate" and try to install or upgrade libnc-dap, as appropriate. If you're on powerpc, it would be appreciated if you would add a note saying whether this worked or not. Thanks.

comment:6 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.