Opened 7 months ago
Last modified 3 weeks ago
#72741 assigned defect
zstdConfig.cmake port is NOT noarch
| Reported by: | barracuda156 | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.11.3 |
| Keywords: | Cc: | cooljeanius (Eric Gallager) | |
| Port: | zstdConfig.cmake |
Description
The port hardcodes bitness of the OS:
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "4" STREQUAL "")
return()
endif()
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "4")
math(EXPR installedBits "4 * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
In result, for example, on ppc64 it is broken: noarch wipes out MacPorts-passed arch setting, the port is built for ppc, then any dependency calling it fails to configure.
Change History (2)
comment:1 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
| Owner: | set to MarcusCalhoun-Lopez |
|---|---|
| Status: | new → assigned |
comment:2 Changed 3 weeks ago by cooljeanius (Eric Gallager)
| Cc: | cooljeanius added |
|---|
Note: See
TracTickets for help on using
tickets.
