From nobody Wed Oct 13 17:05:48 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EF8E517F9584; Wed, 13 Oct 2021 17:05:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HTzSX5jBjz3PKX; Wed, 13 Oct 2021 17:05:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A55172B6F9; Wed, 13 Oct 2021 17:05:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19DH5mV0088227; Wed, 13 Oct 2021 17:05:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19DH5mKw088226; Wed, 13 Oct 2021 17:05:48 GMT (envelope-from git) Date: Wed, 13 Oct 2021 17:05:48 GMT Message-Id: <202110131705.19DH5mKw088226@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 693abe1cb40b - main - lang/python3X: Fix library installation List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 693abe1cb40ba9f505b2c72497443ca3ce85887d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=693abe1cb40ba9f505b2c72497443ca3ce85887d commit 693abe1cb40ba9f505b2c72497443ca3ce85887d Author: Thierry Thomas AuthorDate: 2021-10-13 16:48:56 +0000 Commit: Thierry Thomas CommitDate: 2021-10-13 17:05:40 +0000 lang/python3X: Fix library installation The Python ports install the library libpython3.x.so under $PREFIX/lib, and they set USE_LDCONFIG, but these libraries are not registered, due to a missing symlink, and they are not found by `ldconfig -r'. This commit make them to be registered, and for some reason it helps the dynamic linker to find them, and this allows to fix an error in french/aster. It also helps to fix errors in newer releases of math/sage (not yet ready to be committed due to other problems). No exp-run, but it has been tested with many ports on several platforms. PR: 257864 Approved by: koobs (Python team) MFH: 2021Q4 --- lang/python310/Makefile | 2 ++ lang/python310/pkg-plist | 1 + lang/python36/Makefile | 2 ++ lang/python36/pkg-plist | 1 + lang/python37/Makefile | 2 ++ lang/python37/pkg-plist | 1 + lang/python38/Makefile | 2 ++ lang/python38/pkg-plist | 1 + lang/python39/Makefile | 2 ++ lang/python39/pkg-plist | 1 + 10 files changed, 15 insertions(+) diff --git a/lang/python310/Makefile b/lang/python310/Makefile index 508b194c02aa..c74cb102450a 100644 --- a/lang/python310/Makefile +++ b/lang/python310/Makefile @@ -2,6 +2,7 @@ PORTNAME= python DISTVERSION= ${PYTHON_DISTVERSION} +PORTREVISION= 1 CATEGORIES= lang python MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//} PKGNAMESUFFIX= ${PYTHON_SUFFIX} @@ -138,6 +139,7 @@ post-install: .if ! ${PORT_OPTIONS:MDEBUG} ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 .endif + ${LN} -sf libpython${PYTHON_VER}${ABIFLAGS}.so.1.0 ${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1 # This code block exists for the qemu-user enabled cross build environment. # When using this environment in poudriere, CC is not set to the default # of /usr/bin/cc and a cross-compile toolchain is used. We need to hand diff --git a/lang/python310/pkg-plist b/lang/python310/pkg-plist index 7de37fee9168..34a04ee2bf79 100644 --- a/lang/python310/pkg-plist +++ b/lang/python310/pkg-plist @@ -166,6 +166,7 @@ include/python%%XYDOT%%%%ABI%%/unicodeobject.h include/python%%XYDOT%%%%ABI%%/warnings.h include/python%%XYDOT%%%%ABI%%/weakrefobject.h lib/libpython%%XYDOT%%%%ABI%%.so +lib/libpython%%XYDOT%%%%ABI%%.so.1 lib/libpython%%XYDOT%%%%ABI%%.so.1.0 lib/libpython%%XYDOT%%%%ABI%%.so.1.0-gdb.py lib/python%%XYDOT%%/LICENSE.txt diff --git a/lang/python36/Makefile b/lang/python36/Makefile index 5b67fbd5044a..ff039c4118b8 100644 --- a/lang/python36/Makefile +++ b/lang/python36/Makefile @@ -2,6 +2,7 @@ PORTNAME= python DISTVERSION= ${PYTHON_DISTVERSION} +PORTREVISION= 1 CATEGORIES= lang python MASTER_SITES= PYTHON/ftp/python/${DISTVERSION} PKGNAMESUFFIX= ${PYTHON_SUFFIX} @@ -134,6 +135,7 @@ post-install: .if ! ${PORT_OPTIONS:MDEBUG} ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 .endif + ${LN} -sf libpython${PYTHON_VER}${ABIFLAGS}.so.1.0 ${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1 # This code block exists for the qemu-user enabled cross build environment. # When using this environment in poudriere, CC is not set to the default # of /usr/bin/cc and a cross-compile toolchain is used. We need to hand diff --git a/lang/python36/pkg-plist b/lang/python36/pkg-plist index cb338df1412e..ce26bc549bad 100644 --- a/lang/python36/pkg-plist +++ b/lang/python36/pkg-plist @@ -105,6 +105,7 @@ include/python%%XYDOT%%%%ABI%%/unicodeobject.h include/python%%XYDOT%%%%ABI%%/warnings.h include/python%%XYDOT%%%%ABI%%/weakrefobject.h lib/libpython%%XYDOT%%%%ABI%%.so +lib/libpython%%XYDOT%%%%ABI%%.so.1 lib/libpython%%XYDOT%%%%ABI%%.so.1.0 lib/libpython%%XYDOT%%%%ABI%%.so.1.0-gdb.py lib/python%%XYDOT%%/LICENSE.txt diff --git a/lang/python37/Makefile b/lang/python37/Makefile index 4db00e66e9d2..3634f533be11 100644 --- a/lang/python37/Makefile +++ b/lang/python37/Makefile @@ -2,6 +2,7 @@ PORTNAME= python DISTVERSION= ${PYTHON_DISTVERSION} +PORTREVISION= 1 CATEGORIES= lang python MASTER_SITES= PYTHON/ftp/python/${DISTVERSION} PKGNAMESUFFIX= ${PYTHON_SUFFIX} @@ -125,6 +126,7 @@ post-install: .if ! ${PORT_OPTIONS:MDEBUG} ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 .endif + ${LN} -sf libpython${PYTHON_VER}${ABIFLAGS}.so.1.0 ${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1 # This code block exists for the qemu-user enabled cross build environment. # When using this environment in poudriere, CC is not set to the default # of /usr/bin/cc and a cross-compile toolchain is used. We need to hand diff --git a/lang/python37/pkg-plist b/lang/python37/pkg-plist index 0ab606c1c174..b876ababb619 100644 --- a/lang/python37/pkg-plist +++ b/lang/python37/pkg-plist @@ -116,6 +116,7 @@ include/python%%XYDOT%%%%ABI%%/unicodeobject.h include/python%%XYDOT%%%%ABI%%/warnings.h include/python%%XYDOT%%%%ABI%%/weakrefobject.h lib/libpython%%XYDOT%%%%ABI%%.so +lib/libpython%%XYDOT%%%%ABI%%.so.1 lib/libpython%%XYDOT%%%%ABI%%.so.1.0 lib/libpython%%XYDOT%%%%ABI%%.so.1.0-gdb.py lib/python%%XYDOT%%/LICENSE.txt diff --git a/lang/python38/Makefile b/lang/python38/Makefile index f3dcec0757fa..6597443318e7 100644 --- a/lang/python38/Makefile +++ b/lang/python38/Makefile @@ -2,6 +2,7 @@ PORTNAME= python DISTVERSION= ${PYTHON_DISTVERSION} +PORTREVISION= 1 CATEGORIES= lang python MASTER_SITES= PYTHON/ftp/python/${DISTVERSION} PKGNAMESUFFIX= ${PYTHON_SUFFIX} @@ -129,6 +130,7 @@ post-install: .if ! ${PORT_OPTIONS:MDEBUG} ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 .endif + ${LN} -sf libpython${PYTHON_VER}${ABIFLAGS}.so.1.0 ${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1 # This code block exists for the qemu-user enabled cross build environment. # When using this environment in poudriere, CC is not set to the default # of /usr/bin/cc and a cross-compile toolchain is used. We need to hand diff --git a/lang/python38/pkg-plist b/lang/python38/pkg-plist index 6b57ecef4860..2101abcd5f61 100644 --- a/lang/python38/pkg-plist +++ b/lang/python38/pkg-plist @@ -138,6 +138,7 @@ include/python%%XYDOT%%%%ABI%%/unicodeobject.h include/python%%XYDOT%%%%ABI%%/warnings.h include/python%%XYDOT%%%%ABI%%/weakrefobject.h lib/libpython%%XYDOT%%%%ABI%%.so +lib/libpython%%XYDOT%%%%ABI%%.so.1 lib/libpython%%XYDOT%%%%ABI%%.so.1.0 lib/libpython%%XYDOT%%%%ABI%%.so.1.0-gdb.py lib/python%%XYDOT%%/LICENSE.txt diff --git a/lang/python39/Makefile b/lang/python39/Makefile index 2d052cf3741d..d596c2a0de50 100644 --- a/lang/python39/Makefile +++ b/lang/python39/Makefile @@ -2,6 +2,7 @@ PORTNAME= python DISTVERSION= ${PYTHON_DISTVERSION} +PORTREVISION= 1 CATEGORIES= lang python MASTER_SITES= PYTHON/ftp/python/${DISTVERSION} PKGNAMESUFFIX= ${PYTHON_SUFFIX} @@ -130,6 +131,7 @@ post-install: .if ! ${PORT_OPTIONS:MDEBUG} ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 .endif + ${LN} -sf libpython${PYTHON_VER}${ABIFLAGS}.so.1.0 ${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1 # This code block exists for the qemu-user enabled cross build environment. # When using this environment in poudriere, CC is not set to the default # of /usr/bin/cc and a cross-compile toolchain is used. We need to hand diff --git a/lang/python39/pkg-plist b/lang/python39/pkg-plist index 5aef06e5237b..9e315a9b5ca3 100644 --- a/lang/python39/pkg-plist +++ b/lang/python39/pkg-plist @@ -160,6 +160,7 @@ include/python%%XYDOT%%%%ABI%%/unicodeobject.h include/python%%XYDOT%%%%ABI%%/warnings.h include/python%%XYDOT%%%%ABI%%/weakrefobject.h lib/libpython%%XYDOT%%%%ABI%%.so +lib/libpython%%XYDOT%%%%ABI%%.so.1 lib/libpython%%XYDOT%%%%ABI%%.so.1.0 lib/libpython%%XYDOT%%%%ABI%%.so.1.0-gdb.py lib/python%%XYDOT%%/LICENSE.txt