[MacPorts] #38285: rust @0.5: build process downloads compiler for bootstrapping
#38285: rust @0.5: build process downloads compiler for bootstrapping ----------------------+-------------------- Reporter: larryv@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: rust ----------------------+-------------------- As per http://static.rust-lang.org/doc/0.5/tutorial.html:
Since the Rust compiler is written in Rust, it must be built by a precompiled "snapshot" version of itself (made in an earlier state of development). As such, source builds require a connection to the Internet, to fetch snapshots, and an OS that can execute the available snapshot binaries.
This doesn’t seem optimal; the build phase should not require Internet connectivity. Is there a way to work around this? Maybe by treating the snapshot compiler as a distfile? -- Ticket URL: <https://trac.macports.org/ticket/38285> MacPorts <http://www.macports.org/> Ports system for OS X
#38285: rust @0.5: build process downloads compiler for bootstrapping -----------------------+---------------------- Reporter: larryv@… | Owner: g5pw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: rust | -----------------------+---------------------- Changes (by g5pw@…): * status: new => assigned Comment: Yeah, I think I could be able to coerce the build process into using downloaded distfiles. -- Ticket URL: <https://trac.macports.org/ticket/38285#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38285: rust @0.5: build process downloads compiler for bootstrapping -----------------------+---------------------- Reporter: larryv@… | Owner: g5pw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: rust | -----------------------+---------------------- Comment (by g5pw@…): Ok, got it to work using distfiles. The thing is, we need two distfiles, one for i686 and one for x86_64. Should we download both and then use the appropriate one? Is there something similar to "platform darwin {}" but for archs? -- Ticket URL: <https://trac.macports.org/ticket/38285#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38285: rust @0.5: build process downloads compiler for bootstrapping -----------------------+---------------------- Reporter: larryv@… | Owner: g5pw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: rust | -----------------------+---------------------- Comment (by larryv@…): Replying to [comment:2 g5pw@…]:
Ok, got it to work using distfiles. The thing is, we need two distfiles, one for i686 and one for x86_64. Should we download both and then use the appropriate one? Is there something similar to "platform darwin {}" but for archs?
Yeah, you can use “`platform darwin i386`” and “`platform darwin x86_64`”. http://guide.macports.org/chunked/reference.variants.html#reference.variants... -- Ticket URL: <https://trac.macports.org/ticket/38285#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38285: rust @0.5: build process downloads compiler for bootstrapping -----------------------+---------------------- Reporter: larryv@… | Owner: g5pw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: rust | -----------------------+---------------------- Comment (by g5pw@…): I got this working, see [https://trac.macports.org/ticket/38279#comment:10 here]. There's still a small issue (segmentation fault) but I think it's unrelated. -- Ticket URL: <https://trac.macports.org/ticket/38285#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38285: rust @0.5: build process downloads compiler for bootstrapping -----------------------+-------------------- Reporter: larryv@… | Owner: g5pw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: rust | -----------------------+-------------------- Changes (by larryv@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r104052. -- Ticket URL: <https://trac.macports.org/ticket/38285#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts