Several days ago when I started my koffice nightmare, I submitted bug report 721 (http://bugs.pearsoncomputing.net/show_bug.cgi?id=721).
For the poppler warning messages I ran across a patch from Francois. I updated the bug report with a link to the patch already in GIT.
Today I ran across the likely cause to the ruby messages: the configure scripts do not support ruby 1.9.x (https://gist.github.com/1414497).
I started a patch but still receive the warning message. I'm missing something else but don't know what.
Here is the patch:
======================================= diff -urN koffice/configure.in koffice.new/configure.in --- koffice/configure.in 2011-08-21 18:30:53.000000000 -0500 +++ koffice.new/configure.in 2011-12-08 12:56:01.215427952 -0600 @@ -1539,14 +1539,20 @@ # Check for Ruby
if test "x$compile_kross" = "xyes" ; then - AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18], ruby) + AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18 ruby1.9 ruby19], ruby)
if test -n "$RUBY"; then AC_MSG_CHECKING(for Ruby dirs) RUBY_ARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'` RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'` RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'` - RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'` + if test -n "$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'"; then + # Ruby 1.9 + RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'` + else + # not Ruby 1.9 + RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'` + fi RUBY_LIBDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'` RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'` RUBY_ENABLESHARED=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"ENABLE_SHARED"@:>@)'` @@ -1602,7 +1608,7 @@ #include <version.h> ],[
-#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR == 8 && RUBY_VERSION_TEENY <= 1) +#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR >= 8 && RUBY_VERSION_TEENY <= 1) #error "need at least ruby 1.8.2\n" #endif
diff -urN koffice/lib/kross/configure.in.in koffice.new/lib/kross/configure.in.in --- koffice/lib/kross/configure.in.in 2010-08-11 22:16:27.000000000 -0500 +++ koffice.new/lib/kross/configure.in.in 2011-12-08 12:56:45.787428312 -0600 @@ -21,14 +21,20 @@ # Check for Ruby
if test "x$compile_kross" = "xyes" ; then - AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18], ruby) + AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18 ruby1.9 ruby19], ruby)
if test -n "$RUBY"; then AC_MSG_CHECKING(for Ruby dirs) RUBY_ARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'` RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'` RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'` - RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'` + if test -n "$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'"; then + # Ruby 1.9 + RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'` + else + # not Ruby 1.9 + RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'` + fi RUBY_LIBDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'` RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'` RUBY_ENABLESHARED=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"ENABLE_SHARED"@:>@)'` @@ -84,7 +90,7 @@ #include <version.h> ],[
-#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR == 8 && RUBY_VERSION_TEENY <= 1) +#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR >= 8 && RUBY_VERSION_TEENY <= 1) #error "need at least ruby 1.8.2\n" #endif =======================================
If we get this resolved the patch will be available to close the bug report. :)
Thanks for any help.
Darrell
Several days ago when I started my koffice nightmare, I submitted bug report 721 (http://bugs.pearsoncomputing.net/show_bug.cgi?id=721).
For the poppler warning messages I ran across a patch from Francois. I updated the bug report with a link to the patch already in GIT.
Today I ran across the likely cause to the ruby messages: the configure scripts do not support ruby 1.9.x (https://gist.github.com/1414497).
I started a patch but still receive the warning message. I'm missing something else but don't know what.
Here is the patch:
======================================= diff -urN koffice/configure.in koffice.new/configure.in --- koffice/configure.in 2011-08-21 18:30:53.000000000 -0500 +++ koffice.new/configure.in 2011-12-08 12:56:01.215427952 -0600 @@ -1539,14 +1539,20 @@ # Check for Ruby
if test "x$compile_kross" = "xyes" ; then
- AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18], ruby)
AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18 ruby1.9 ruby19], ruby)
if test -n "$RUBY"; then AC_MSG_CHECKING(for Ruby dirs) RUBY_ARCHDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'` RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'` RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'`
- RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'`
- if test -n "$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'"; then
# Ruby 1.9
RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'`
- else
# not Ruby 1.9
RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'`
- fi RUBY_LIBDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'` RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'` RUBY_ENABLESHARED=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"ENABLE_SHARED"@:>@)'` @@ -1602,7 +1608,7 @@ #include <version.h> ],[
-#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR == 8 && RUBY_VERSION_TEENY <= 1) +#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR >= 8 && RUBY_VERSION_TEENY <= 1) #error "need at least ruby 1.8.2\n" #endif
diff -urN koffice/lib/kross/configure.in.in koffice.new/lib/kross/configure.in.in --- koffice/lib/kross/configure.in.in 2010-08-11 22:16:27.000000000 -0500 +++ koffice.new/lib/kross/configure.in.in 2011-12-08 12:56:45.787428312 -0600 @@ -21,14 +21,20 @@ # Check for Ruby
if test "x$compile_kross" = "xyes" ; then
- AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18], ruby)
AC_CHECK_PROGS([RUBY], [ruby ruby1.8 ruby18 ruby1.9 ruby19], ruby)
if test -n "$RUBY"; then AC_MSG_CHECKING(for Ruby dirs) RUBY_ARCHDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'` RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'` RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'`
- RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'`
- if test -n "$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'"; then
# Ruby 1.9
RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyhdrdir"@:>@)'`
- else
# not Ruby 1.9
RUBY_INCLUDEDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"rubyincludedir"@:>@)'`
- fi RUBY_LIBDIR=`$RUBY -r rbconfig -e
'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'` RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'` RUBY_ENABLESHARED=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"ENABLE_SHARED"@:>@)'` @@ -84,7 +90,7 @@ #include <version.h> ],[
-#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR == 8 && RUBY_VERSION_TEENY <= 1) +#if(RUBY_VERSION_MAJOR==1 && RUBY_VERSION_MINOR >= 8 && RUBY_VERSION_TEENY <= 1) #error "need at least ruby 1.8.2\n"
#endif
If we get this resolved the patch will be available to close the bug report. :)
Thanks for any help.
Darrell
Just to make sure, are you running the autoconf regeneration tool after you change the configure.in files? Usually it is run like this: make -f admin/Makefile.common
If you are, check for any configure.in.in files. If they exist they will overwrite the configure.in file contents.
Tim
Just to make sure, are you running the autoconf regeneration tool after you change the configure.in files? Usually it is run like this: make -f admin/Makefile.common
If you are, check for any configure.in.in files. If they exist they will overwrite the configure.in file contents.
I found the problems.
One was mine. I changed the test of RUBY_VERSION_MINOR == 8 to RUBY_VERSION_MINOR >= 8. The change was unnecessary and worse, in the wrong direction. Changing to <= succeeds but >= fails everything. :)
The other is the include to version.h needs to be ruby/version.h for 1.9.1.
My new patch seems to succeed with my setup, which includes 1.9. I presume the patch will still work correctly with 1.8, but somebody should test.
Patch uploaded to bug report 721 (http://bugs.pearsoncomputing.net/show_bug.cgi?id=721).
Darrell
I found the problems.
One was mine. I changed the test of RUBY_VERSION_MINOR == 8 to RUBY_VERSION_MINOR >= 8. The change was unnecessary and worse, in the wrong direction. Changing to <= succeeds but >= fails everything. :)
The other is the include to version.h needs to be ruby/version.h for 1.9.1.
My new patch seems to succeed with my setup, which includes 1.9. I presume the patch will still work correctly with 1.8, but somebody should test.
Patch uploaded to bug report 721 (http://bugs.pearsoncomputing.net/show_bug.cgi?id=721).
Doesn't really matter. Now that the configure files can find ruby 1.9.x, the package fails to build. Bug report 735 submitted.
My partial patch fixes the configure files and a few header file location declarations, but there is serious breakage because some header files no longer exist in 1.9.x, such as env.h. Somebody with ruby expertise will have to help with finishing the patch. :(
I don't see any obvious configure option such as --without-ruby to avoid that process.
There is too much breakage with building koffice. Koffice needs serious attention before R14 is released if that package is going to be sold as a light weight office suite.
I really wanted to build the package and start testing kword in a serious manner.
Sometimes ya stick around and fight like hell. Other times ya walk away thoroughly beaten and lick your wounds. I give up trying to build koffice. :)
Darrell