NetBSD Problem Report #47831

From www@NetBSD.org  Sat May 18 02:01:51 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 794E063F541
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 May 2013 02:01:51 +0000 (UTC)
Message-Id: <20130518020150.78F3363F541@www.NetBSD.org>
Date: Sat, 18 May 2013 02:01:50 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: lang/ruby193-base typo in patch-configure(.in) for DragonFly and FreeBSD
X-Send-Pr-Version: www-1.0

>Number:         47831
>Category:       pkg
>Synopsis:       lang/ruby193-base typo in patch-configure(.in) for DragonFly and FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    taca
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 18 02:05:00 +0000 2013
>Closed-Date:    Sun May 19 06:49:32 +0000 2013
>Last-Modified:  Sun May 19 06:49:32 +0000 2013
>Originator:     David Shao
>Release:        DragonFly 3.5-DEVELOPMENT x86_64
>Organization:
>Environment:
DragonFly 3.5-DEVELOPMENT x86_64
>Description:
There is a typo in patch-configure(.in) in current pkgsrc lang/ruby193-base 1.9.3-p429 that causes the build on DragonFly and presumably FreeBSD to fail with a linking error:

linking static-library libruby193-static.a
linking shared-library libruby193.so.191
generating encdb.h
encdb.h unchanged
making enc
compiling ./enc/encdb.c
linking encoding encdb.so
/usr/libexec/binutils222/elf/ld.bfd: cannot find -lruby193
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/ruby193-base/work/ruby-1.9.3-p429
*** Error code 1


>How-To-Repeat:

>Fix:
The typo in patch-configure and patch-configure.in (should both patches be fixed?) can be fixed with the following patch fragment:

-@@ -16796,7 +16812,7 @@ _ACEOF
+@@ -16810,7 +16826,7 @@ _ACEOF
    freebsd*|dragonfly*) :

        SOLIBS='$(LIBS)'
 -      LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
-+      LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)\$(TEENY)'
++      LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)$(TEENY)'
        if test "$rb_cv_binary_elf" != "yes" ; then
            LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
            LIBRUBY_ALIASES=''

An extra backslash was added before $(TEENY) resulting in a wrongly named link to a lib.

Actually looking at the NetBSD configuration code, I am not sure if the goal is to name the library

libruby193.so.191
or
libruby193.so.19.1

In any case it should not be the observed
libruby193.so.19?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: taca@NetBSD.org
Responsible-Changed-When: Sat, 18 May 2013 02:14:40 +0000
Responsible-Changed-Why:
I'll take it.


State-Changed-From-To: open->feedback
State-Changed-By: taca@NetBSD.org
State-Changed-When: Sat, 18 May 2013 08:35:33 +0000
State-Changed-Why:
Patch files are updated as your supplied information.
Please check.


From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47831: lang/ruby193-base typo in patch-configure(.in) for
 DragonFly and FreeBSD
Date: Sat, 18 May 2013 13:47:18 -0700

 The applied patch successfully builds lang/ruby193-base on both
 DragonFly 3.5-DEVELOPMENT i386 and x86_64 for current pkgsrc master as
 of

 commit 76656ae55d0d886814e1230e022aa549bfd1087a
 Date:   Sat May 18 09:48:38 2013 -0700

 Thanks!

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 19 May 2013 06:49:32 +0000
State-Changed-Why:
Confirmed fixed, thanks.


>Unformatted:

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.