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)
Change History (13)
comment:1 Changed 9 years ago by tczorro (Derrick)
comment:2 follow-up: 3 Changed 9 years ago by mf2k (Frank Schima)
Port: | py-horton added |
---|---|
Type: | defect → submission |
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 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.
comment:4 follow-up: 5 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 follow-up: 6 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)
comment:6 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:8 follow-up: 9 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 }
- I had to comment out the "make all"
- The 10.10.3 is going to be needed to be computed so it works on other systems.
comment:9 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 }
- I had to comment out the "make all"
- 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:11 Changed 9 years ago by petrrr
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicated several times. Keeping the latest #48413 and closing all others!
---> 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