[MacPorts] #66874: building expat via autotools leaves cmake files unprocessed
MacPorts
noreply at macports.org
Wed Feb 8 21:12:12 UTC 2023
#66874: building expat via autotools leaves cmake files unprocessed
---------------------+--------------------
Reporter: RJVB | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: expat |
---------------------+--------------------
Comment (by RJVB):
Replying to [ticket:66874 RJVB]:
> Or simply install the version created by the cmake build because that
lacks the entire offending section (which appears dispensable anyway).
The following expression in the post-destroot will have the same effect,
removing the line that says "don't have CMAKE_SIZEOF_VOID_P" and
everything below:
{{{
reinplace "/ have CMAKE_SIZEOF_VOID_P/,\$d"
${destroot}${prefix}/lib/cmake/expat-${version}/expat-config-version.cmake
}}}
Alternatively, create a manual version of the file that ends with
{{{
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P
set, ignore it:
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "")
return()
endif()
# check that the installed version has the same 32/64bit-ness as the one
which is currently searching:
if(CMAKE_SIZEOF_VOID_P STREQUAL "4" OR CMAKE_SIZEOF_VOID_P STREQUAL "8")
math(EXPR installedBits "${CMAKE_SIZEOF_VOID_P} * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66874#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list