From owner-svn-ports-head@freebsd.org Wed Feb 15 16:43:28 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C9B5CE0B98; Wed, 15 Feb 2017 16:43:28 +0000 (UTC) (envelope-from bdrewery@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 mx1.freebsd.org (Postfix) with ESMTPS id C37191378; Wed, 15 Feb 2017 16:43:27 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1FGhQ3T030107; Wed, 15 Feb 2017 16:43:26 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1FGhQx2030105; Wed, 15 Feb 2017 16:43:26 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201702151643.v1FGhQx2030105@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Wed, 15 Feb 2017 16:43:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434184 - in head/ports-mgmt/poudriere-devel: . files X-SVN-Group: ports-head 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.23 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: Wed, 15 Feb 2017 16:43:28 -0000 Author: bdrewery Date: Wed Feb 15 16:43:26 2017 New Revision: 434184 URL: https://svnweb.freebsd.org/changeset/ports/434184 Log: Fix building arm64 jails by copying in the needed binutils. Added: head/ports-mgmt/poudriere-devel/files/patch-arm64-binutils (contents, props changed) Modified: head/ports-mgmt/poudriere-devel/Makefile Modified: head/ports-mgmt/poudriere-devel/Makefile ============================================================================== --- head/ports-mgmt/poudriere-devel/Makefile Wed Feb 15 16:42:49 2017 (r434183) +++ head/ports-mgmt/poudriere-devel/Makefile Wed Feb 15 16:43:26 2017 (r434184) @@ -2,7 +2,7 @@ PORTNAME= poudriere DISTVERSION= 3.1.99.20160624 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ports-mgmt MASTER_SITES= LOCAL/bdrewery/${PORTNAME}/ \ http://mirror.shatow.net/freebsd/${PORTNAME}/ \ Added: head/ports-mgmt/poudriere-devel/files/patch-arm64-binutils ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/ports-mgmt/poudriere-devel/files/patch-arm64-binutils Wed Feb 15 16:43:26 2017 (r434184) @@ -0,0 +1,29 @@ +commit 58b0c214d76525e53745133cd3de56eda5379934 +Author: Bryan Drewery +Date: Fri Aug 26 14:23:39 2016 -0700 + + For arm64 copy the latest aarch64-binutils ld into the jail at startup. + + This will work like the qemu installation done at startup, and not require + messing with the jail creation/update or snapshots. + +diff --git src/share/poudriere/common.sh src/share/poudriere/common.sh +index 4261243..8e0c8cf 100755 +--- src/share/poudriere/common.sh ++++ src/share/poudriere/common.sh +@@ -1795,6 +1795,15 @@ jail_start() { + mkdir -p "${tomnt}${EMULATOR%/*}" + cp -f "${EMULATOR}" "${tomnt}${EMULATOR}" + fi ++ # Handle special ARM64 needs ++ if [ "${arch#*.}" = "aarch64" ] && ! [ -f "${tomnt}/usr/bin/ld" ]; then ++ if [ -f /usr/local/aarch64-freebsd/bin/ld ]; then ++ cp -f /usr/local/aarch64-freebsd/bin/ld \ ++ "${tomnt}/usr/bin/ld" ++ else ++ err 1 "Arm64 requires aarch64-binutils to be installed." ++ fi ++ fi + + if [ -d "${CCACHE_DIR:-/nonexistent}" ]; then + cat >> "${tomnt}/etc/make.conf" <<-EOF