Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2021 15:53:02 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8af3d45c8b1f - main - math/lapack: fix broken lib symlink
Message-ID:  <202107181553.16IFr2UT076295@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8af3d45c8b1fbc2ace55eccd74b93defffce5b1a

commit 8af3d45c8b1fbc2ace55eccd74b93defffce5b1a
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2021-07-18 15:37:07 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2021-07-18 15:40:50 +0000

    math/lapack: fix broken lib symlink
    
    In lapack-3.10.0, there is a broken sym link for libtmglib.so.3.10.0
    (should be a file):
    
    /usr/local/lib/libtmglib.so.3@ -> libtmglib.so.3.10.0
    /usr/local/lib/libtmglib.so.3.10.0@ -> libtmglib.so.3
    
    Just remove the unnecessary code in post-install for libtmglib shared
    lib files. 'do-install' does everything correctly.
    
    PR:             257139
    Reported by:    John Hein <jcfyecrayz (at) liamekaens.com>
---
 math/lapack/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/math/lapack/Makefile b/math/lapack/Makefile
index 66774d40d1fe..73253ef2c45a 100644
--- a/math/lapack/Makefile
+++ b/math/lapack/Makefile
@@ -2,7 +2,11 @@
 
 PORTNAME?=	lapack
 PORTVERSION=	3.10.0
+.if !(defined(BLAS_SLAVEPORT) || defined(CBLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT) || defined(LAPACKE_SLAVEPORT))
+PORTREVISION=	1
+.else
 PORTREVISION?=	0	# Never remove this line, keep PORTREVISION?=0 in case.
+.endif
 CATEGORIES=	math
 MASTER_SITES=	https://github.com/Reference-LAPACK/lapack/archive/refs/tags/:src	\
 		http://www.netlib.org/lapack/:man	\
@@ -164,10 +168,6 @@ post-install:
 .else # Lapack
 	${INSTALL_DATA} ${BUILD_WRKSRC}/SRC/liblapack.a ${STAGEDIR}${PREFIX}/lib
 	${INSTALL_DATA} ${BUILD_WRKSRC}/TESTING/MATGEN/libtmglib.a ${STAGEDIR}${PREFIX}/lib
-	${MV} ${STAGEDIR}${PREFIX}/lib/libtmglib.so	\
-		${STAGEDIR}${PREFIX}/lib/libtmglib.so.${PORTVERSION}
-	${LN} -sf libtmglib.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libtmglib.so
-	${LN} -sf libtmglib.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libtmglib.so.${SVERSION}
 .endif
 
 .include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107181553.16IFr2UT076295>