Opened 9 years ago

Closed 9 years ago

#48048 closed submission (duplicate)

py27-horton @2.0.0 Newport portfile problem

Reported by: tczorro (Derrick) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg), petrrr
Port: py-horton

Description

I am trying to make a portfile for our group's python package.

In depends_lib-append section, I port:gcc49 and port:atlas both. But the situation is macport always port atlas first and then gcc49 no matter which one write first. Is there anyway I can change the default sequence. The portfile is attached in the attachment.

Attachments (2)

Portfile.2 (3.9 KB) - added by tczorro (Derrick) 9 years ago.
Portfile (3.9 KB) - added by tczorro (Derrick) 9 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 9 years ago by tczorro (Derrick)

---> Dependencies to be installed: atlas gcc49 ---> Configuring atlas Selected C compiler: /usr/bin/clang Error: org.macports.configure for port atlas returned: Atlas could not detect any fortran compiler. If you really don’t need the fortran interface to be built, please use the +nofortran option, else install a fortran compiler (e.g. gcc4X) before building Atlas. Error: Failed to install atlas

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Port: py-horton added
Type: defectsubmission
Version: 2.3.3

Quick comment:

  • Use the compilers portgroup (which you correctly include) instead of forcing the use of gcc49 for FORTRAN compiling. See the sparskit port for an example of how to use it.

comment:3 in reply to:  2 Changed 9 years ago by tczorro (Derrick)

Replying to mf2k@…:

Quick comment:

  • Use the compilers portgroup (which you correctly include) instead of forcing the use of gcc49 for FORTRAN compiling. See the sparskit port for an example of how to use it.

Thank you for your guidance and I tried but the problem still exits. Fortran is needed to compile Atlas (one of the dependency) rather than this horton package. Then I tried to just sudo port install atlas on my brand-new virtual machine Mac10.10. Still the same problem without Fortran compiler. So could please help me figure this out? I am a sort of novice for macport. And I just update my portfile.

Last edited 9 years ago by tczorro (Derrick) (previous) (diff)

comment:4 Changed 9 years ago by mf2k (Frank Schima)

Then it is an atlas issue, so just remove the dependency on gcc49 entirely. The atlas dependency should cover it.

comment:5 in reply to:  4 ; Changed 9 years ago by tczorro (Derrick)

Replying to mf2k@…:

Then it is an atlas issue, so just remove the dependency on gcc49 entirely. The atlas dependency should cover it.

Thank you for your reply. I removed it but i am not sure whether atlas covers gcc or other compilers. On my own laptop test, it still goes wrong. So, I thought the viable way right now is to ask user to install gcc compiler first and then use macport to install this portfile. Is this OK or should I do some other tweak to this portfile.

Just remove the compilers group and gcc part.

Changed 9 years ago by tczorro (Derrick)

Attachment: Portfile.2 added

Changed 9 years ago by tczorro (Derrick)

Attachment: Portfile added

comment:6 in reply to:  5 Changed 9 years ago by tczorro (Derrick)

Replying to yangx59@…:

Replying to mf2k@…:

Then it is an atlas issue, so just remove the dependency on gcc49 entirely. The atlas dependency should cover it.

Thank you for your reply. I removed it but i am not sure whether atlas covers gcc or other compilers. On my own laptop test, it still goes wrong. So, I thought the viable way right now is to ask user to install gcc compiler first and then use macport to install this portfile. Is this OK or should I do some other tweak to this portfile.

Just remove the compilers group and gcc part.

Just update the latest portfile. But I still have no clue how to tackle atlas problem.

comment:7 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:8 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

I have a working Portfile that appears to build/install this correctly.

    pre-build {
#        system -W ${worksrcpath}/data/refatoms "make all"
        file copy ${worksrcpath}/data/setup_cfgs/setup.Darwin-macport-x86_64.cfg ${worksrcpath}/setup.cfg
        reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/data/setup_cfgs/setup.Darwin-10.10.3-x86_64.cfg
    }
  1. I had to comment out the "make all"
  2. The 10.10.3 is going to be needed to be computed so it works on other systems.

comment:9 in reply to:  8 Changed 9 years ago by tczorro (Derrick)

Replying to khindenburg@…:

I have a working Portfile that appears to build/install this correctly.

    pre-build {
#        system -W ${worksrcpath}/data/refatoms "make all"
        file copy ${worksrcpath}/data/setup_cfgs/setup.Darwin-macport-x86_64.cfg ${worksrcpath}/setup.cfg
        reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/data/setup_cfgs/setup.Darwin-10.10.3-x86_64.cfg
    }
  1. I had to comment out the "make all"
  2. The 10.10.3 is going to be needed to be computed so it works on other systems.

I tried, it doesn't matter as the cfg file is the same for darwin system. Those name differences is only for manual installation.

comment:10 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:11 Changed 9 years ago by petrrr

Resolution: duplicate
Status: newclosed

Duplicated several times. Keeping the latest #48413 and closing all others!

Note: See TracTickets for help on using tickets.