mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
Newer versions of FreeBSD provide mempcpy, which conflicts with the port's own implementation -- meant for the older versions. While here, fix compilation with newer Python -- not just 3.7 -- and relax the requirement for Python-version. This necessitated bumping PORTREVISION -- because the default Python is 3.8 nowadays. Also, define TEST_TARGET -- and fix one of the test to compile. This needs further work, however. PR: 257866
9 lines
644 B
Text
9 lines
644 B
Text
--- src/external/python.m4 2020-03-17 09:31:28.000000000 -0400
|
|
+++ src/external/python.m4 2022-02-22 22:55:04.425467000 -0500
|
|
@@ -37,5 +37,5 @@
|
|
PYTHON_DLOPEN_LIB="` $PYTHON_CONFIG --libs --embed | grep -o -- '-lpython@<:@^ @:>@*' |sed -e 's/^-l/lib/'`"
|
|
if test x"$PYTHON_DLOPEN_LIB" != x; then
|
|
- python_lib_path="` $PYTHON_CONFIG --ldflags | grep -o -- '-L/@<:@^ @:>@*' | sed -e 's/^-L//'`"
|
|
+ python_lib_path="` $PYTHON_CONFIG --ldflags | sed -n 's/.*-L\(@<:@^ @:>@*\).*/\1/p'`"
|
|
if test x"$python_lib_path" != x; then
|
|
PYTHON_DLOPEN_LIB=$python_lib_path"/"$PYTHON_DLOPEN_LIB
|