NetBSD Problem Report #58536
From www@netbsd.org Fri Aug 2 01:40:28 2024
Return-Path: <www@netbsd.org>
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)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2C7E61A923C
for <gnats-bugs@gnats.NetBSD.org>; Fri, 2 Aug 2024 01:40:28 +0000 (UTC)
Message-Id: <20240802014026.88E3E1A923E@mollari.NetBSD.org>
Date: Fri, 2 Aug 2024 01:40:26 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: build.sh should support cross-building packages into images
X-Send-Pr-Version: www-1.0
>Number: 58536
>Category: toolchain
>Synopsis: build.sh should support cross-building packages into images
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 02 01:45:00 +0000 2024
>Last-Modified: Fri Nov 29 17:00:03 +0000 2024
>Originator: Taylor R Campbell
>Release: current, 10, 9, ...
>Organization:
The NetBSD Foundation.tgz
>Environment:
>Description:
It should be possible to do something like
./build.sh ... distribution package=net/socat release
and get socat binary package and/or release images that have it preinstalled.
Command-line argument might be better for saying `please build this package' than for saying `please include this package in the image' but it should be possible to say both of these things. Maybe an mk.conf variable for the list of packages that should be included or something like that.
>How-To-Repeat:
seek to build cloud images or small appliance images that don't rely on the sordid state of TNF binary packages
>Fix:
Yes, please!
This will also require resolving an issue similar to https://gnats.netbsd.org/57639 which is that populating $DESTDIR/usr/pkg will make checkflist fail. We'll need to find some way to resolve that.
>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58536 CVS commit: src
Date: Fri, 29 Nov 2024 16:55:24 +0000
Module Name: src
Committed By: riastradh
Date: Fri Nov 29 16:55:24 UTC 2024
Modified Files:
src: build.sh
Log Message:
build.sh: Experimental new target pkg=CATEGORY/PACKAGE.
Cross-builds a binary package of CATEGORY/PACKAGE from pkgsrc,
bootstrapping pkgsrc as necessary for the cross-build.
Requires pkgsrc, which can be specified by either:
- setting PKGSRCDIR with -V or in the environment
- having it at ./pkgsrc
- having it at ../pkgsrc
- having it at /usr/pkgsrc
This isn't perfect -- it'd be better if we had some kind of manifest
for the packages you want built and/or included in install images --
but I've been sitting on this for months; let's just give it a try
and see where this goes. We can take it out again if the experiment
turns out not to be fruitful.
PR toolchain/58536: build.sh should support cross-building packages
into images
To generate a diff of this commit:
cvs rdiff -u -r1.379 -r1.380 src/build.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58536 CVS commit: src
Date: Fri, 29 Nov 2024 16:56:40 +0000
Module Name: src
Committed By: riastradh
Date: Fri Nov 29 16:56:40 UTC 2024
Modified Files:
src: build.sh
Log Message:
build.sh: Fix whitespace error introduced in previous commit.
PR toolchain/58536: build.sh should support cross-building packages
into images
To generate a diff of this commit:
cvs rdiff -u -r1.380 -r1.381 src/build.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(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.