Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177951250
D60369.1795632532.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D60369.1795632532.diff
View Options
Index: lang/python314/Makefile
===================================================================
--- lang/python314/Makefile
+++ lang/python314/Makefile
@@ -53,9 +53,11 @@
DISTVERSION=${DISTVERSION} \
OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554
-OPTIONS_DEFINE= DEBUG IPV6 LIBMPDEC LTO NLS PYMALLOC
+OPTIONS_DEFINE= DEBUG DTRACE IPV6 LIBMPDEC LTO NLS PYMALLOC
OPTIONS_DEFAULT= LIBMPDEC LTO PYMALLOC
-OPTIONS_EXCLUDE_riscv64= LTO
+OPTIONS_EXCLUDE_aarch64= DTRACE
+OPTIONS_EXCLUDE_powerpc64= DTRACE LTO
+OPTIONS_EXCLUDE_riscv64= DTRACE LTO
OPTIONS_RADIO= HASH
OPTIONS_RADIO_HASH= FNV SIPHASH
OPTIONS_GROUP= EXPERIMENTAL
@@ -73,6 +75,11 @@
EXPERIMENTAL_DESC= Experimental features
JIT_DESC= Enable just-in-time compiler
+DTRACE_CONFIGURE_WITH= dtrace
+DTRACE_PREVENTS= LTO
+DTRACE_PREVENTS_MSG= LTO implies .o files with LLVM bitcode, while DTrace needs ELF objects
+DTRACE_PLIST_FILES= %%PYTHON_BASEINCLUDEDIR%%%%THREAD%%%%ABI%%/pydtrace_probes.h
+
FNV_CONFIGURE_ON= --with-hash-algorithm=fnv
SIPHASH_CONFIGURE_ON= --with-hash-algorithm=siphash24
Index: lang/python314/files/patch-configure
===================================================================
--- /dev/null
+++ lang/python314/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig 2026-10-02 14:08:01 UTC
++++ configure
+@@ -19836,7 +19836,7 @@ else case e in #(
+ ac_cv_dtrace_link=no
+ echo 'BEGIN{}' > conftest.d
+ case $host in
+- *netbsd*)
++ *freebsd*|*netbsd*)
+ DTRACE_TEST_FLAGS="-x nolibs -h"
+ ;;
+ *)
+@@ -19855,7 +19855,7 @@ printf "%s\n" "$ac_cv_dtrace_link" >&6; }
+ fi
+ # Set NetBSD-specific DTrace flags in DFLAGS
+ case $host in
+- *netbsd*)
++ *freebsd*|*netbsd*)
+ DFLAGS="$DFLAGS -x nolibs"
+ ;;
+ esac
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 6:48 PM (23 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41996688
Default Alt Text
D60369.1795632532.diff (1 KB)
Attached To
Mode
D60369: lang/python314: Add DTRACE
Attached
Detach File
Event Timeline