git: 94633f9d526b - 2022Q3 - lang/python310: Fix disabling uuid.h detection and stage-qa error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Sep 2022 08:02:29 UTC
The branch 2022Q3 has been updated by wen:
URL: https://cgit.FreeBSD.org/ports/commit/?id=94633f9d526b5d49071ff2c73f762c1c417be8b6
commit 94633f9d526b5d49071ff2c73f762c1c417be8b6
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:26:11 +0000
Commit: Wen Heping <wen@FreeBSD.org>
CommitDate: 2022-09-09 07:58:34 +0000
lang/python310: Fix disabling uuid.h detection and stage-qa error
- Bump PORTREVISION for package change
====> Running Q/A tests (stage-qa)
Error: /usr/local/lib/python3.10/lib-dynload/_uuid.cpython-310.so is linked to /usr/local/lib/libuuid.so.1 from misc/e2fsprogs-libuuid but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libuuid.so:misc/e2fsprogs-libuuid
...
Warning: Possible REINPLACE_CMD issues:
- - REINPLACE_CMD ran, but did not modify file contents: setup.py
---
lang/python310/Makefile | 5 +----
lang/python310/files/patch-configure | 23 ++++++++++++++++++++++-
2 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/lang/python310/Makefile b/lang/python310/Makefile
index f2ec1104c73f..37d9ec6fffc6 100644
--- a/lang/python310/Makefile
+++ b/lang/python310/Makefile
@@ -1,5 +1,6 @@
PORTNAME= python
DISTVERSION= ${PYTHON_DISTVERSION}
+PORTREVISION= 1
CATEGORIES= lang python
MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//}
PKGNAMESUFFIX= ${PYTHON_SUFFIX}
@@ -122,10 +123,6 @@ PLIST_SUB+= SUPPORTED_OPENSSL=""
.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
- @${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=\).*--print-multiarch.*|\1|' ${WRKSRC}/configure
diff --git a/lang/python310/files/patch-configure b/lang/python310/files/patch-configure
index c78047439605..1890947cf0d6 100644
--- a/lang/python310/files/patch-configure
+++ b/lang/python310/files/patch-configure
@@ -1,4 +1,7 @@
---- configure.orig 2022-02-23 19:52:00 UTC
+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
@@ -9,3 +12,21 @@
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 ()
+ {