From owner-svn-ports-head@freebsd.org Tue Mar 23 06:42:44 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7E21B57BBB4; Tue, 23 Mar 2021 06:42:44 +0000 (UTC) (envelope-from tobik@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 4F4MHm39Gwz3vN0; Tue, 23 Mar 2021 06:42:44 +0000 (UTC) (envelope-from tobik@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 5FACC1C70E; Tue, 23 Mar 2021 06:42:44 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 12N6ginw079270; Tue, 23 Mar 2021 06:42:44 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 12N6gi5w079268; Tue, 23 Mar 2021 06:42:44 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <202103230642.12N6gi5w079268@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 23 Mar 2021 06:42:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r569008 - head/lang/rust-bootstrap X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/lang/rust-bootstrap X-SVN-Commit-Revision: 569008 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2021 06:42:44 -0000 Author: tobik Date: Tue Mar 23 06:42:43 2021 New Revision: 569008 URL: https://svnweb.freebsd.org/changeset/ports/569008 Log: lang/rust-bootstrap: Add the bootstrap freefall sync script Added: head/lang/rust-bootstrap/sync.sh (contents, props changed) Modified: head/lang/rust-bootstrap/Makefile Modified: head/lang/rust-bootstrap/Makefile ============================================================================== --- head/lang/rust-bootstrap/Makefile Tue Mar 23 06:39:47 2021 (r569007) +++ head/lang/rust-bootstrap/Makefile Tue Mar 23 06:42:43 2021 (r569008) @@ -1,5 +1,8 @@ # $FreeBSD$ +# Once the bootstraps are available on pkg.FreeBSD.org run sync.sh +# to upload them to ~/public_distfiles on freefall in preparation +# for the next lang/rust update. PORTNAME= rust PORTVERSION= 1.50.0 PORTREVISION= 1 Added: head/lang/rust-bootstrap/sync.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/rust-bootstrap/sync.sh Tue Mar 23 06:42:43 2021 (r569008) @@ -0,0 +1,35 @@ +#!/bin/sh +# Upload Rust bootstraps available on pkg.FreeBSD.org to your +# ~/public_distfiles on freefall for the next lang/rust update. +# Change ABI below to select from which build to fetch the packages +# from. +set -xeu +: "${PORTSDIR=/usr/ports}" +: "${DATADIR=/tmp/rust-bootstrap}" + +version=$(make -C "${PORTSDIR}/lang/rust" PORTVERSION) +date=$(fetch -qo- https://static.rust-lang.org/dist/channel-rust-stable-date.txt) + +export ABI=FreeBSD:13:amd64 +export INSTALL_AS_USER=1 +export PKG_DBDIR="${DATADIR}/pkgdb" +pkg update -f -r FreeBSD +pkg fetch -r FreeBSD -o "${DATADIR}" -yg "*-rust-bootstrap-${version}*" + +find "${DATADIR}/All" -name "*rust-bootstrap-${version}*.txz" \ + -execdir tar -xvf {} \; + +dir="public_distfiles/rust/${date}" +cd "${DATADIR}/All/usr/local/rust-bootstrap" +mkdir -p tmp +for arch in $(ls); do + if [ "$arch" == "amd64" ]; then + find $arch -name '*.tar.xz' -exec mv {} tmp \; + else + find $arch -name '*.tar.xz' -and -not -name '*x86_64*' -exec mv {} tmp \; + fi +done +cd tmp +tar -cf- . | ssh freefall.freebsd.org "mkdir -p \"${dir}\" && tar -C \"${dir}\" -xvf-" +cd / +rm -r "${DATADIR}"