NetBSD Problem Report #46420

From mlr@cterm.rse.com  Mon May  7 02:50:38 2012
Return-Path: <mlr@cterm.rse.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 7954A63B86B
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  7 May 2012 02:50:38 +0000 (UTC)
Message-Id: <20120507024805.A8198216B03@cterm.rse.com>
Date: Sun,  6 May 2012 22:48:05 -0400 (EDT)
From: mlr@cterm.rse.com (Michael L. Riechers)
To: gnats-bugs@gnats.NetBSD.org
Subject: Building for ruby19 ends with "can't find ruby19-gdbm>=1.9.2pl320"

>Number:         46420
>Category:       pkg
>Synopsis:       Building for ruby19 ends with "can't find ruby19-gdbm>=1.9.2pl320"
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    taca
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 07 02:55:00 +0000 2012
>Closed-Date:    Mon Sep 03 00:03:14 +0000 2012
>Last-Modified:  Mon Sep 03 00:05:02 +0000 2012
>Originator:     Michael L. Riechers
>Release:        NetBSD 6.0_BETA
>Organization:
M L Riechers Systems Engineering

>Environment:


System: NetBSD cterm.rse.com 6.0_BETA NetBSD 6.0_BETA (GENERIC) #1: Mon Apr 30 17:12:11 EDT 2012 root@cterm.rse.com:/usr/local/src/usr/usr.201204292125Z/src/sys/arch/amd64/compile/obj/GENERIC amd64
Packages from pkgsrc-2012Q1 up to date as of 20120428: ftp.netbsd.org/pub/pkgsrc/pkgsrc-2012Q1/pkgsrc.tar.xz
Architecture: x86_64
Machine: amd64
>Description:
Package becomes confused about whether it's building ruby 1.9.2 or 1.9.3.
It builds and installs ruby-base 1.9.2, compiling with "RUBY_VERSION_DEFAULT=193",
then builds ruby-base 1.9.3 (after building libyaml), then "ruby193-gdbm-1.9.3p194nb2"

The last few lines run thusly:

===> Building binary package for ruby193-gdbm-1.9.3p194nb2                    | 
=> Creating binary package /usr/local/src/pkgsrcstuff/pkgsrc-2012Q1-20120428/ | 
===> Install binary package of ruby193-gdbm-1.9.3p194nb2                      | 
===========================================================================   | 
$NetBSD: MESSAGE,v 1.2 2001/11/11 06:17:27 hubertf Exp $                      | 
                                                                              | 
This package doesn't contain any manuals nor examples, but                    | 
it wouldn't be a problem, as the interface of this module                     | 
is exactly the same as DBM and SDBM, except GDBM has a                        | 
"reorganize" method.  See the DBM module's document included                  | 
in the ruby-man package, and gdbm(3) manpage included in the                  | 
gdbm package.                                                                 | 
                                                                              | 
===========================================================================   | 
ERROR: [depends.mk] A package matching ``ruby19-gdbm>=1.9.2pl320'' should     <
ERROR:     be installed, but one cannot be found.  Perhaps there is a         <
ERROR:     stale work directory for ../../databases/ruby-gdbm?                <
*** Error code 1                                                              <
                                                                              <
Stop.                                                                         <
make: stopped in /usr/pkgsrc/lang/ruby19                                      <


>How-To-Repeat:
        download ftp.netbsd.org/pub/pkgsrc/pkgsrc-2012Q1/pkgsrc.tar.xz and
        /usr/pkgsrc/lang/ruby19; make

>Fix:

Nasty, nasty work-around:
--- rubyversion.mk.orig 2012-04-22 21:08:19.000000000 -0400
+++ rubyversion.mk      2012-05-06 21:54:05.000000000 -0400
@@ -213,7 +213,7 @@
 RUBY193_API_VERSION=   1.9.1

 #
-RUBY_VERSION_DEFAULT?= 193
+RUBY_VERSION_DEFAULT?= 19

 RUBY_VERSION_SUPPORTED?= 18 192 193
 RUBY_VER?=             ${RUBY_VERSION_DEFAULT}

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: taca@NetBSD.org
Responsible-Changed-When: Mon, 07 May 2012 07:50:32 +0000
Responsible-Changed-Why:
I'll take it.


From: "Takahiro Kambe" <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46420 CVS commit: pkgsrc/lang/ruby
Date: Mon, 7 May 2012 07:53:28 +0000

 Module Name:	pkgsrc
 Committed By:	taca
 Date:		Mon May  7 07:53:28 UTC 2012

 Modified Files:
 	pkgsrc/lang/ruby: rubyversion.mk

 Log Message:
 Strict RUBY_VERSION_DEFAULT when RUBY_VERSION_SUPPORTED has one word.

 Should be fix PR pkg/46420.


 To generate a diff of this commit:
 cvs rdiff -u -r1.79 -r1.80 pkgsrc/lang/ruby/rubyversion.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: taca@NetBSD.org
State-Changed-When: Mon, 07 May 2012 07:55:57 +0000
State-Changed-Why:
Commited fix, please try again.


