[MacPorts] #45137: pure-gen @0.16: update to 0.18
#45137: pure-gen @0.16: update to 0.18 -----------------------+-------------------------------- Reporter: aggraef@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: pure-gen -----------------------+-------------------------------- I have attached the suggested changes to the Portfile. Please note that the patch patch-pure-gen.pure.diff shouldn't be needed anymore, since the Makefile now properly detects the installed gcc on OS X and edits pure- gen.pure accordingly. The added `PUREC_FLAGS=-mcpu=generic` in the build flags makes sure that the created pure-gen binary uses a generic instruction set which should work on any x86/x86_64 machine. I don't know whether this is actually needed on the Mac, but I do it this way on all the other Windows and Linux systems I build binary packages for, and in any case it shouldn't do any harm. However, note that the `-mcpu=generic` needs Pure 0.62, so it shouldn't be used for platforms where this isn't available. If it causes too much trouble, simply leave out that option in the build flags. I've tested this on my MB Pro running 10.9.5. The Portfile works fine there and the installed pure-gen can regenerate the entire pure-gl wrapper without a hitch. So it should be all right. -- Ticket URL: <https://trac.macports.org/ticket/45137> MacPorts <http://www.macports.org/> Ports system for OS X
#45137: pure-gen @0.16: update to 0.18 ------------------------+-------------------------- Reporter: aggraef@… | Owner: ryandesign@… Type: update | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: pure-gen | ------------------------+-------------------------- Changes (by ryandesign@…): * status: new => assigned * owner: macports-tickets@… => ryandesign@… Comment: Thanks. It'll take me awhile to build the dependencies on my second machine; ghc does not build on my primary machine (#42091). We should keep the patch to tell pure-gen where to find gcc. In your Makefile you now do this on Darwin: {{{ gcc = $(lastword gcc $(sort $(wildcard /opt/local/bin/gcc-mp-*))) }}} However, this assumes the MacPorts prefix is /opt/local (it could be elsewhere), and it assumes the user would like to use the most recent installed gcc. Instead, we want to use the specific gcc which the user has requested via the corresponding gcc''NN'' variant. This Makefile line will also not be helpful for users of manually- installed gcc, nor those using package managers other than MacPorts (there are two other popular OS X package management systems). -- Ticket URL: <https://trac.macports.org/ticket/45137#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#45137: pure-gen @0.16: update to 0.18 ------------------------+-------------------------- Reporter: aggraef@… | Owner: ryandesign@… Type: update | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: pure-gen | ------------------------+-------------------------- Comment (by aggraef@…): Ok, I see. Well, that was an attempt to make it at least work transparently with standard MacPorts installations. But at least you won't need the patch anymore, since in pure-gen 0.18 there's already a `@gcc@` substitution in the pure-gen.pure script anyway. So you just need to replace the `@CC@` in the reinplace rule with `@gcc@` and you should be set. -- Ticket URL: <https://trac.macports.org/ticket/45137#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#45137: pure-gen @0.16: update to 0.18 ------------------------+-------------------------- Reporter: aggraef@… | Owner: ryandesign@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: fixed | Keywords: Port: pure-gen | ------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Replying to [comment:2 aggraef@…]:
But at least you won't need the patch anymore, since in pure-gen 0.18 there's already a `@gcc@` substitution in the pure-gen.pure script anyway. So you just need to replace the `@CC@` in the reinplace rule with `@gcc@` and you should be set.
Good point! Committed in r125713 and r125717. -- Ticket URL: <https://trac.macports.org/ticket/45137#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts