Received: by mail.netbsd.org (Postfix, from userid 605) id 6629A84E24; Mon, 28 Oct 2019 08:56:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E113B84E09 for ; Mon, 28 Oct 2019 08:56:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id cnmRYn-q1IV1 for ; Mon, 28 Oct 2019 08:56:14 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 554DF84C2B for ; Mon, 28 Oct 2019 08:56:14 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 4309DFA8D; Mon, 28 Oct 2019 08:56:14 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1572252974153370" MIME-Version: 1.0 Date: Mon, 28 Oct 2019 08:56:14 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/lang/rust To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20191028085614.4309DFA8D@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1572252974153370 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Mon Oct 28 08:56:14 UTC 2019 Modified Files: pkgsrc/lang/rust: Makefile Log Message: rust: Update SmartOS dependencies and tidy. To generate a diff of this commit: cvs rdiff -u -r1.120 -r1.121 pkgsrc/lang/rust/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1572252974153370 Content-Disposition: inline Content-Length: 2674 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/rust/Makefile diff -u pkgsrc/lang/rust/Makefile:1.120 pkgsrc/lang/rust/Makefile:1.121 --- pkgsrc/lang/rust/Makefile:1.120 Mon Oct 28 00:42:21 2019 +++ pkgsrc/lang/rust/Makefile Mon Oct 28 08:56:14 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.120 2019/10/28 00:42:21 jperkin Exp $ +# $NetBSD: Makefile,v 1.121 2019/10/28 08:56:14 jperkin Exp $ DISTNAME= rustc-1.38.0-src PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} @@ -370,6 +370,7 @@ USE_TOOLS+= gtar # the rust build to use the gcc wrapper when building natively, # so that I could get a placeholder in the RPATH, because chrpath # cannot extend the length of the RPATH... +ELFEDIT?= /usr/bin/elfedit stage0-bootstrap: install ${RM} -rf ${BOOTSTRAP_TMPDIR} @@ -411,23 +412,28 @@ stage0-bootstrap: install ${CP} `${PKG_CC} -print-file-name=$${lib}` \ ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/; \ done - for lib in libcrypto.so.1.0.0 libcurl.so.4 libhttp_parser.so.2 \ - libiconv.so.2 libidn2.so.0 libintl.so.8 liblber-2.4.so.2 \ - libldap-2.4.so.2 libnghttp2.so.14 libsasl2.so.3 libLLVM-8.so \ - libssh2.so.1 libssl.so.1.0.0 libunistring.so.2 libz.so.1; do \ + # direct dependencies + for lib in libLLVM-9.so libcrypto.so.1.0.0 libcurl.so.4 \ + libssl.so.1.0.0 libz.so.1; do \ ${CP} ${PREFIX}/lib/$${lib} ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/; \ done - for f in ${BOOTSTRAP_TMPDIR}/bin/{cargo,rls,rustc,rustdoc}; do \ - /usr/bin/elfedit -e 'dyn:runpath $$ORIGIN/../lib:$$ORIGIN/../lib/pkgsrc' $$f; \ + # libcurl dependencies + for lib in libiconv.so.2 libidn2.so.0 libintl.so.8 liblber-2.4.so.2 \ + libldap-2.4.so.2 libnghttp2.so.14 libsasl2.so.3 \ + libssh2.so.1 libunistring.so.2; do \ + ${CP} ${PREFIX}/lib/$${lib} ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/; \ + done + for f in ${BOOTSTRAP_TMPDIR}/bin/{cargo*,clippy*,miri,rls,rustc,rustdoc,rustfmt}; do \ + ${ELFEDIT} -e 'dyn:runpath $$ORIGIN/../lib:$$ORIGIN/../lib/pkgsrc' $$f; \ done for f in ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/*.so*; do \ - /usr/bin/elfedit -e 'dyn:runpath $$ORIGIN' $$f; \ + ${ELFEDIT} -e 'dyn:runpath $$ORIGIN' $$f; \ done for f in ${BOOTSTRAP_TMPDIR}/lib/*.so*; do \ - /usr/bin/elfedit -e 'dyn:runpath $$ORIGIN:$$ORIGIN/pkgsrc' $$f; \ + ${ELFEDIT} -e 'dyn:runpath $$ORIGIN:$$ORIGIN/pkgsrc' $$f; \ done for f in ${BOOTSTRAP_TMPDIR}/lib/rustlib/${RUST_ARCH}/*/*.so*; do \ - /usr/bin/elfedit -e 'dyn:runpath $$ORIGIN:$$ORIGIN/../../..:$$ORIGIN/../../../pkgsrc' $$f; \ + ${ELFEDIT} -e 'dyn:runpath $$ORIGIN:$$ORIGIN/../../..:$$ORIGIN/../../../pkgsrc' $$f; \ done (cd ${WRKDIR}; \ ${GTAR} -zcf ${PKGNAME_NOREV}-${RUST_ARCH}.tar.gz ${PKGNAME_NOREV}-${RUST_ARCH}) --_----------=_1572252974153370--