mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
lang/python3(6|7|8|9|10|11): work around unwanted multiarch detection again
In ports 6bef096664
we patched out python's erroneous multiarch
detection using sed, but upstream changed the surrounding parts in the
configure script to defeat the regex we were using. Update the regex to
cope with the change.
PR: 259896, 258377
MFH: 2021Q4
Approved by: maintainer timeout (9 days)
This commit is contained in:
parent
48c9377ca7
commit
4af982e6be
6 changed files with 6 additions and 12 deletions
|
@ -127,8 +127,7 @@ post-patch:
|
|||
@${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py
|
||||
# disable detection of multiarch as it breaks with clang >= 13, which adds a
|
||||
# major.minor version number in -print-multiarch output, confusing Python
|
||||
@${REINPLACE_CMD} -e 's|^MULTIARCH=.*|MULTIARCH=|' ${WRKSRC}/configure \
|
||||
${WRKSRC}/configure.ac
|
||||
@${REINPLACE_CMD} -e 's|^\( *MULTIARCH=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
|
||||
# Apply DISABLED_EXTENSIONS
|
||||
@${ECHO_CMD} '*disabled*' > ${WRKSRC}/Modules/Setup.local
|
||||
. for _module in ${DISABLED_EXTENSIONS}
|
||||
|
|
|
@ -126,8 +126,7 @@ post-patch:
|
|||
@${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py
|
||||
# disable detection of multiarch as it breaks with clang >= 13, which adds a
|
||||
# major.minor version number in -print-multiarch output, confusing Python
|
||||
@${REINPLACE_CMD} -e 's|^MULTIARCH=.*|MULTIARCH=|' ${WRKSRC}/configure \
|
||||
${WRKSRC}/configure.ac
|
||||
@${REINPLACE_CMD} -e 's|^\( *MULTIARCH=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
|
||||
# Apply DISABLED_EXTENSIONS
|
||||
@${ECHO_CMD} '*disabled*' > ${WRKSRC}/Modules/Setup.local
|
||||
. for _module in ${DISABLED_EXTENSIONS}
|
||||
|
|
|
@ -128,8 +128,7 @@ PLIST_SUB+= NO_NIS=""
|
|||
post-patch:
|
||||
# disable detection of multiarch as it breaks with clang >= 13, which adds a
|
||||
# major.minor version number in -print-multiarch output, confusing Python
|
||||
@${REINPLACE_CMD} -e 's|^MULTIARCH=.*|MULTIARCH=|' ${WRKSRC}/configure \
|
||||
${WRKSRC}/configure.ac
|
||||
@${REINPLACE_CMD} -e 's|^\( *MULTIARCH=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
.if ! ${PORT_OPTIONS:MDEBUG}
|
||||
|
|
|
@ -114,8 +114,7 @@ post-patch:
|
|||
@${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py
|
||||
# disable detection of multiarch as it breaks with clang >= 13, which adds a
|
||||
# major.minor version number in -print-multiarch output, confusing Python
|
||||
@${REINPLACE_CMD} -e 's|^MULTIARCH=.*|MULTIARCH=|' ${WRKSRC}/configure \
|
||||
${WRKSRC}/configure.ac
|
||||
@${REINPLACE_CMD} -e 's|^\( *MULTIARCH=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
|
||||
# Apply DISABLED_EXTENSIONS
|
||||
@${ECHO_CMD} '*disabled*' > ${WRKSRC}/Modules/Setup.local
|
||||
. for _module in ${DISABLED_EXTENSIONS}
|
||||
|
|
|
@ -118,8 +118,7 @@ post-patch:
|
|||
@${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py
|
||||
# disable detection of multiarch as it breaks with clang >= 13, which adds a
|
||||
# major.minor version number in -print-multiarch output, confusing Python
|
||||
@${REINPLACE_CMD} -e 's|^MULTIARCH=.*|MULTIARCH=|' ${WRKSRC}/configure \
|
||||
${WRKSRC}/configure.ac
|
||||
@${REINPLACE_CMD} -e 's|^\( *MULTIARCH=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
|
||||
# Apply DISABLED_EXTENSIONS
|
||||
@${ECHO_CMD} '*disabled*' > ${WRKSRC}/Modules/Setup.local
|
||||
. for _module in ${DISABLED_EXTENSIONS}
|
||||
|
|
|
@ -118,8 +118,7 @@ post-patch:
|
|||
@${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py
|
||||
# disable detection of multiarch as it breaks with clang >= 13, which adds a
|
||||
# major.minor version number in -print-multiarch output, confusing Python
|
||||
@${REINPLACE_CMD} -e 's|^MULTIARCH=.*|MULTIARCH=|' ${WRKSRC}/configure \
|
||||
${WRKSRC}/configure.ac
|
||||
@${REINPLACE_CMD} -e 's|^\( *MULTIARCH=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
|
||||
# Apply DISABLED_EXTENSIONS
|
||||
@${ECHO_CMD} '*disabled*' > ${WRKSRC}/Modules/Setup.local
|
||||
. for _module in ${DISABLED_EXTENSIONS}
|
||||
|
|
Loading…
Add table
Reference in a new issue