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:    pgoyette
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 14 21:05:00 +0000 2021
>Closed-Date:    Mon Apr 21 13:53:47 +0000 2025
>Last-Modified:  Mon Apr 21 13:53:47 +0000 2025
>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.

>Release-Note:

>Audit-Trail:
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55928: KERNEL_DIR build option tries to install multiple
 kernels
Date: Mon, 21 Apr 2025 06:48:35 -0700 (PDT)

 This seems to have been fixed.  It does not occur with yesterday's
 build.

 I will close this PR.

 +---------------------+--------------------------+----------------------+
 | Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
 | (Retired)           | 1B11 1849 721C 56C8 F63A | paul@whooppee.com    |
 | Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette@netbsd.org  |
 | & Network Engineer  |                          | pgoyette99@gmail.com |
 +---------------------+--------------------------+----------------------+

Responsible-Changed-From-To: kern-bug-people->pgoyette
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Mon, 21 Apr 2025 13:53:47 +0000
Responsible-Changed-Why:
it's mine


State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Mon, 21 Apr 2025 13:53:47 +0000
State-Changed-Why:
problem has apparently been resolved


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.