NetBSD Problem Report #37771
From martin@duskware.de Wed Jan 16 17:11:41 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 0BB1D63BE3D
for <gnats-bugs@gnats.netbsd.org>; Wed, 16 Jan 2008 17:11:41 +0000 (UTC)
Message-Id: <20080116171113.6054263BE3D@narn.NetBSD.org>
Date: Wed, 16 Jan 2008 17:11:13 +0000 (UTC)
From: naoto@morishima.net
Reply-To: naoto@morishima.net
To: netbsd-bugs-owner@NetBSD.org
Subject: Ruby modules cannot be compiled on Solaris w/ PKGSRC_COMPILER=sunpro
X-Send-Pr-Version: www-1.0
>Number: 37771
>Category: pkg
>Synopsis: Ruby modules cannot be compiled on Solaris w/ PKGSRC_COMPILER=sunpro
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: taca
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 16 17:15:00 +0000 2008
>Closed-Date: Sat Nov 14 23:47:35 +0000 2009
>Last-Modified: Sat Nov 14 23:47:35 +0000 2009
>Originator: Naoto Morishima
>Release:
>Organization:
>Environment:
>Description:
Ruby modules cannot be compiled on Solaris w/ sunprocc.
>How-To-Repeat:
Compile lang/ruby18-base and devel/ruby-readline on Solaris w/ sunprocc, and
you will see errors like following:
ld: fatal: library -lsunmath: not found
ld: fatal: File processing errors. No output written to readline.so
*** Error code 1
>Fix:
The change at 2007/11/05 by grant made lang/ruby18-baseruby compiled with
libsunmath linked statically. This requires LDSHRED="gcc -G" to avoid calling
liker directly, but rbconfig.rb still has CONFIG["LDSHARED"]="ld -G" line.
The following patch will fix this problem.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/ruby18-base/Makefile,v
retrieving revision 1.40
diff -u -r1.40 Makefile
--- Makefile 4 Jan 2008 15:42:34 -0000 1.40
+++ Makefile 16 Jan 2008 17:09:03 -0000
@@ -35,7 +35,7 @@
.if !empty(PKGSRC_COMPILER:Msunpro)
LIBS.SunOS+= -B static -lsunmath -B dynamic -lm
LDFLAGS.SunOS+= -L${SUNWSPROBASE}/lib -Wl,-R${SUNWSPROBASE}/lib
-MAKE_FLAGS+= LDSHARED="${CC} -G"
+CONFIGURE_ENV+= LDSHARED="${CC} -G"
.else
LIBS.SunOS+= -lm
.endif
cvs diff: Diffing files
cvs diff: Diffing patches
>Release-Note:
>Audit-Trail:
From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@NetBSD.org, naoto@morishima.net
Cc:
Subject: Re: pkg/37771: Ruby modules cannot be compiled on Solaris w/
PKGSRC_COMPILER=sunpro
Date: Thu, 17 Jan 2008 07:32:10 +0900 (JST)
In message <20080116171500.BFA0163BE3F@narn.NetBSD.org>
on Wed, 16 Jan 2008 17:15:00 +0000 (UTC),
naoto@morishima.net wrote:
> The following patch will fix this problem.
>
> Index: Makefile
> ===================================================================
> RCS file: /cvsroot/pkgsrc/lang/ruby18-base/Makefile,v
> retrieving revision 1.40
> diff -u -r1.40 Makefile
> --- Makefile 4 Jan 2008 15:42:34 -0000 1.40
> +++ Makefile 16 Jan 2008 17:09:03 -0000
> @@ -35,7 +35,7 @@
> .if !empty(PKGSRC_COMPILER:Msunpro)
> LIBS.SunOS+= -B static -lsunmath -B dynamic -lm
> LDFLAGS.SunOS+= -L${SUNWSPROBASE}/lib -Wl,-R${SUNWSPROBASE}/lib
> -MAKE_FLAGS+= LDSHARED="${CC} -G"
> +CONFIGURE_ENV+= LDSHARED="${CC} -G"
> .else
> LIBS.SunOS+= -lm
> .endif
Thanks for your patch. Would you please these setting in Makefile
into Ruby's configure script? Then it could be feed back easier.
Best regards.
--
Takahiro Kambe <taca@back-street.net>
From: Naoto Morishima <naoto@morishima.net>
To: Takahiro Kambe <taca@back-street.net>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/37771: Ruby modules cannot be compiled on Solaris w/ PKGSRC_COMPILER=sunpro
Date: Thu, 17 Jan 2008 10:45:24 +0900
>>>>> On Thu, 17 Jan 2008 07:32:10 +0900 (JST), Takahiro Kambe <taca@back-street.net> said:
taca> Thanks for your patch. Would you please these setting in Makefile
taca> into Ruby's configure script? Then it could be feed back easier.
Would you please give me more detail about what should I do?
If you mean I should create a patch to the configure script of ruby
itself, I guess it's wrong way. This problem is endemic in the
pkgsrc.
Regards,
Naoto Morishima
Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 24 Jun 2008 10:06:47 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Takahiro Kambe <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/37771 CVS commit: pkgsrc/lang/ruby18-base
Date: Fri, 8 Aug 2008 12:42:44 +0000 (UTC)
Module Name: pkgsrc
Committed By: taca
Date: Fri Aug 8 12:42:44 UTC 2008
Modified Files:
pkgsrc/lang/ruby18-base: Makefile distinfo
Removed Files:
pkgsrc/lang/ruby18-base/patches: patch-ad
Log Message:
Update ruby18-base to 1.8.7.71.
pkgsrc change:
Apply fix for sunpro compilre, provided by PR pkg/37771 from
Naoto Morishima.
This release includes fix for multiple vulnerabilities.
http://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/
* Several vulnerabilities in safe level
* DoS vulnerability in WEBrick
* Lack of taintness check in dl
* DNS spoofing vulnerability in resolv.rb
Full changes are too many, please refer ChangeLog file.
To generate a diff of this commit:
cvs rdiff -r1.45 -r1.46 pkgsrc/lang/ruby18-base/Makefile
cvs rdiff -r1.31 -r1.32 pkgsrc/lang/ruby18-base/distinfo
cvs rdiff -r1.9 -r0 pkgsrc/lang/ruby18-base/patches/patch-ad
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Geert Hendrickx <ghen@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/37771 CVS commit: [pkgsrc-2008Q2] pkgsrc
Date: Fri, 8 Aug 2008 14:37:50 +0000 (UTC)
Module Name: pkgsrc
Committed By: ghen
Date: Fri Aug 8 14:37:50 UTC 2008
Modified Files:
pkgsrc/devel/ruby-curses [pkgsrc-2008Q2]: distinfo
pkgsrc/lang/ruby [pkgsrc-2008Q2]: rubyversion.mk
pkgsrc/lang/ruby18-base [pkgsrc-2008Q2]: Makefile distinfo
pkgsrc/x11/ruby-tk [pkgsrc-2008Q2]: distinfo
Removed Files:
pkgsrc/lang/ruby18-base/patches [pkgsrc-2008Q2]: patch-ad
Log Message:
Pullup ticket 2473 - requested by taca
security update for ruby
- pkgsrc/devel/ruby-curses/distinfo 1.16
- pkgsrc/lang/ruby/rubyversion.mk 1.43
- pkgsrc/lang/ruby18-base/Makefile 1.46
- pkgsrc/lang/ruby18-base/distinfo 1.32
- pkgsrc/lang/ruby18-base/patches/patch-ad removed
- pkgsrc/x11/ruby-tk/distinfo 1.19
Module Name: pkgsrc
Committed By: taca
Date: Fri Aug 8 12:38:59 UTC 2008
Modified Files:
pkgsrc/lang/ruby: rubyversion.mk
Log Message:
Start update of Ruby 1.8.7 patchlevel 71.
---
Module Name: pkgsrc
Committed By: taca
Date: Fri Aug 8 12:42:44 UTC 2008
Modified Files:
pkgsrc/lang/ruby18-base: Makefile distinfo
Removed Files:
pkgsrc/lang/ruby18-base/patches: patch-ad
Log Message:
Update ruby18-base to 1.8.7.71.
pkgsrc change:
Apply fix for sunpro compilre, provided by PR pkg/37771 from
Naoto Morishima.
This release includes fix for multiple vulnerabilities.
http://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/
* Several vulnerabilities in safe level
* DoS vulnerability in WEBrick
* Lack of taintness check in dl
* DNS spoofing vulnerability in resolv.rb
Full changes are too many, please refer ChangeLog file.
---
Module Name: pkgsrc
Committed By: taca
Date: Fri Aug 8 12:43:51 UTC 2008
Modified Files:
pkgsrc/devel/ruby-curses: distinfo
Log Message:
Update ruby-curses package to 1.8.7.71.
This is version update only, no functional change in this ruby extention.
---
Module Name: pkgsrc
Committed By: taca
Date: Fri Aug 8 12:44:51 UTC 2008
Modified Files:
pkgsrc/x11/ruby-tk: distinfo
Log Message:
Update ruby-tk package to 1.8.7.71.
This is version update only, no functional change in this ruby extention.
To generate a diff of this commit:
cvs rdiff -r1.15 -r1.15.4.1 pkgsrc/devel/ruby-curses/distinfo
cvs rdiff -r1.42 -r1.42.4.1 pkgsrc/lang/ruby/rubyversion.mk
cvs rdiff -r1.45 -r1.45.4.1 pkgsrc/lang/ruby18-base/Makefile
cvs rdiff -r1.31 -r1.31.4.1 pkgsrc/lang/ruby18-base/distinfo
cvs rdiff -r1.9 -r0 pkgsrc/lang/ruby18-base/patches/patch-ad
cvs rdiff -r1.18 -r1.18.4.1 pkgsrc/x11/ruby-tk/distinfo
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, 10 Aug 2008 02:49:36 +0000
State-Changed-Why:
I'm sorry for my late action. Now patch was applied, please check again.
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 14 Nov 2009 23:47:35 +0000
State-Changed-Why:
Fix committed more than a year ago.
>Unformatted:
(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.