Opened 11 years ago
Last modified 11 years ago
#43333 new defect
Ports using platform or os for version based changes will probably fail if macosx_deployment_target is different than the current platform
Reported by: | springermac (Jonathan Springer) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: |
Description
Ports using platform or os for version based changes will probably fail if macosx_deployment_target is different than the current platform because any changes based on the current platform or os will fail when configured or built against the macosx_deployment_target. E.g if the current platform is mavericks 10.9 darwin 13 and the macosx_deployment_target is mountain lion 10.8 darwin 12 any version based changes in a port will be applied against mavericks 10.9 darwin 13 not mountain lion 10.8 darwin 12.
Change History (2)
comment:1 Changed 11 years ago by springermac (Jonathan Springer)
comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
You are correct that the platform blocks describe the build system, which is not necessarily the same as the target system, and that changing macosx_deployment_target is not well supported by ports.
A solution could be to override the value returned the platform and os with the value of macosx_deployment_target when it is set in the config file.