[MacPorts] #38995: Submission: etsf_io
#38995: Submission: etsf_io ------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: etsf_io ------------------------+-------------------------------- Portfile for ETSF_IO, an input/output library for electronic structure codes, intended for the science category. -- Ticket URL: <https://trac.macports.org/ticket/38995> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by egall@…): I tried building it, and it ran into this error when configuring: {{{ checking for /opt/local/include/netcdf.mod... no checking for /opt/local/include/NETCDF.mod... no checking for /opt/local/include/NETCDF.MOD... no Action: install NetCDF and set its path with --with-netcdf-module-path. configure: error: "No 'NetCDF' module found." Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_LocalPorts_science_etsf_io/etsf_io/work/etsf_io-1.0.3" && ./configure --prefix=/opt/local --disable-dependency-tracking --with- netcdf-module-path=/opt/local/include --with-netcdf- ldflags=-L/opt/local/lib FCFLAGS=-O3 CFLAGS=-O3 Exit code: 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by dstrubbe@…): Hm, thanks for trying it out. Were you building etsf_io, netcd-fortran, or both as universal? netcdf-fortran puts its mods here for me, when building +gcc46 and not universal: {{{ /opt/local/include/NETCDF.mod /opt/local/include/TYPESIZES.mod }}} Not sure why this would be different. I don't see anything about mods explicitly in the netcdf-fortran Portfile. Also, there are no other ports depending on netcdf-fortran to use as a model, it seems from "port list depends:netcdf-fortran". -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by egall@…): Replying to [comment:2 dstrubbe@…]:
Hm, thanks for trying it out. Were you building etsf_io, netcd-fortran, or both as universal?
Both. I have `+universal` in my `variants.conf` file. -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by dstrubbe@…): I tried to build {{{netcdf-fortran +universal}}}, but it set off a cascade of rebuilds of dependencies, ending in an error (#39016), so I cannot reproduce. Maybe something like this is needed? {{{ variant universal { configure.args.delete --with-netcdf-module-path=${prefix}/include configure.args.append --with-netcdf-module- path=${prefix}/mod32/include } }}} But, should it use mod32 or mod64? -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by egall@…): Replying to [comment:4 dstrubbe@…]:
But, should it use mod32 or mod64?
If you use the [https://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/muni... `muniversal` portgroup], I'm pretty sure you could use both... although I'm not sure how exactly though... -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by dstrubbe@…): Well, maybe the simplest is just to add "universal_variant no". I am not sure how to use the portgroup. -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by egall@…): Replying to [comment:7 dstrubbe@…]:
I am not sure how to use the portgroup.
Yeah, it could really use some more usage notes in its comments... -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Comment (by dstrubbe@…): Ok let's just have no universal, pending figuring out how to do that properly. Please review my revised Portfile submission. -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: etsf_io | -------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Fetch fails because the host is offline. I found a copy of the distfile on [https://launchpad.net/etsf-io/+milestone/1.0.3 Launchpad]. Configure fails: {{{ checking for /opt/local/include/netcdf.mod... no checking for /opt/local/include/NETCDF.mod... no checking for /opt/local/include/NETCDF.MOD... no Action: install NetCDF and set its path with --with-netcdf-module-path. configure: error: "No 'NetCDF' module found." }}} Note that I do have netcdf-fortran installed with the universal variant. It appears that netcdf-fortran installs NETCDF.mod into a different place depending on whether it is installed with the universal variant or not. That makes it difficult for ports like etsf_io that want to use NETCDF.mod to know where it is. This might be a bug in netcdf-fortran; I've filed #39319 for that. -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38995: Submission: etsf_io -------------------------+-------------------------------- Reporter: dstrubbe@… | Owner: macports-tickets@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: etsf_io | -------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Committed the port in r106631 with these changes: * added launchpad download location (the main host is back up in the mean time) * changed "mod32" and "mod64" to "mods32" and "mods64" in comment about netcdf-fortran universal * added "require_active_variants netcdf-fortran {} universal" to ensure netcdf-fortran is not installed universal, until we figure out what to do about that * instead of setting "FCFLAGS=-O3 CFLAGS=-O3" in configure.args, I set configure.optflags to "-O3" -- Ticket URL: <https://trac.macports.org/ticket/38995#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts