Opened 14 years ago

Closed 13 years ago

#26503 closed submission (fixed)

New port portfile: gprolog-devel

Reported by: pmoura (Paulo Moura) Owned by: ryandesign (Ryan Carsten Schmidt)
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 (1)

Portfile (1.9 KB) - added by pmoura (Paulo Moura) 14 years ago.

Download all attachments as: .zip

Change History (14)

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

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 Changed 14 years ago by pmoura (Paulo Moura)

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

comment:3 in reply to:  2 ; Changed 14 years ago by jmroot (Joshua Root)

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 14 years ago by pmoura (Paulo Moura)

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 14 years ago by pmoura (Paulo Moura)

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 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

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 ; Changed 14 years ago by pmoura (Paulo Moura)

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 14 years ago by ryandesign (Ryan Carsten Schmidt)

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 ; Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

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 14 years ago by pmoura (Paulo Moura)

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 14 years ago by pmoura (Paulo Moura)

Attachment: Portfile added

comment:11 Changed 14 years ago by pmoura (Paulo Moura)

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 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

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

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

Keywords: haspatch added
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.