NetBSD Problem Report #55937

From bernd@niob.bersie.loc  Tue Jan 19 19:30:11 2021
Return-Path: <bernd@niob.bersie.loc>
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 D01F81A9217
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 19 Jan 2021 19:30:10 +0000 (UTC)
Message-Id: <20210119181500.420D5236904@niob.bersie.loc>
Date: Tue, 19 Jan 2021 19:15:00 +0100 (CET)
From: bernd@niob.bersie.loc
Reply-To: bernd@niob.bersie.loc
To: gnats-bugs@NetBSD.org
Subject: Build zfs by default on sparc64.
X-Send-Pr-Version: 3.95

>Number:         55937
>Category:       toolchain
>Synopsis:       zfs should be built by default on sparc64 as well.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 19 19:35:00 +0000 2021
>Closed-Date:    Fri Apr 19 02:37:41 +0000 2024
>Last-Modified:  Fri Apr 19 02:37:41 +0000 2024
>Originator:     bernd.sieker@posteo.net
>Release:        NetBSD 9.1_STABLE
>Organization:
>Environment:
System: NetBSD niob.bersie.loc 9.1_STABLE NetBSD 9.1_STABLE (NIOB) #39: Wed Dec 9 16:42:36 CET 2020 bernd@niob.bersie.loc:/usr/src/sys/arch/amd64/compile/NIOB amd64
Architecture: x86_64
Machine: amd64
>Description:
I suggest to enable building zfs by default for sparc64, too. Some
sparc64 systems are quite capable of handling the system requirements
of zfs, and it would be an unnecessary hassle to compile it oneself.

Those that can't handle it won't really suffer, since zfs is just
a module (two actually, since you also need the "solaris" module).
The only downside would be a few MB additional disk space used.

>How-To-Repeat:
Try to use zfs on a stock NetBSD-9 sparc64 build: modules, tools
and libraries are not installed.

>Fix:
The following patch should enable building zfs on sparc64 by default:

--- share/mk/bsd.own.mk.orig    2021-01-19 17:59:31.628114323 +0100
+++ share/mk/bsd.own.mk 2021-01-19 18:07:44.707667499 +0100
@@ -998,9 +998,9 @@
 .endif

 #
-# We want to build zfs only for amd64 and aarch64 by default for now.
+# Build zfs only for amd64, aarch64 and sparc64 by default for now.
 #
-.if ${MACHINE} == "amd64" || ${MACHINE_ARCH} == "aarch64"
+.if ${MACHINE} == "amd64" || ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "sparc64"
 MKZFS?=                yes
 .endif

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->needs-pullups
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 19 Jan 2021 19:50:47 +0000
State-Changed-Why:
Already done in current. Not in -9.


State-Changed-From-To: needs-pullups->pending-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 05 Apr 2024 02:58:48 +0000
State-Changed-Why:
pullup-9 #1834
not worth it in 8, already done in 10 and current


State-Changed-From-To: pending-pullups->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 19 Apr 2024 02:37:41 +0000
State-Changed-Why:
fixed and pulled up


>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-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.