summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2025-06-28 10:26:57 +0200
committerMatthias Andree <mandree@FreeBSD.org>2025-06-30 17:00:08 +0200
commite8ac4b43060461d01bc5083d6050961ddad9ff1c (patch)
tree16f0e6f7fae18cccaa56c2c50f096ca52a0c356c
parentMOVED: mark filesystems/e2fsprogs-libblkid and misc/e2fsprogs-libuuid removed. (diff)
lang/python310: use same mechanism to strip e2fsprogs-libuuid as other lang/python3* ports
PR: 251489
-rw-r--r--lang/python310/Makefile4
-rw-r--r--lang/python310/files/patch-configure32
2 files changed, 4 insertions, 32 deletions
diff --git a/lang/python310/Makefile b/lang/python310/Makefile
index b352e8a2f9d7..aef7d3f2cda0 100644
--- a/lang/python310/Makefile
+++ b/lang/python310/Makefile
@@ -107,6 +107,10 @@ EXTRA_PATCHES+= ${PATCHDIR}/libressl
.endif
post-patch:
+# disable the detection of includes and library from e2fsprogs-libuuid,
+# which introduces hidden dependency and breaks build
+ @${REINPLACE_CMD} -e 's|uuid/uuid.h|ignore_&|' ${WRKSRC}/configure
+
# 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=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
diff --git a/lang/python310/files/patch-configure b/lang/python310/files/patch-configure
deleted file mode 100644
index 1890947cf0d6..000000000000
--- a/lang/python310/files/patch-configure
+++ /dev/null
@@ -1,32 +0,0 @@
-Disable the detection of includes and library from e2fsprogs-libuuid, which
-introduces hidden dependency and breaks build
-
---- configure.orig 2022-08-01 20:25:27 UTC
-+++ configure
-@@ -6625,7 +6625,7 @@ fi
-
- if test "$Py_LTO" = 'true' ; then
- case $CC in
-- *clang*)
-+ *clang*|cc)
-
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
-@@ -10123,7 +10123,7 @@ fi
- # Dynamic linking for HP-UX
-
- # checks for uuid.h location
--for ac_header in uuid/uuid.h uuid.h
-+for ac_header in uuid.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-@@ -10141,7 +10141,7 @@ done
- $as_echo_n "checking for uuid_generate_time_safe... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <uuid/uuid.h>
-+#include <uuid.h>
- int
- main ()
- {