NetBSD Problem Report #48509
From root@cterm.rse.com Fri Jan 10 05:34:49 2014
Return-Path: <root@cterm.rse.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id E9798A6475
for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Jan 2014 05:34:48 +0000 (UTC)
Message-Id: <20140110041741.3B25E11B3E3@cterm.rse.com>
Date: Thu, 9 Jan 2014 23:17:41 -0500 (EST)
From: mlr@rse.com
Reply-To: mlr@rse.com
To: gnats-bugs@gnats.NetBSD.org
Subject: Building for ruby200 ends with "can't find ruby200-gdbm>=2.0.0p353"
X-Send-Pr-Version: 3.95
>Number: 48509
>Category: pkg
>Synopsis: Building for ruby200 ends with "can't find ruby200-gdbm>=2.0.0p353"
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: taca
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 10 05:35:00 +0000 2014
>Closed-Date: Fri May 23 00:37:25 +0000 2014
>Last-Modified: Fri May 23 00:37:25 +0000 2014
>Originator: Michael L. Riechers
>Release: NetBSD 6.1.2
>Organization:
M L Riechers Systems Engineering
>Environment:
System: NetBSD cterm.rse.com 6.1.2 NetBSD 6.1.2 (HOUSE-6.1.2) #0: Fri Oct 11 12:13:25 EDT 2013 root@cterm.rse.com:/usr/local/src/usr/usr.201310051330Z/src/sys/arch/amd64/compile/obj/HOUSE-6.1.2 amd64
Architecture: x86_64
Machine: amd64
>Description:
I'm attempting to build ruby200.
Package becomes confused about whether it's building ruby 1.9.3 or 2.0.0
It builds and installs ruby-base 2.0.0, compiling with "RUBY_VERSION_DEFAULT=200",
then builds ruby-base 2.0.0 (after building libyaml), then "ruby193-gdbm-1.9.3p484"
The last few lines run thusly:
===> Building binary package for ruby193-gdbm-1.9.3p484
=> Creating binary package /usr/local/src/pkgsrcstuff/pkgsrc/packages/All/ruby193-gdbm-1.9.3p484.tgz
/bin/ln -f /usr/local/src/pkgsrcstuff/pkgsrc/databases/ruby-gdbm/work/.packages/ruby193-gdbm-1.9.3p484.tgz /usr/local/src/pkgsrcstuff/pkgsrc/packages/All/ruby193-gdbm-1.9.3p484.tgz 2>/dev/null || /bin/cp -pf /usr/local/src/pkgsrcstuff/pkgsrc/databases/ruby-gdbm/work/.packages/ruby193-gdbm-1.9.3p484.tgz /usr/local/src/pkgsrcstuff/pkgsrc/packages/All/ruby193-gdbm-1.9.3p484.tgz
===> Install binary package of ruby193-gdbm-1.9.3p484
===========================================================================
$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 ``ruby200-gdbm>=2.0.0p353'' 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/ruby200
>How-To-Repeat:
download ftp.netbsd.org/pub/pkgsrc/pkgsrc-2013Q4/pkgsrc.tar.xz and
cd /usr/pkgsrc/lang/ruby200; make
>Fix:
Nasty, nasty work-around:
--- pkgsrc/lang/ruby/rubyversion.mk~ 2013-11-24 09:22:03.000000000 -0500
+++ pkgsrc/lang/ruby/rubyversion.mk 2014-01-09 20:55:38.000000000 -0500
@@ -216,7 +216,7 @@
RUBY200_API_VERSION= 2.0.0
#
-RUBY_VERSION_DEFAULT?= 193
+RUBY_VERSION_DEFAULT?= 200
RUBY_VERSION_SUPPORTED?= 200 193 18
this work-around is almost identical to that that I submitted for PR/46420.
Perhaps the fix is similar?
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 pkgsrc/lang/ruby/rubyversion.mk
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Fri, 10 Jan 2014 11:47:00 +0000
Responsible-Changed-Why:
Over to maintainer.
From: "Takahiro Kambe" <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48509 CVS commit: pkgsrc/lang/ruby
Date: Sun, 2 Feb 2014 07:46:16 +0000
Module Name: pkgsrc
Committed By: taca
Date: Sun Feb 2 07:46:16 UTC 2014
Modified Files:
pkgsrc/lang/ruby: gem.mk json.mk rdoc.mk rubyversion.mk
Log Message:
Utilize PKGNAME_REQD to determine required Ruby version.
Address to PR pkg/48509.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/lang/ruby/gem.mk
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/ruby/json.mk
cvs rdiff -u -r1.16 -r1.17 pkgsrc/lang/ruby/rdoc.mk
cvs rdiff -u -r1.107 -r1.108 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: Sun, 02 Feb 2014 08:00:46 +0000
State-Changed-Why:
Now I add utlizing PKGNAME_REQD support and the problem should be gone.
From: M L Riechers <mlr@rse.com>
To: gnats-bugs@gnats.netbsd.org
Cc: mlr@rse.com
Subject: Re: pkg/48509 - non-critical medium priority sw-bug
Date: Thu, 22 May 2014 13:39:48 -0400 (EDT)
I've just compiled ruby21. That being the case, I assume that the
fix works, and that ruby200 should compile as well.
Recommend closing this PR. However, you might look at a related PR.
It has the internal identification `pkg/48830'.
Yours,
-Mike
--
Kind Regards, I am
/s/ Michael L. Riechers
Michael L. Riechers,
Owner, M L Riechers Systems Engineering
513/844-2220 (voice) 530 Main Street
513/205-5589 (cell) Hamilton, Ohio 45013
513/844-2279 (fax)
mlr@rse.com (internet)
www.rse.com (WEB)
Systems Programming: The three most adverse malignancies in life are:
1)signed numbers, 2)floating point numbers, and 3)little endians.
State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Fri, 23 May 2014 00:37:25 +0000
State-Changed-Why:
Confirmed fixed. Thanks!
>Unformatted:
Building for ruby200 ends with "can't find ruby200-gdbm>=2.0.0p353"
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.