From: M L Riechers <mlr@rse.com>
To: "Takahiro Kambe" <taca@netbsd.org>, gnats-bugs@gnats.NetBSD.org
Cc: mlr@rse.com
Subject: PR/46420 CVS commit: pkgsrc/lang/ruby
Date: Mon, 23 Jul 2012 14:09:05 -0400 (EDT)

 Hi, all,

 Please keep this PR open.  I've not had a chance to try your
 patch, but I intend to in the next couple of weeks, when I
 compile BETA-2.

 Yours,

 -Mike

 Date: Mon, 7 May 2012 07:53:28 +0000:

 > State-Changed-From-To: open->feedback
 > State-Changed-By: taca@NetBSD.org
 > State-Changed-When: Mon, 07 May 2012 07:55:57 +0000
 > State-Changed-Why:
 > Commited fix, please try again.

From: M L Riechers <mlr@rse.com>
To: "Takahiro Kambe" <taca@netbsd.org>, gnats-bugs@gnats.NetBSD.org
Cc: mlr@rse.com
Subject: re: PR/46420 CVS commit: pkgsrc/lang/ruby: Close the PR
Date: Sun, 2 Sep 2012 18:48:31 -0400 (EDT)

 Somehow, it seems that the email I sent on 22 August 2012 didn't take.
 This is it again:


 Thank you for your prompt and timely fixes.  This PR should be closed.

 I've compiled ruby193 under NetBSD Beta6-2 OK, I also attempted to
 compile ruby19, and satisfied myself that your fixes work, but got a
 rather strange ending:

 => Creating binary package /usr/local/src/pkgsrcstuff/pkgsrc/packages/All/ruby19-base-1.9.2pl320nb1.tgz
 ===> Install binary package of ruby19-base-1.9.2pl320nb1
 ===========================================================================
 $NetBSD: MESSAGE,v 1.3 2011/11/08 15:22:45 taca Exp $

 Note that this is a minimal package.

 The original ruby-1.9.2-p320 distribution includes more extension
 libraries, some of which are provided as separate packages:

         databases/ruby-gdbm:            GDBM module
         devel/ruby-curses:              Curses module
         devel/ruby-fiddle:              Fiddle module
         devel/ruby-readline:            readline module
         textproc/ruby-psych:            Psych module
         x11/ruby-tk:                    Tk modules

 ===========================================================================
 => Returning to build of ruby19-1.9.2pl320
 => Full dependency ruby19-gdbm>=1.9.2pl320: NOT found
 => Verifying package-install for ../../databases/ruby-gdbm
 => Bootstrap dependency digest>=20010302: found digest-20111104
 ===> Checking for vulnerabilities in ruby19-gdbm-1.9.2pl320nb2
 ===> Install binary package of ruby19-gdbm-1.9.2pl320nb2
 pkg_add: no pkg found for '/usr/local/src/pkgsrcstuff/pkgsrc/packages/All/ruby19-gdbm-1.9.2pl320nb2.tgz', sorry.
 pkg_add: 1 package addition failed
 *** Error code 1

 Apparently, the build saw that there existed a 
 /usr/pkgsrc/databases/ruby-gdbm/work/,
 saw that there was no ruby19-gdbm-1.9.2pl320nb2 installed, and assumed
 that ruby19-gdbm-1.9.2pl320nb2 could be installed from packages/All.
 ruby193-gdbm-1.9.3p194nb2.tgz existed, but ruby19-gdbm-1.9.2pl320nb2.tgz
 did not.  Likewise, /usr/pkgsrc/databases/ruby-gdbm/work/ruby-1.9.3-p194/
 existed, but /usr/pkgsrc/databases/ruby-gdbm/work/ruby-1.9.2pl320nb2/
 did not.

 Anyway, I believe I actually did compile both earlier, and the
 compiles work as far as they go, so your fixes work, and this PR, I
 believe, should be closed.

 Again, thanks.

 Yours,

 -Mike



State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 03 Sep 2012 00:03:14 +0000
State-Changed-Why:
Confirmed fixed, thanks.


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/46420 CVS commit: pkgsrc/lang/ruby: Close the PR
Date: Mon, 3 Sep 2012 00:03:48 +0000

 On Sun, Sep 02, 2012 at 10:55:01PM +0000, M L Riechers wrote:
  >  Apparently, the build saw that there existed a 
  >  /usr/pkgsrc/databases/ruby-gdbm/work/,
  >  saw that there was no ruby19-gdbm-1.9.2pl320nb2 installed, and assumed
  >  that ruby19-gdbm-1.9.2pl320nb2 could be installed from packages/All.
  >  ruby193-gdbm-1.9.3p194nb2.tgz existed, but ruby19-gdbm-1.9.2pl320nb2.tgz
  >  did not.  Likewise, /usr/pkgsrc/databases/ruby-gdbm/work/ruby-1.9.3-p194/
  >  existed, but /usr/pkgsrc/databases/ruby-gdbm/work/ruby-1.9.2pl320nb2/
  >  did not.

 Right, this sort of thing happens if you don't clean old workdirs.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:
 capc-calc-2.12.4.1 ends with 'FPOS_POS_LEN' undeclared
 From: mlr
 Reply-To: mlr@rse.com
 X-send-pr-version: 3.95

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.