Received: by mail.netbsd.org (Postfix, from userid 605) id 8D6D984D93; Fri, 3 Sep 2021 09:28:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CA4A684D69 for ; Fri, 3 Sep 2021 09:28:04 +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 zYXSdYehrJQ2 for ; Fri, 3 Sep 2021 09:28:04 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 397EA84CE2 for ; Fri, 3 Sep 2021 09:28:04 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 33250FA97; Fri, 3 Sep 2021 09:28:04 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1630661284217290" MIME-Version: 1.0 Date: Fri, 3 Sep 2021 09:28:04 +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: <20210903092804.33250FA97@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1630661284217290 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Fri Sep 3 09:28:04 UTC 2021 Modified Files: pkgsrc/lang/rust: Makefile Log Message: rust: Fix and improve SunOS stage0-bootstrap. Catch up with newer library versions from pkgsrc and the additional rust bin directory, and ensure everything is running under set -e to catch failures. To generate a diff of this commit: cvs rdiff -u -r1.243 -r1.244 pkgsrc/lang/rust/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1630661284217290 Content-Disposition: inline Content-Length: 2779 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.243 pkgsrc/lang/rust/Makefile:1.244 --- pkgsrc/lang/rust/Makefile:1.243 Wed Aug 11 12:28:53 2021 +++ pkgsrc/lang/rust/Makefile Fri Sep 3 09:28:04 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.243 2021/08/11 12:28:53 ryoon Exp $ +# $NetBSD: Makefile,v 1.244 2021/09/03 09:28:04 jperkin Exp $ DISTNAME= rustc-1.52.1-src PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} @@ -536,36 +536,45 @@ stage0-bootstrap: install ${CP} -R ${DESTDIR}/${PREFIX}/bin ${BOOTSTRAP_TMPDIR}/ ${CP} -R ${DESTDIR}/${PREFIX}/lib ${BOOTSTRAP_TMPDIR}/ ${MKDIR} ${BOOTSTRAP_TMPDIR}/lib/pkgsrc + set -e; \ for lib in libgcc_s.so.1 libssp.so.0 libstdc++.so.6; do \ ${CP} `${PKG_CC} -print-file-name=$${lib}` \ ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/; \ - done - # direct dependencies - for lib in libLLVM-10.so libcrypto.so.1.1 libcurl.so.4 \ + done; \ + for lib in libLLVM-12.so libcrypto.so.1.1 libcurl.so.4 \ libssl.so.1.1 libz.so.1; do \ ${CP} ${PREFIX}/lib/$${lib} ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/; \ - done - # 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 \ + done; \ + for lib in libiconv.so.2 libidn2.so.0 libintl.so.8 liblber-2.5.so.0 \ + libldap-2.5.so.0 libnghttp2.so.14 libsasl2.so.3 \ libssh2.so.1 libunistring.so.2; do \ ${CP} ${PREFIX}/lib/$${lib} ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/; \ - done + done; \ for f in ${BOOTSTRAP_TMPDIR}/bin/*; do \ /bin/file -b "$$f" | grep ^ELF >/dev/null || continue; \ ${ELFEDIT} -e 'dyn:runpath $$ORIGIN/../lib:$$ORIGIN/../lib/pkgsrc' $$f; \ - done + done; \ for f in ${BOOTSTRAP_TMPDIR}/lib/pkgsrc/*.so*; do \ ${ELFEDIT} -e 'dyn:runpath $$ORIGIN' $$f; \ - done + done; \ for f in ${BOOTSTRAP_TMPDIR}/lib/*.so*; do \ ${ELFEDIT} -e 'dyn:runpath $$ORIGIN:$$ORIGIN/pkgsrc' $$f; \ - done - for f in ${BOOTSTRAP_TMPDIR}/lib/rustlib/*/*/*.so*; do \ + done; \ + for f in ${BOOTSTRAP_TMPDIR}/lib/rustlib/*/*/*.so* \ + ${BOOTSTRAP_TMPDIR}/lib/rustlib/*/bin/*; do \ ${ELFEDIT} -e 'dyn:runpath $$ORIGIN:$$ORIGIN/../../..:$$ORIGIN/../../../pkgsrc' $$f; \ - done - (cd ${WRKDIR}; \ - ${GTAR} -zcf ${BOOTSTRAP_NAME}.tar.gz ${BOOTSTRAP_NAME}) + done; \ + cd ${WRKDIR}; ${GTAR} -zcf ${BOOTSTRAP_NAME}.tar.gz ${BOOTSTRAP_NAME} + @${ECHO} "" + @${ECHO} "Verify correct library paths using the following:" + @${ECHO} "" + @${ECHO} " cd ${BOOTSTRAP_TMPDIR}" + @${ECHO} " find . -type f | xargs ldd 2>/dev/null | egrep 'not.found|${PREFIX}'" + @${ECHO} "" + @${ECHO} "If there is no output then this bootstrap kit is ready to go:" + @${ECHO} "" + @${ECHO} " ${WRKDIR}/${BOOTSTRAP_NAME}.tar.gz" + @${ECHO} "" .endif .include "options.mk" --_----------=_1630661284217290--