NetBSD Problem Report #55928

From paul@whooppee.com  Thu Jan 14 21:01:08 2021
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 423831A9217
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Jan 2021 21:01:08 +0000 (UTC)
Message-Id: <20210114210034.C06AB30F2C4@speedy.whooppee.com>
Date: Thu, 14 Jan 2021 13:00:34 -0800 (PST)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: KERNEL_DIR build option tries to install multiple kernels
X-Send-Pr-Version: 3.95

>Number:         55928
>Category:       kern
>Synopsis:       KERNEL_DIR option tries to put multiple kernels in $DESTDIR/netbsd/kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 14 21:05:00 +0000 2021
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.77
>Organization:
+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org   |
+--------------------+--------------------------+-----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 9.99.77 NetBSD 9.99.77 (SPEEDY 2020-12-09 16:52:22 UTC) #0: Thu Dec 10 00:56:59 UTC 2020 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
	When running ``build.sh release'' with KERNEL_DIR set to "yes", the
	kernel build tries to put _all_ non-INSTALL kernels into a single
	file $DESTDIR/netbsd/kernel and you get an error.  For amd64, there
	are 4 such kernels, and here are the errors:

...
echo  netbsd | GZIP=-9\ -n XZ_OPT=-9 /build/netbsd-local/tools/x86_64/amd64/bin/nbpax  --use-compress-program /build/netbsd-local/tools/x86_64/amd64/bin/nbxz -O -w -M -N /build/netbsd-local/src_ro/etc -f /build/netbsd-local/release/amd64/binary/sets/kern-GENERIC.tar.xz
ln: ./netbsd/kernel: File exists
...
echo  netbsd | GZIP=-9\ -n XZ_OPT=-9 /build/netbsd-local/tools/x86_64/amd64/bin/nbpax  --use-compress-program /build/netbsd-local/tools/x86_64/amd64/bin/nbxz -O -w -M -N /build/netbsd-local/src_ro/etc -f /build/netbsd-local/release/amd64/binary/sets/kern-GENERIC_KASLR.tar.xz
ln: ./netbsd/kernel: File exists
...
echo  netbsd | GZIP=-9\ -n XZ_OPT=-9 /build/netbsd-local/tools/x86_64/amd64/bin/nbpax  --use-compress-program /build/netbsd-local/tools/x86_64/amd64/bin/nbxz -O -w -M -N /build/netbsd-local/src_ro/etc -f /build/netbsd-local/release/amd64/binary/sets/kern-XEN3_DOM0.tar.xz
ln: ./netbsd/kernel: File exists
...
echo  netbsd | GZIP=-9\ -n XZ_OPT=-9 /build/netbsd-local/tools/x86_64/amd64/bin/nbpax  --use-compress-program /build/netbsd-local/tools/x86_64/amd64/bin/nbxz -O -w -M -N /build/netbsd-local/src_ro/etc -f /build/netbsd-local/release/amd64/binary/sets/kern-XEN3_DOMU.tar.xz
ln: ./netbsd/kernel: File exists
...


>How-To-Repeat:
	See above
>Fix:
	Fix unknown, however a mechanism needs to be defined to specify
	which kernel should be installed, and decide what to do with (or
	where to put) any other non-installed kernels.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.