NetBSD Problem Report #59016
From www@netbsd.org Tue Jan 21 10:01:22 2025
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 4C85A1A923A
for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Jan 2025 10:01:22 +0000 (UTC)
Message-Id: <20250121100121.65E841A923B@mollari.NetBSD.org>
Date: Tue, 21 Jan 2025 10:01:21 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: lang/ruby32-base builds everything four times
X-Send-Pr-Version: www-1.0
>Number: 59016
>Category: pkg
>Synopsis: lang/ruby32-base builds everything four times
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: taca
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 21 10:05:00 +0000 2025
>Last-Modified: Tue Feb 11 06:20:01 +0000 2025
>Originator: Taylor R Campbell
>Release: netbsd-9, pkgsrc-current
>Organization:
The GemRebuilt Foundation
>Environment:
>Description:
lang/ruby32-base seems to rebuild Ruby four times, twice during build and twice during install.
It looks like it is doing it twice in each stage because it is building miniruby first, which is then used to bootstrap ruby proper -- that's fine.
But why is it building everything during build _and_ during install?
Does some change to the make environment trigger rebuilding everything?
>How-To-Repeat:
build lang/ruby32-base
>Fix:
Yes, please! With MAKE_JOBS_SAFE=no this build takes a while even on a highly parallel system, so it'd be nice not to unnecessarily double the build times.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Tue, 21 Jan 2025 11:51:51 +0000
Responsible-Changed-Why:
Could I trouble you to take a look?
From: Takahiro Kambe <taca@NetBSD.org>
To: gnats-bugs@netbsd.org, campbell+netbsd@mumble.net
Cc:
Subject: Re: pkg/59016: lang/ruby32-base builds everything four times
Date: Tue, 11 Feb 2025 15:17:26 +0900 (JST)
In message <20250121100500.753181A923C@mollari.NetBSD.org>
on Tue, 21 Jan 2025 10:05:00 +0000 (UTC),
campbell+netbsd@mumble.net wrote:
>>Fix:
> Yes, please! With MAKE_JOBS_SAFE=no this build takes a while even on a highly parallel system, so it'd be nice not to unnecessarily double the build times.
>
I've add a patch to stop building YJIT_LIBS each time. Is it improve
the situation?
Message-Id: <20250208050551.9A2D9FBE0@cvs.NetBSD.org>
Subject: CVS commit: pkgsrc/lang/ruby32-base
Date: Sat, 8 Feb 2025 05:05:51 +0000
From: "Takahiro Kambe" <taca@netbsd.org>
To: pkgsrc-changes@NetBSD.org
Module Name: pkgsrc
Committed By: taca
Date: Sat Feb 8 05:05:51 UTC 2025
Modified Files:
pkgsrc/lang/ruby32-base: distinfo
Added Files:
pkgsrc/lang/ruby32-base/patches: patch-yjit_not__gmake.mk
Log Message:
lang/ruby32-base: stop building YJIT_LIBS each time
Building static YJIT_LIBS ignore dependency intentionally. It might be
reasonable for Ruby development but it looks like no need to build each time
when build Ruby language. So try to stop it now.
>Unformatted:
(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.