From nobody Wed Nov 01 17:29:05 2023 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 4SLDWj3xthz4yjB1; Wed, 1 Nov 2023 17:29:05 +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 4SLDWj3PcMz3L0S; Wed, 1 Nov 2023 17:29:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698859745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IlNqr6Nf2J8m4ys0fadT5sIS7XwMXq2tWKfMLMvWpPY=; b=A7FLl7fgXK9jRkr4E9OBJOiu2VgjYtiyd9W35OfQCN5Ej7yAoCEJsXZX+iom0Lr4vxqDVB r6JxWXZRcC11uqexFqBVa53af4RO2hMOntyfvwgqeGHKkbiVair4wVQhrrshc9UA/Zsfnd AIbeFxxcVVNEJrw29favXI616xG5GxquILZTXs6OSDS90YJAukULlGgdpG6sMEwKQtAikw Zz2xlJojCuI+T1BdHFJ0Pgkb4Mc3jzm7iK9OG/vEA4SqHWxfvgNUjTtTWrvuYCyoejkynC ybfygzYLW+EtA/Okii1HDAnWtDcK0fy3QQYj1cHox0PeiI7JNbY/Q6JWwXl0zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698859745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IlNqr6Nf2J8m4ys0fadT5sIS7XwMXq2tWKfMLMvWpPY=; b=Lp4/BhO78/WdAEiy/qUAZPBqA+uz2vTjY/879HrGRvA0tLO0hjQy7lFbGrwmDZFpvqF/6q RUeLGUR0h+4Z/wIDbXOppqSZhcDFCP9kuTUp7xGi4tTwnustXGsFPmIsYNdGroVDSdd6l/ 37oSGns8h7rF6XtHTmii0b+LOvNSqvjKCRsrvdkBbo6ZbQYQcLXVWGeNkpSfwlmr6HR0Ws ociRUorVJh47yKCZXXleT3F/o/n0Sfk3junC4f5XlVU51hmgCqEQ+IHKtcI0QySgAmVrWx y3GUN1xM7/3v+6E19Ix4vLHFU6Wveg+Hto7Y5ZU3XHp+hiB8xoByaU99PZvVJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698859745; a=rsa-sha256; cv=none; b=cj6/YRX5vASN/pW7jrxzncWq9os04mwOgzTl/A5bm4bfAzwvo/BQ1r4VQY7pMtEr50tQLG gpB8Garx9ndB/ZXaYLJQ3KseSucRQNon8hk2+0lBnhMCps28g7GmIudzu7xRtkEiyUhbYz 2MOr+rrqH8TP0NJLdb0gEWV55qNT2BQ9Ky/iVyVHH32FEz3Q/6uJ3PCxOpj5KVBrnmIiyH vzz5j/2337++wPgf7bGDdUasdbEN0tQlltwlG/VLDn2Em48ikCMXuUjtHoCl8wWg3pwYN+ YNEaUSTvNH9GFN/z5+rWB2MT55P/pVDoQJi0Ebiju1Hax2asBc/Y7Yf1XIHP0w== 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 4SLDWj29BwzvPq; Wed, 1 Nov 2023 17:29:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A1HT54R000544; Wed, 1 Nov 2023 17:29:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A1HT5Ge000541; Wed, 1 Nov 2023 17:29:05 GMT (envelope-from git) Date: Wed, 1 Nov 2023 17:29:05 GMT Message-Id: <202311011729.3A1HT5Ge000541@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: 2a236ba2fb12 - main - math/dsdp: adding a SONAME to the shared library 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: 2a236ba2fb1292066821487f6ad5cf49949705cd Auto-Submitted: auto-generated The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a236ba2fb1292066821487f6ad5cf49949705cd commit 2a236ba2fb1292066821487f6ad5cf49949705cd Author: Thierry Thomas AuthorDate: 2023-11-01 16:06:15 +0000 Commit: Thierry Thomas CommitDate: 2023-11-01 17:22:16 +0000 math/dsdp: adding a SONAME to the shared library When building math/py-cvxopt the following error is displayed: Error: /usr/local/lib/python3.9/site-packages/cvxopt/dsdp.cpython-39.so is linked to /usr/local/lib/libdsdp.so which does not have a SONAME. math/dsdp needs to be fixed. Since I’m there, also install the static library. PR: 274851 Approved by: yuri 'maintainer) --- math/dsdp/Makefile | 6 ++++-- math/dsdp/files/patch-Makefile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/math/dsdp/Makefile b/math/dsdp/Makefile index 06588fcb81bf..b8cd5abb1d0e 100644 --- a/math/dsdp/Makefile +++ b/math/dsdp/Makefile @@ -1,6 +1,6 @@ PORTNAME= dsdp DISTVERSION= 5.8 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= math MASTER_SITES= https://www.mcs.anl.gov/hs/software/${PORTNAME:tu}/ DISTNAME= ${PORTNAME:tu}${DISTVERSION} @@ -23,7 +23,7 @@ USE_LDCONFIG= yes ALL_TARGET= all oshared all oshared BINARY_ALIAS= make=${GMAKE} gcc=${CC} -MAKE_ENV= DSDPROOT=${WRKSRC} SH_LD="${CC} -shared" +MAKE_ENV= DSDPROOT=${WRKSRC} SH_LD="${CC} -shared -Wl,-soname,libdsdp.so.0" CFLAGS+= -fPIC PLIST_FILES= bin/dsdp5 \ @@ -32,6 +32,7 @@ PLIST_FILES= bin/dsdp5 \ include/dsdp/dsdplapack.h \ include/dsdp/dsdpmem.h \ include/dsdp/dsdpsys.h \ + lib/libdsdp.a \ lib/libdsdp.so.0 \ lib/libdsdp.so @@ -42,6 +43,7 @@ do-build: # the build fails to build all binaries without being called twice due do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/dsdp ${INSTALL_PROGRAM} ${WRKSRC}/bin/dsdp5 ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/lib/libdsdp.a ${STAGEDIR}${PREFIX}/lib ${INSTALL_LIB} ${WRKSRC}/lib/libdsdp.so ${STAGEDIR}${PREFIX}/lib/libdsdp.so.0 (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s libdsdp.so.0 libdsdp.so) ${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/dsdp diff --git a/math/dsdp/files/patch-Makefile b/math/dsdp/files/patch-Makefile index 9d1d131f58f7..9e9bd9781648 100644 --- a/math/dsdp/files/patch-Makefile +++ b/math/dsdp/files/patch-Makefile @@ -9,6 +9,6 @@ - ${SH_LD} ${DSDPLIBSO} *.o -o ${DSDPLIBSO}; \ + echo "building ${DSDPLIBSO}" + ${AR} x ${DSDPLIB} -+ $(CC) -shared $(LDFLAGS) -llapack -lblas -lm *.o -o ${DSDPLIBSO}; \ ++ $(SH_LD) $(LDFLAGS) -llapack -lblas -lm *.o -o ${DSDPLIBSO}; \ cd ../ ; \ ${RM} tmp