Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#1393 closed defect (fixed)

platform doesn't honor arch

Reported by: pguyot (Paul Guyot) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

The function platform doesn't work as expected (i.e. as commented in the source, it's not documented in portfile(7) as far as I was able to read). It doesn't honor the arch option, apparently because of some bug.

Test case: create a port with the following lines:

pre-checksum {

ui_msg "pre-checksum - os.arch is ${os.arch} os.version is ${os.version}"

} platform darwin powerpc {

pre-checksum {

ui_msg "darwin powerpc"

}

} platform darwin 6 {

pre-checksum {

ui_msg "darwin 6"

}

} platform darwin 7 {

pre-checksum {

ui_msg "darwin 7"

}

} platform darwin 7 powerpc {

pre-checksum {

ui_msg "darwin 7 powerpc"

}

} platform darwin 6 powerpc {

pre-checksum {

ui_msg "darwin 6 powerpc"

}

} platform darwin 6 x86 {

pre-checksum {

ui_msg "darwin 6 x86"

}

}

I only get darwin and darwin 7 to work here. Normally, I should get darwin, darwin 7, darwin powerpc and darwin 7 powerpc.

A patch to fix this is attached. BTW, the intent of Will (?) was that darwin powerpc 7 would also work, and this is maintainted.

Attachments (1)

portutil.tcl.diff (1.3 KB) - added by pguyot (Paul Guyot) 20 years ago.
Patch to portutil.tcl to fix the problem

Download all attachments as: .zip

Change History (2)

Changed 20 years ago by pguyot (Paul Guyot)

Attachment: portutil.tcl.diff added

Patch to portutil.tcl to fix the problem

comment:1 Changed 20 years ago by jkh@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.