Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2021 15:57:44 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 66f727881fa7 - 2021Q3 - math/lapack: fix broken lib symlink
Message-ID:  <202107181557.16IFviXr076741@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=66f727881fa71278eb1c0941467e43a7579df876

commit 66f727881fa71278eb1c0941467e43a7579df876
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:57:30 +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>
    
    (cherry picked from commit 8af3d45c8b1fbc2ace55eccd74b93defffce5b1a)
---
 math/lapack/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/math/lapack/Makefile b/math/lapack/Makefile
index a31c73eb8fa1..128c6f2eb4da 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
@@ -163,10 +167,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?202107181557.16IFviXr076741>