SPECS: ruby.spec - builds without installed ruby

Jakub Bogusz qboosh at pld-linux.org
Wed Dec 15 21:26:08 CET 2004


On Mon, Dec 13, 2004 at 08:08:14PM +0000, aredridel wrote:
> Author: aredridel                    Date: Mon Dec 13 20:08:14 2004 GMT
> Module: SPECS                         Tag: HEAD
> ---- Log message:
> - builds without installed ruby

> -Patch3:		%{name}-onig-types.patch
> +#Patch3:		%{name}-onig-types.patch
>  Patch4:		%{name}-mkmf-shared.patch
>  Patch5:		%{name}-cgi_dos.patch
>  URL:		http://www.ruby-lang.org/
> @@ -125,7 +125,7 @@
>  %patch0 -p1
>  %patch1 -p1
>  %patch2 -p1
> -%patch3 -p1
> +#%patch3 -p1

What about this patch? Obsolete?

> -./ruby bin/rdoc -o rdoc/core array.c bignum.c class.c compar.c dir.c dln.c dmyext.c enum.c \
> +RUBYLIB=lib:`ls ext/*/ | xargs | sed -e 's! !:!g'`
> +export RUBYLIB
> +
> +LD_LIBRARY_PATH=. ./ruby bin/rdoc -o rdoc/core array.c bignum.c class.c compar.c dir.c dln.c dmyext.c enum.c \
>  	error.c eval.c file.c gc.c hash.c inits.c io.c lex.c main.c marshal.c \

>  	math.c numeric.c object.c pack.c parse.c prec.c process.c random.c range.c \
>  	re.c regex.c ruby.c signal.c sprintf.c st.c string.c struct.c time.c util.c \

Having older version of ruby (1.8.1 final), now I'm getting:

+ export RUBYLIB
+ ./ruby bin/rdoc -o rdoc/core array.c bignum.c class.c compar.c dir.c dln.c dmyext.c enum.c error.c eval.c file.c gc.c hash.c inits.c io.c lex.c main.c marshal.c math.c numeric.c object.c pack.c parse.c prec.c process.c random.c range.c re.c regex.c ruby.c signal.c sprintf.c st.c string.c struct.c
time.c util.c variable.c version.c lib/English.rb lib/abbrev.rb lib/base64.rb lib/benchmark.rb lib/cgi.rb lib/cgi/session.rb lib/complex.rb lib/date.rb lib/fileutils.rb lib/find.rb lib/generator.rb lib/logger.rb lib/matrix.rb lib/observer.rb lib/pathname.rb lib/set.rb lib/shellwords.rb lib/singleton.rb lib/tempfile.rb lib/test/unit.rb lib/thread.rb lib/thwait.rb lib/time.rb lib/yaml.rb
+ LD_LIBRARY_PATH=.
/usr/lib/ruby/1.8/i686-linux/rbconfig.rb:7: ruby lib version (1.8.1) doesn't match executable version (1.8.2) (RuntimeError)
        from ./lib/rdoc/ri/ri_paths.rb:25:in `require'
        from ./lib/rdoc/ri/ri_paths.rb:25
        from ./lib/rdoc/options.rb:4:in `require'
        from ./lib/rdoc/options.rb:4
        from ./lib/rdoc/rdoc.rb:13:in `require'
        from ./lib/rdoc/rdoc.rb:13
        from bin/rdoc:59:in `require'
        from bin/rdoc:59
error: Bad exit status from /var/tmp/rpm-tmp.62887 (%build)


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




More information about the pld-devel-en mailing list