Opened 11 years ago

Closed 11 years ago

#39056 closed defect (fixed)

rust is missing from the PortIndex

Reported by: jmroot (Joshua Root) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: g5pw (Aljaž Srebrnič), cooljeanius (Eric Gallager)
Port: rust

Description

rust doesn't parse in the server environment and is thus missing from the pregenerated PortIndex files. The parse failure can be reproduced on OS X like so:

port info rust build_arch=""
Error: Unable to open port: can't read "stage0(hash)": no such element in array

Change History (7)

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Interesting... Why would build_arch be unset in the server environment?

comment:3 Changed 11 years ago by jmroot (Joshua Root)

It's not unset, it's set to the empty string. And it's like that because archflags are only supported on Darwin.

comment:4 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Hmm... but the configure.build_arch variable is used in a platform darwin block, so it should work fine! How is the portindex generated?

comment:5 in reply to:  4 Changed 11 years ago by jmroot (Joshua Root)

Replying to g5pw@…:

Hmm... but the configure.build_arch variable is used in a platform darwin block, so it should work fine!

The indices are generated for various darwin versions. Also, an empty build_arch is valid (if not recommended) on darwin too.

How is the portindex generated?

source:trunk/base/portmgr/jobs/mprsyncup#L127

Last edited 11 years ago by jmroot (Joshua Root) (previous) (diff)

comment:6 in reply to:  4 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: g5pw@… added; larryv@… removed
Owner: changed from g5pw@… to larryv@…
Status: newassigned

Replying to g5pw@…:

Hmm... but the configure.build_arch variable is used in a platform darwin block, so it should work fine!

Yes, but the switch inside the platform block doesn’t account for an empty configure.build_arch, so the rest of the platform block chokes on the nonexistent stage0(hash) and (I presume) stage0(rmd160) and stage0(sha256).

comment:7 Changed 11 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: assignedclosed

r105932 should fix it.

Note: See TracTickets for help on using tickets.