pkgsrc-Bugs archive

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

pkg/44174: PLIST issue in lang/ruby1[89]-base on Linux [patch]



>Number:         44174
>Category:       pkg
>Synopsis:       PLIST issue in lang/ruby1[89]-base on Linux [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 30 14:00:01 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        Linux 2.6.18-194.26.1.el5xen
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: Linux centos.imb.invention.com 2.6.18-194.26.1.el5xen #1 SMP Tue Nov 9 
14:13:46 EST 2010 i686 i686 i386 GNU/Linux
Architecture: i686

>Description:
Both ruby-1.8 and 1.9 fail to build on my Linux systems with the
following error message causing hundreds of failures.

   => Checking file-check results for ruby18-base-1.8.7.302
   ERROR: ************************************************************
   ERROR: The following files are in the PLIST but not in /usr/pkg:
   ERROR:         
/tmp/obj_pkgsrc/lang/ruby18-base/work/.destdir/usr/pkg/lib/libruby1.8
   ERROR: ************************************************************
   ERROR: The following files are in /usr/pkg but not in the PLIST:
   ERROR:         
/tmp/obj_pkgsrc/lang/ruby18-base/work/.destdir/usr/pkg/lib/libruby18.so.1.8
   *** Error code 1

lib/libruby1.8 comes from the line

   ${RUBY_SHLIBALIAS}

of package's PLIST. On my Linux system it is equal to lib/libruby1.8,
on NetBSD/x86_64 it is set to lib/libruby18.so.18.

Fix tested on Debian-5.0 and CentOS-5.5 is below.  ruby-1.9 still
fails but now for a completely different reason.

   => Automatic manual page handling
   => Generating post-install file lists
   => Checking file-check results for ruby19-base-1.9.2pl0nb1
   => Checking for non-existent script interpreters in ruby19-base-1.9.2pl0nb1
   => Checking file permissions in ruby19-base-1.9.2pl0nb1
   => Checking for missing run-time search paths in ruby19-base-1.9.2pl0nb1
   => Checking for work-directory references in ruby19-base-1.9.2pl0nb1
   ERROR: /usr/pkg/lib/ruby/1.9/i386-linux/rbconfig.rb:<-->  CONFIG["MAKEDIRS"] 
= "/tmp/obj-pkgsrc/lang/ruby19-base/work/.tools/bin/mkdir -p"
   ERROR: /usr/pkg/lib/ruby/1.9/i386-linux/rbconfig.rb:<-->  CONFIG["MKDIR_P"] 
= "/tmp/obj-pkgsrc/lang/ruby19-base/work/.tools/bin/mkdir -p"
   ERROR: *** The above files still have references to the build directory.
   ERROR:     This is possibly an error that should be fixed by unwrapping
   ERROR:     the files or adding missing tools to the package makefile!
   *** Error code 1

>Fix:

Index: rubyversion.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/ruby/rubyversion.mk,v
retrieving revision 1.53
diff -u -r1.53 rubyversion.mk
--- rubyversion.mk      17 Nov 2010 14:27:09 -0000      1.53
+++ rubyversion.mk      30 Nov 2010 13:46:50 -0000
@@ -192,7 +192,7 @@
 RUBY_STATICLIB=                ${RUBY_VER}.${RUBY_API_VERSION}-static.a
 .endif
 .elif ${OPSYS} == "Linux"
-_RUBY_SHLIBALIAS=      ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
+_RUBY_SHLIBALIAS=      
${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
 .endif
 
 .if !empty(_RUBY_SHLIBALIAS)



Home | Main Index | Thread Index | Old Index