NetBSD Problem Report #53699
From www@NetBSD.org Sun Nov 4 14:21:34 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 71CF67A154
for <gnats-bugs@gnats.NetBSD.org>; Sun, 4 Nov 2018 14:21:34 +0000 (UTC)
Message-Id: <20181104142132.E0FA87A237@mollari.NetBSD.org>
Date: Sun, 4 Nov 2018 14:21:32 +0000 (UTC)
From: oshima-ya@yagoto-urayama.jp
Reply-To: oshima-ya@yagoto-urayama.jp
To: gnats-bugs@NetBSD.org
Subject: build.sh -m evbarm64-el release fail when RELEASEMACHINEDIR was set.
X-Send-Pr-Version: www-1.0
>Number: 53699
>Category: port-arm
>Synopsis: build.sh -m evbarm64-el release fail when RELEASEMACHINEDIR was set.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-arm-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 04 14:25:00 +0000 2018
>Originator: Yasushi Oshima
>Release: netbsd-current aarch64 8.99.25
>Organization:
>Environment:
NetBSD sudachi 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #0: Sat Nov 3 21:07:55 JST 2018 oshima@sudachi:/export/netbsd-8/20181103/obj/amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
Build failed aarch64 (evbarm64-el) release with RELEASEMACHINEDIR variable.
./build.sh -m evbarm64-el -V RELEASEMACHINEDIR=evbarm64-el .... release
(snip)
/export/current/tools/evbarm64-el/bin/aarch64--netbsd-install -c -p -r -m 444 bootaa64.efi /export/current/release/evbarm/installation/misc
aarch64--netbsd-install: /export/current/release/evbarm/installation/misc.inst.lGaKpZ: mkstemp: No such file or directory
*** [release] Error code 1
nbmake[2]: stopped in /usr/src/sys/stand/efiboot/bootaa64
1 error
nbmake[2]: stopped in /usr/src/sys/stand/efiboot/bootaa64
*** [smp_efibootaa64] Error code 2
RELEASEMACHINEDIR was set but MACHINE was used in install bootaa64.efi.
>How-To-Repeat:
$ cd /usr/src
$ ./build.sh -m evbarm64-el -V RELEASEMACHINEDIR=evbarm64-el release
>Fix:
Use ${RELEASEMACHINEDIR} instead of ${MACHINE} in sys/stand/efiboot/bootaa64/Makefile.
diff --git a/sys/stand/efiboot/bootaa64/Makefile b/sys/stand/efiboot/bootaa64/Makefile
index 5e12a6b139c1..9392765f3a67 100644
--- a/sys/stand/efiboot/bootaa64/Makefile
+++ b/sys/stand/efiboot/bootaa64/Makefile
@@ -17,4 +17,4 @@ CFLAGS+= -DEFIBOOT_ACPI
release: check_RELEASEDIR
${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
- ${RELEASEDIR}/${MACHINE}/installation/misc
+ ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.