From owner-svn-ports-all@freebsd.org Sat Feb 17 11:11:50 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC015F01346; Sat, 17 Feb 2018 11:11:50 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F093752E7; Sat, 17 Feb 2018 11:11:50 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8A0AA1BE94; Sat, 17 Feb 2018 11:11:50 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1HBBoXf053895; Sat, 17 Feb 2018 11:11:50 GMT (envelope-from dumbbell@FreeBSD.org) Received: (from dumbbell@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1HBBoNc053894; Sat, 17 Feb 2018 11:11:50 GMT (envelope-from dumbbell@FreeBSD.org) Message-Id: <201802171111.w1HBBoNc053894@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dumbbell set sender to dumbbell@FreeBSD.org using -f From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= Date: Sat, 17 Feb 2018 11:11:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r462096 - head/lang/rust X-SVN-Group: ports-head X-SVN-Commit-Author: dumbbell X-SVN-Commit-Paths: head/lang/rust X-SVN-Commit-Revision: 462096 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2018 11:11:51 -0000 Author: dumbbell Date: Sat Feb 17 11:11:50 2018 New Revision: 462096 URL: https://svnweb.freebsd.org/changeset/ports/462096 Log: lang/rust: Grep `std-$hash.*.o` name from `libstd-*.rlib` The suffix of that file changed in recent versions of Rust and it's changing again between Rust 1.23.0 and 1.24.0. So let's grep the filename from the list of files contained in the ar archive. Modified: head/lang/rust/Makefile Modified: head/lang/rust/Makefile ============================================================================== --- head/lang/rust/Makefile Sat Feb 17 10:34:26 2018 (r462095) +++ head/lang/rust/Makefile Sat Feb 17 11:11:50 2018 (r462096) @@ -145,7 +145,7 @@ post-extract: (set -ex; cd ${WRKSRC}; \ libstd="$$(echo "${RUST_STD_DIR}/rust-std-${RUST_TARGET}/lib/rustlib/${RUST_TARGET}/lib/"libstd-*.rlib)"; \ hash="$$(basename "$$libstd" .rlib | ${SED} 's/^libstd-//')"; \ - std_o="std-$$hash.std0.rust-cgu.o"; \ + std_o="$$(${AR} t "$$libstd" | ${GREP} -E "^std-$$hash.*\.o$$")"; \ ${AR} x "$$libstd" "$$std_o"; \ ${LD} -r -o std.xx.o "$$std_o" old_fstat.o; \ ${MV} std.xx.o "$$std_o"; \