pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47831: lang/ruby193-base typo in patch-configure(.in) for DragonFly and FreeBSD

>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:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 18 02:05:00 +0000 2013
>Originator:     David Shao
>Release:        DragonFly 3.5-DEVELOPMENT x86_64
DragonFly 3.5-DEVELOPMENT x86_64
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
generating encdb.h
encdb.h unchanged
making enc
compiling ./enc/encdb.c
linking encoding
/usr/libexec/binutils222/elf/ld.bfd: cannot find -lruby193
*** Error code 1

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


The typo in patch-configure and (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*) :

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

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

In any case it should not be the observed

Home | Main Index | Thread Index | Old Index