NetBSD Problem Report #49511

From www@NetBSD.org  Sun Dec 28 19:26:16 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B73B1A65C0
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 Dec 2014 19:26:16 +0000 (UTC)
Message-Id: <20141228192615.680A5A65C1@mollari.NetBSD.org>
Date: Sun, 28 Dec 2014 19:26:15 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Unbreak lang/ruby200-base on Mac OS X Tiger
X-Send-Pr-Version: www-1.0

>Number:         49511
>Category:       pkg
>Synopsis:       Unbreak lang/ruby200-base on Mac OS X Tiger
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    taca
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 28 19:30:00 +0000 2014
>Closed-Date:    Wed Jan 07 11:01:31 +0000 2015
>Last-Modified:  Wed Jan 07 11:01:31 +0000 2015
>Originator:     Sevan Janiyan
>Release:        pkgsrc-current
>Organization:
>Environment:
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
>Description:
as per pkg/49508, include db.h.

>How-To-Repeat:

>Fix:
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/ruby200-base/distinfo,v
retrieving revision 1.18
diff -u -r1.18 distinfo
--- distinfo    15 Nov 2014 14:33:45 -0000      1.18
+++ distinfo    28 Dec 2014 19:22:38 -0000
@@ -5,6 +5,7 @@
 Size (ruby-2.0.0-p598.tar.bz2) = 10758882 bytes
 SHA1 (patch-configure) = ed31eee4192457aeba3ded9d42b1ed755a6d0acf
 SHA1 (patch-defs_default__gems) = 28a47952e27c22055bac6ad151d092572b96b1ec
+SHA1 (patch-ext_dbm_extconf.rb) = dfc5c1b7be11e7d8f2ab705976f706a28baa49c8
 SHA1 (patch-lib_rdoc_ri_driver.rb) = 53ce4055b4c008c8ee13d38a81334d4846debdbc
 SHA1 (patch-lib_rubygems.rb) = 0f0b8f14745998f5ed0ade9b0b5cdefc8f30d988
 SHA1 (patch-lib_rubygems_commands_setup__command.rb) = 46991d63256d0d3cc2f707fb286d1691331ad40e
cvs diff: Diffing patches
Index: patches/patch-ext_dbm_extconf.rb
===================================================================
RCS file: patches/patch-ext_dbm_extconf.rb
diff -N patches/patch-ext_dbm_extconf.rb
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ext_dbm_extconf.rb    28 Dec 2014 19:22:38 -0000
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- ext/dbm/extconf.rb.orig    2014-12-28 17:33:20.000000000 +0000
++++ ext/dbm/extconf.rb
+@@ -119,7 +119,7 @@ def headers.db_check2(db, hdr)
+     have_library("gdbm") or return false
+   end
+ 
+-  if !have_type("DBM", hdr, hsearch)
++  if !have_type("DBM", ["db.h", hdr], hsearch)
+     return false
+   end
+ 

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49511: Unbreak lang/ruby200-base on Mac OS X Tiger
Date: Sun, 28 Dec 2014 20:59:31 +0000

 On Sun, Dec 28, 2014 at 07:30:00PM +0000, venture37@geeklan.co.uk wrote:
  > +--- ext/dbm/extconf.rb.orig    2014-12-28 17:33:20.000000000 +0000
  > ++++ ext/dbm/extconf.rb
  > +@@ -119,7 +119,7 @@ def headers.db_check2(db, hdr)
  > +     have_library("gdbm") or return false
  > +   end
  > + 
  > +-  if !have_type("DBM", hdr, hsearch)
  > ++  if !have_type("DBM", ["db.h", hdr], hsearch)
  > +     return false
  > +   end
  > + 

 If that's a db-1.85 db.h, which I'm guessing it is, are you sure it
 really ought to be matched?

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Mon, 29 Dec 2014 21:16:35 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Takahiro Kambe <taca@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49511 (Unbreak lang/ruby200-base on Mac OS X Tiger)
Date: Wed, 31 Dec 2014 10:32:25 +0900 (JST)

 I don't disagree this change to be commited since similar patch was
 added to lang/ruby193-base.  But, I would not do by myself.

 * I don't have testing environment such old release of Mac OS X.
 * According to pkgsrc/bootstrap/README.MacOSX, Mac OS X 10.4 Tiger is
   not a supporting version of pkgsrc.

 It is the same about PR pkg/49512.

 Best regards.

 -- 
 Takahiro Kambe <taca@NetBSD.org>/<taca@back-street.net>

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49511 (Unbreak lang/ruby200-base on Mac OS X Tiger)
Date: Thu, 1 Jan 2015 20:16:27 +0000

 On Wed, Dec 31, 2014 at 01:35:01AM +0000, Takahiro Kambe wrote:
  >  I don't disagree this change to be commited since similar patch was
  >  added to lang/ruby193-base.  But, I would not do by myself.
  >  
  >  * I don't have testing environment such old release of Mac OS X.
  >  * According to pkgsrc/bootstrap/README.MacOSX, Mac OS X 10.4 Tiger is
  >    not a supporting version of pkgsrc.
  >  
  >  It is the same about PR pkg/49512.

 The last I remember this actually being discussed (some time back)
 we'd agreed to keep supporting 10.4 (or 10.5? the last powerpc
 version, anyway), at least if people send in patches, because it has
 no upgrade path.

 I would like to be able to tell people with macppc hardware to install
 NetBSD instead of OS X, but until we make some progress on the desktop
 front I can't do that with a straight face.

 Anyhow, the submitter has this MacOS version, and I think we can
 believe that the change fixes things for him; my chief concern is that
 this change might break other platforms.

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Takahiro Kambe" <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49511 CVS commit: pkgsrc/lang/ruby200-base
Date: Wed, 7 Jan 2015 10:37:11 +0000

 Module Name:	pkgsrc
 Committed By:	taca
 Date:		Wed Jan  7 10:37:11 UTC 2015

 Modified Files:
 	pkgsrc/lang/ruby200-base: distinfo
 Added Files:
 	pkgsrc/lang/ruby200-base/patches: patch-ext_dbm_extconf.rb

 Log Message:
 Add patch from PR pkg/49511.


 To generate a diff of this commit:
 cvs rdiff -u -r1.19 -r1.20 pkgsrc/lang/ruby200-base/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/lang/ruby200-base/patches/patch-ext_dbm_extconf.rb

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

State-Changed-From-To: open->closed
State-Changed-By: taca@NetBSD.org
State-Changed-When: Wed, 07 Jan 2015 11:01:31 +0000
State-Changed-Why:
Patch was applied.  Thank you for your problem report.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.