]> git.pld-linux.org Git - packages/ruby.git/commitdiff
- fix building issues with latest bison auto/th/ruby-1.9.3.194-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 6 Sep 2012 18:18:48 +0000 (20:18 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 6 Sep 2012 18:18:48 +0000 (20:18 +0200)
- don't unpack bootstrap ruby when not bootstraping
- release 2

fix-bison-invocation.patch [new file with mode: 0644]
ruby.spec

diff --git a/fix-bison-invocation.patch b/fix-bison-invocation.patch
new file mode 100644 (file)
index 0000000..5b960f3
--- /dev/null
@@ -0,0 +1,11 @@
+--- ruby-1.9.3-p194/ext/ripper/depend~ 2010-12-26 14:25:10.000000000 +0100
++++ ruby-1.9.3-p194/ext/ripper/depend  2012-09-06 19:56:49.041137189 +0200
+@@ -16,7 +16,7 @@
+ .y.c:
+       $(ECHO) compiling compiler $<
+-      $(Q) $(BISON) -t -v -oy.tab.c $<
++      $(Q) $(BISON) -d -t -v -oy.tab.c $<
+       $(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
+       @$(RM) y.tab.c
index a89cb2401c84bd6cd6a51b967ecd108507c96411..5af2bceb11222df10bfac0d0da83f32031b5e5b9 100644 (file)
--- a/ruby.spec
+++ b/ruby.spec
@@ -28,7 +28,7 @@ Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto
 Summary(zh_CN.UTF-8):  ruby - 一种快速高效的面向对象脚本编程语言
 Name:          ruby
 Version:       %{basever}.%{patchlevel}
-Release:       1
+Release:       2
 Epoch:         1
 License:       The Ruby License
 Group:         Development/Languages
@@ -47,6 +47,7 @@ Source5:      testrb.1
 Source6:       %{name}-mode-init.el
 Patch0:                %{name}-lib64.patch
 Patch1:                %{name}-ffs.patch
+Patch2:                fix-bison-invocation.patch
 URL:           http://www.ruby-lang.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -229,9 +230,17 @@ Ruby mode and debugger for Emacs.
 Tryb Ruby i debugger dla Emacsa.
 
 %prep
+%if %{with bootstrap}
 %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a100
+%else
+%setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3
+%endif
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+
+# must be regenerated with new bison
+%{__rm} parse.{c,h}
 
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
This page took 0.053227 seconds and 4 git commands to generate.