Bug#684433: gdal-bin: FTBFS when ruby1.9.1 installed

gregor herrmann gregoa at debian.org
Mon Aug 27 16:53:03 UTC 2012


On Fri, 10 Aug 2012 00:29:57 +0200, Pierre-Louis Bonicoli wrote:

> gdal-bin fails to build if ruby1.9.1 is installed and /usr/bin/ruby
> refers to /usr/bin/ruby1.9.1 (via alternatives).
> 
> Error is:
> /usr/bin/make -f RubyMakefile.mk build
> -e:1: Use RbConfig instead of obsolete and deprecated Config.
> -e:1: Use RbConfig instead of obsolete and deprecated Config.
> -e:1: Use RbConfig instead of obsolete and deprecated Config.
> -e:1: Use RbConfig instead of obsolete and deprecated Config.
> -e:1: Use RbConfig instead of obsolete and deprecated Config.
> make[2]: entrant dans le répertoire « /tmp/gdal-1.9.0/swig/ruby »
> /bin/bash /tmp/gdal-1.9.0/libtool --mode=compile --tag=CXX g++ -g -O2
> -Wall  -fPIC -DPIC -I/tmp/gdal-1.9.0/port -I/tmp/gdal-1.9.0/gcore
> -I/tmp/gdal-1.9.0/alg -I/tmp/gdal-1.9.0/ogr
> -I/tmp/gdal-1.9.0/ogr/ogrsf_frmts -I/usr/include/ruby-1.9.1
> -I/usr/include/ruby-1.9.1/x86_64-linux  -c gdal_wrap.cpp
> libtool: compile:  g++ -g -O2 -Wall -fPIC -DPIC -I/tmp/gdal-1.9.0/port
> -I/tmp/gdal-1.9.0/gcore -I/tmp/gdal-1.9.0/alg -I/tmp/gdal-1.9.0/ogr
> -I/tmp/gdal-1.9.0/ogr/ogrsf_frmts -I/usr/include/ruby-1.9.1
> -I/usr/include/ruby-1.9.1/x86_64-linux -c gdal_wrap.cpp  -fPIC -DPIC -o
> .libs/gdal_wrap.o
> gdal_wrap.cpp:856:18: fatal error: ruby.h: No such file or directory
> compilation terminated.
> 
> 
> If "ruby" is replaced with "ruby1.8" in debian/control and
> swig/ruby/RubyMakefile.mk then the error disappears.

My findings so far:
- this does not happen in a clean chroot because the package
  build-depends only on ruby1.8{,-dev} and nothing pulls in ruby1.9*
- if I install ruby1.9.1{,-dev} additionally I get a FTBFS (slightly
  different, it fails later when it tries to install the then missing
  files)
- forcing ruby1.8 in swig/ruby/RubyMakefile.mk indeed works even if
  ruby1.9.1{-dev} is installed, with a change in debian/rules (patch
  attached)
- adding Build-Conflicts should also work

Not sure if this is really RC, and if yes, which fix to prefer (and
if my patch is correct).

Cheers,
gregor
  
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Juilliard Ensemble, Berberian,: Différences
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 684433.diff
Type: text/x-diff
Size: 2658 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20120827/2530c4bf/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20120827/2530c4bf/attachment.pgp>


More information about the Pkg-grass-devel mailing list