New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #26503 (closed submission: fixed)

Opened 3 years ago

Last modified 2 years ago

New port portfile: gprolog-devel

Reported by: pmoura@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: maintainer haspatch Cc:
Port: gprolog-devel

Description

New port portfile for the development version of GNU Prolog 1.4.0.

Attachments

Portfile (1.9 KB) - added by pmoura@… 3 years ago.

Change History

comment:1 Changed 3 years ago by ryandesign@…

Regarding the line "configure.build_arch i386", please confirm: this version does not work on PowerPC computers or when built 64-bit Intel, but version 1.3.1 (in the gprolog port) did?

comment:2 follow-up: ↓ 3 Changed 3 years ago by pmoura@…

All GNU Prolog versions only support 32 bit on MacOS X.

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4 Changed 3 years ago by jmr@…

Replying to pmoura@…:

All GNU Prolog versions only support 32 bit on MacOS X.

I think what Ryan's getting at is that ppc is 32-bit too.

comment:4 in reply to: ↑ 3 Changed 3 years ago by pmoura@…

Replying to jmr@…:

Replying to pmoura@…:

All GNU Prolog versions only support 32 bit on MacOS X.

I think what Ryan's getting at is that ppc is 32-bit too.

I completely forgot about PowerPC, which is also supported by GNU Prolog. So, the question is, what the best way to specify in the portfile that GNU Prolog can only be built on either ppc or i386?

comment:5 Changed 3 years ago by pmoura@…

Found this code snippet in other portfile:

if {$build_arch == "x86_64"} {
    configure.build_arch i386   
} elseif {$build_arch == "ppc64"} {
    configure.build_arch ppc
}

Assuming this is the recommended solution, I will submit a new version of the portfile next.

comment:6 follow-ups: ↓ 7 ↓ 8 Changed 3 years ago by ryandesign@…

That snippet is out of date; the new way to do that is:

supported_archs i386 ppc

And what I was also getting at is that if all versions of GNU prolog only support 32-bit, then this snippet belongs in the gprolog port, too.

comment:7 in reply to: ↑ 6 ; follow-up: ↓ 9 Changed 3 years ago by pmoura@…

Replying to ryandesign@…:

That snippet is out of date; the new way to do that is:

supported_archs i386 ppc

And what I was also getting at is that if all versions of GNU prolog only support 32-bit, then this snippet belongs in the gprolog port, too.

Yes, although I have not yet updated the "gprolog" portfile in order to try it. I hope to do that tomorrow. If all goes well, I will submit updated portfiles for both "gprolog" and "gprolog-devel". Thanks for your support.

comment:8 in reply to: ↑ 6 Changed 3 years ago by ryandesign@…

Replying to ryandesign@…:

That snippet is out of date

I've removed that kind of usage from ports that still used it and replaced it with supported_archs in r71610.

comment:9 in reply to: ↑ 7 ; follow-up: ↓ 10 Changed 3 years ago by ryandesign@…

Replying to pmoura@…:

I have not yet updated the "gprolog" portfile in order to try it

I tried back-porting the relevant lines from the new version's configure.in, but 1.3.1 still wouldn't build on Snow Leopard for me.

comment:10 in reply to: ↑ 9 Changed 3 years ago by pmoura@…

Replying to ryandesign@…:

Replying to pmoura@…:

I have not yet updated the "gprolog" portfile in order to try it

I tried back-porting the relevant lines from the new version's configure.in, but 1.3.1 still wouldn't build on Snow Leopard for me.

Same experience here. But this is not something that we can fix in a portfile. GNU Prolog generates native code and the support necessary for compiling it on 10.6 simply is not there. I could submit a new portfile for "gprolog" that could be used for users of older MacOS X versions but I think most of them will be better served by installing "gprolog-devel". It seems quite stable. The final version of GNU Prolog 1.4.0 is due soon. At the time, I will submit an updated portfile for "gprolog".

Changed 3 years ago by pmoura@…

comment:11 Changed 3 years ago by pmoura@…

P.S. Just updated the "gprolog-devel" portfile to use:

supported_archs i386 ppc

I think that is ready to be committed :-)

comment:12 Changed 2 years ago by ryandesign@…

  • Status changed from new to assigned
  • Owner changed from macports-tickets@… to ryandesign@…

Thanks, I'll commit it, with the exception that I won't add "use_configure yes" since that is the default.

comment:13 Changed 2 years ago by ryandesign@…

  • Keywords haspatch added
  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.