NetBSD Problem Report #45597

From diro@nixsyspaus.org  Thu Nov 10 19:58:14 2011
Return-Path: <diro@nixsyspaus.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id D555863CD6E
	for <gnats-bugs@gnats.netbsd.org>; Thu, 10 Nov 2011 19:58:13 +0000 (UTC)
Message-Id: <20111110195809.88F352041E5@asche.nixsyspaus.org>
Date: Thu, 10 Nov 2011 19:58:09 +0000 (UTC)
From: diro@nixsyspaus.org
Reply-To: diro@nixsyspaus.org
To: gnats-bugs@gnats.netbsd.org
Subject: Circular dependency detected in lang/sbcl with SBCL_BOOT_SYSTEM=sbcl
X-Send-Pr-Version: 3.95

>Number:         45597
>Category:       pkg
>Synopsis:       Circular dependency detected in lang/sbcl with SBCL_BOOT_SYSTEM=sbcl
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 10 20:00:01 +0000 2011
>Closed-Date:    Sun May 15 04:37:28 +0000 2022
>Last-Modified:  Sun May 15 04:37:28 +0000 2022
>Originator:     diro@nixsyspaus.org
>Release:        NetBSD 5.1.0_PATCH
>Organization:
>Environment:
System: NetBSD themobe.lan 5.1.0_PATCH NetBSD 5.1.0_PATCH (THEMOBE2) #1: Tue Oct
25 20:58:49 UTC 2011  root@themobe.lan:/usr/obj/sys/arch/i386/compile/THEMOBE2
i386
Architecture: i386
Machine: i386
>Description:
=> Build dependency sbcl-[0-9]*: NOT found
=> Verifying package-install for ../../lang/sbcl
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/sbcl
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/sbcl

>How-To-Repeat:
cd pkgsrc/lang/sbcl;
# Uncomment SBCL_BOOT_SYSTEM=sbcl in Makefile
bmake;
>Fix:


>Release-Note:

>Audit-Trail:
From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45597: Circular dependency detected in lang/sbcl with
 SBCL_BOOT_SYSTEM=sbcl
Date: Thu, 10 Nov 2011 15:10:08 -0500

 On Thu, 10 Nov 2011 20:00:01 +0000 (UTC)
 diro@nixsyspaus.org wrote:

 > >Synopsis:       Circular dependency detected in lang/sbcl with SBCL_BOOT_SYSTEM=sbcl

 Indeed, unless it's able to download a prebuilt SBCL it can't bootstrap
 with it (I keep some old SBCL around for this here).  But more recently
 bootstrapping with clisp worked for me; perhaps that should now be the
 default?

 Thanks,
 -- 
 Matt

From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45597: Circular dependency detected in lang/sbcl with SBCL_BOOT_SYSTEM=sbcl
Date: Thu, 10 Nov 2011 15:40:32 -0500

 On Thu, Nov 10, 2011 at 08:15:06PM +0000, Matthew Mondor wrote:
 >  
 >  Indeed, unless it's able to download a prebuilt SBCL it can't bootstrap
 >  with it (I keep some old SBCL around for this here).  But more recently
 >  bootstrapping with clisp worked for me; perhaps that should now be the
 >  default?

 It is the default. So, one would have to build clisp to bootstrap sbcl and then
 rebuild sbcl using the sbcl bootstrapped with clisp to bootstrap sbcl with sbcl?

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45597: Circular dependency detected in lang/sbcl with
 SBCL_BOOT_SYSTEM=sbcl
Date: Thu, 10 Nov 2011 15:56:18 -0500

 On Thu, 10 Nov 2011 20:45:02 +0000 (UTC)
 diro@nixsyspaus.org wrote:

 > The following reply was made to PR pkg/45597; it has been noted by GNATS.
 > 
 > From: diro@nixsyspaus.org
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/45597: Circular dependency detected in lang/sbcl with SBCL_BOOT_SYSTEM=sbcl
 > Date: Thu, 10 Nov 2011 15:40:32 -0500
 > 
 >  On Thu, Nov 10, 2011 at 08:15:06PM +0000, Matthew Mondor wrote:
 >  >  
 >  >  Indeed, unless it's able to download a prebuilt SBCL it can't bootstrap
 >  >  with it (I keep some old SBCL around for this here).  But more recently
 >  >  bootstrapping with clisp worked for me; perhaps that should now be the
 >  >  default?
 >  
 >  It is the default. So, one would have to build clisp to bootstrap sbcl and then
 >  rebuild sbcl using the sbcl bootstrapped with clisp to bootstrap sbcl with sbcl?

 Oh, I missed that it was already the default.

 Why do you want an SBCL-bootstrapped SBCL if clisp can bootstrap it?
 It only affects the bootstrap (building the initial compiler), so SBCL
 still builds its own world afterwards; then the binary package you have
 can be installed on other hosts without the clisp dependency.  It's
 been a little while I last built it, but I think this is how it works.

 Thanks,
 -- 
 Matt

From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45597: Circular dependency detected in lang/sbcl with SBCL_BOOT_SYSTEM=sbcl
Date: Thu, 10 Nov 2011 16:10:51 -0500

 On Thu, Nov 10, 2011 at 09:00:07PM +0000, Matthew Mondor wrote:
 >  
 >  Why do you want an SBCL-bootstrapped SBCL if clisp can bootstrap it?
 >  It only affects the bootstrap (building the initial compiler), so SBCL
 >  still builds its own world afterwards; then the binary package you have
 >  can be installed on other hosts without the clisp dependency.  It's
 >  been a little while I last built it, but I think this is how it works.

 Okay, thanks for clearing that up. Then, pkgsrc is handling this correctly and
 the PR can be closed?

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45597: Circular dependency detected in lang/sbcl with
 SBCL_BOOT_SYSTEM=sbcl
Date: Thu, 10 Nov 2011 16:55:00 -0500

 On Thu, 10 Nov 2011 21:15:04 +0000 (UTC)
 diro@nixsyspaus.org wrote:

 >  Okay, thanks for clearing that up. Then, pkgsrc is handling this correctly and
 >  the PR can be closed?

 If all else is fine with you, I have no objection :)

 I can't close it myself though, but a developer should pretty soon now
 that you want it closed.

 Happy Lisp hacking, BTW!
 -- 
 Matt

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 11 Nov 2011 00:29:17 +0000
State-Changed-Why:
Fine as-is, as Matthew Mondor explained.


Responsible-Changed-From-To: pkg-manager->asau
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Tue, 15 Nov 2011 21:00:11 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: closed->analyzed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Tue, 15 Nov 2011 21:00:11 +0000
State-Changed-Why:
The excuse isn't acceptable, it should be fixed instead.
The problem is that circular dependency check was made unconditional,
such dependencies should be allowed for self-hosting software like SBCL.


Responsible-Changed-From-To: asau->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 13 Jul 2020 20:07:36 +0000
Responsible-Changed-Why:
Reset to role account


State-Changed-From-To: analyzed->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 May 2022 04:37:28 +0000
State-Changed-Why:
As stated before, fine as-is.

If you want a package to be able to bootstrap with an already-installed
version of itself, you have to do it right, but there is no real point.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.