This is an automated email from the git hooks/post-receive script. uwabami-guest pushed a commit to branch master in repository ruby-hdfeos5.
commit 5ee573ec60e7122344d7786f3d80808f540edba0 Author: Youhei SASAKI <uwab...@gfd-dennou.org> Date: Thu Jul 17 13:54:52 2014 +0900 Fix FTBFS: add multiarch search path (Closes: #753188) Signed-off-by: Youhei SASAKI <uwab...@gfd-dennou.org> --- debian/patches/0001-Fix-NArray-Library-Path.patch | 24 +++---- debian/patches/0003-Fix-printf-debugging.patch | 78 ++++++++++------------- 2 files changed, 48 insertions(+), 54 deletions(-) diff --git a/debian/patches/0001-Fix-NArray-Library-Path.patch b/debian/patches/0001-Fix-NArray-Library-Path.patch index 5244460..d8e59b5 100644 --- a/debian/patches/0001-Fix-NArray-Library-Path.patch +++ b/debian/patches/0001-Fix-NArray-Library-Path.patch @@ -8,24 +8,26 @@ This patch fix search path for NArray. extconf.rb | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) -diff --git a/extconf.rb b/extconf.rb -index 7cceae4..3901f4f 100644 ---- a/extconf.rb -+++ b/extconf.rb -@@ -1,6 +1,6 @@ +--- ruby-hdfeos5.orig/extconf.rb ++++ ruby-hdfeos5/extconf.rb +@@ -1,6 +1,10 @@ require "mkmf" -dir_config('narray',$sitearchdir,$sitearchdir) ++require "rbconfig" unless defined? RbConfig ++$vendorarchdir=RbConfig::CONFIG['vendorarchdir'] ++$archlibdir=RbConfig::CONFIG['archlibdir'] ++ +dir_config('narray',$vendorarchdir,$vendorarchdir) if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then print <<EOS -@@ -14,7 +14,15 @@ EOS +@@ -14,7 +18,15 @@ exit(-1) end -dir_config('hdf5',$sitearchdir,$sitearchdir) -+dir_config('gctp', $archdir, $archdir) ++dir_config('gctp', $archlibdir, $archlibdir) +if ( ! have_library("gctp") ) then + print <<-EOS + ** configure error ** @@ -33,23 +35,23 @@ index 7cceae4..3901f4f 100644 + exit(-1) +end + -+dir_config('hdf5',$archdir,$archdir) ++dir_config('hdf5',$archlibdir,$archlibdir) if ( ! ( have_header("hdf5.h") && have_library("hdf5") ) )then print <<-EOS -@@ -32,9 +40,9 @@ if ( ! ( have_header("hdf5.h") && have_library("hdf5") ) )then +@@ -32,9 +44,9 @@ exit(-1) end -dir_config('hdfeos5',$sitearchdir,$sitearchdir) -+dir_config('hdfeos5',"/usr/include/hdf-eos5",$archdir) ++dir_config('hdfeos5','/usr/include/hdf-eos5',$archlibdir) -if ( ! ( have_header("HE5_HdfEosDef.h") && have_library("Gctp") && have_library("he5_hdfeos") ) )then +if ( ! ( have_header("HE5_HdfEosDef.h") && have_library("he5_hdfeos") ) )then print <<-EOS ** configure error ** Header hdfeos5.h or the compiled hdfeos5 library is not found. -@@ -69,7 +77,7 @@ oldmkfl.each_line{ |line| +@@ -69,7 +81,7 @@ newmkfl.puts(line) newmkfl.puts("") newmkfl.puts("test: all") # insert the "test" target diff --git a/debian/patches/0003-Fix-printf-debugging.patch b/debian/patches/0003-Fix-printf-debugging.patch index e34841d..611aff0 100644 --- a/debian/patches/0003-Fix-printf-debugging.patch +++ b/debian/patches/0003-Fix-printf-debugging.patch @@ -10,10 +10,8 @@ Signed-off-by: Youhei SASAKI <uwab...@gfd-dennou.org> test/test_za.rb | 67 +++++++++++++------------ 4 files changed, 235 insertions(+), 232 deletions(-) -diff --git a/test/test_gd.rb b/test/test_gd.rb -index b797dc8..b8672f9 100644 ---- a/test/test_gd.rb -+++ b/test/test_gd.rb +--- ruby-hdfeos5.orig/test/test_gd.rb ++++ ruby-hdfeos5/test/test_gd.rb @@ -1,69 +1,69 @@ +# -*- coding: utf-8 -*- require 'numru/hdfeos5' @@ -119,7 +117,7 @@ index b797dc8..b8672f9 100644 dname1.grid.close -@@ -73,7 +73,7 @@ dname1.grid.close +@@ -73,7 +73,7 @@ ##### he5_gd_setup.c ############################################################################### OK filename1 = "test_gd.he5" @@ -128,7 +126,7 @@ index b797dc8..b8672f9 100644 file1=HE5.open(filename1,"w") uplft = [210584.50041, 322395.95445] -@@ -109,7 +109,7 @@ file2.close +@@ -109,7 +109,7 @@ ############################################################################### OK ##### he5_gd_defunlimfld.c he5_sw_definefields.c ############################################################################### OK @@ -137,7 +135,7 @@ index b797dc8..b8672f9 100644 file2=HE5.open(filename1,"a") tilerank = 2 -@@ -118,7 +118,7 @@ compparm = [ 8, 0, 0, 0, 0] +@@ -118,7 +118,7 @@ grid2=file2.grid("UTMGrid") grid2.def_var("Pollution", "sfloat", "Time,YDim,XDim") fillvalue2 = -7.0 @@ -146,7 +144,7 @@ index b797dc8..b8672f9 100644 grid2.deftile("HE5_HDFE_TILE", tilerank, tiledims) grid2.defcomp("HE5_HDFE_COMP_DEFLATE", compparm) grid2.def_var("Vegetation", "sfloat", "YDim,XDim") -@@ -130,12 +130,12 @@ grid2.def_var("Pressure", "sfloat", "YDim,XDim") +@@ -130,12 +130,12 @@ grid2.def_var("Soil Dryness", "sfloat", "YDim,XDim") grid2.def_var("Spectra", "float", "Bands,YDim,XDim") fillvalue2 = -9999.0 @@ -162,7 +160,7 @@ index b797dc8..b8672f9 100644 file3=HE5.open(filename1,"a") grid3=file3.grid("UTMGrid") dname1=grid3.var("Vegetation") -@@ -170,55 +170,55 @@ grid3.close +@@ -170,55 +170,55 @@ ############################################################################### OK ##### he5_gd_info.c ############################################################################### OK @@ -244,7 +242,7 @@ index b797dc8..b8672f9 100644 file6=HE5.open(filename1,"r") grid61=file6.grid("UTMGrid") grid62=file6.grid("PolarGrid") -@@ -226,20 +226,20 @@ dname1=grid61.var("Vegetation") +@@ -226,20 +226,20 @@ start= [0,0] edge = [200,120] @@ -272,10 +270,8 @@ index b797dc8..b8672f9 100644 #cornerlon[0] = 0.0 #cornerlon[1] = 90.0 #cornerlat[1] = 0.0 -diff --git a/test/test_pt.rb b/test/test_pt.rb -index 9ff9fdc..a5c311c 100644 ---- a/test/test_pt.rb -+++ b/test/test_pt.rb +--- ruby-hdfeos5.orig/test/test_pt.rb ++++ ruby-hdfeos5/test/test_pt.rb @@ -1,16 +1,17 @@ +# -*- coding: utf-8 -*- require 'numru/hdfeos5' @@ -296,7 +292,7 @@ index 9ff9fdc..a5c311c 100644 file1=HE5.open(filename1,"w") point1=file1.ptcreate("Simple point") point2=file1.ptcreate("FixedBuoy point") -@@ -23,7 +24,7 @@ file1.close +@@ -23,7 +24,7 @@ ############################################################################### ok # sample 2 ############################################################################### OK @@ -305,7 +301,7 @@ index 9ff9fdc..a5c311c 100644 file2=HE5.open(filename1,"a") point4=file2.point("Simple point") -@@ -94,7 +95,7 @@ file2.close +@@ -94,7 +95,7 @@ ############################################################################### ok # sample 3 ############################################################################### OK @@ -314,7 +310,7 @@ index 9ff9fdc..a5c311c 100644 file3=HE5.open(filename1,"a") point7=file2.point("Simple point") dname1=point7.var("Time") -@@ -148,13 +149,13 @@ dname1=point8.var("Rainfall") +@@ -148,13 +149,13 @@ count =[15] time = NArray.sfloat(16) time[] = 0.234 @@ -330,7 +326,7 @@ index 9ff9fdc..a5c311c 100644 dname1=point8.var("ID","observations") count =[15] -@@ -167,7 +168,7 @@ attr1 = [1, 2, 3, 4] +@@ -167,7 +168,7 @@ point8.writeattr("GlobalAttribute","int",count,attr1) count = [8] @@ -339,7 +335,7 @@ index 9ff9fdc..a5c311c 100644 point8.writeattr("GLOBAL_CHAR_ATTR","char",count,attr1) count = [3] attr1 = "abc" -@@ -188,73 +189,73 @@ file3.close +@@ -188,73 +189,73 @@ ############################################################################### OK # sample 4 ############################################################################### OK @@ -455,10 +451,8 @@ index 9ff9fdc..a5c311c 100644 file5=HE5.open(filename1,"a") point8=file5.point("FixedBuoy point") dname1=point8.var("Latitude") -diff --git a/test/test_sw.rb b/test/test_sw.rb -index 246bd9a..b186ec2 100644 ---- a/test/test_sw.rb -+++ b/test/test_sw.rb +--- ruby-hdfeos5.orig/test/test_sw.rb ++++ ruby-hdfeos5/test/test_sw.rb @@ -1,83 +1,84 @@ +# -*- coding: utf-8 -*- require 'numru/hdfeos5' @@ -584,7 +578,7 @@ index 246bd9a..b186ec2 100644 dname1.swath.detach dname1.swath.file.close -@@ -87,7 +88,7 @@ dname1.swath.file.close +@@ -87,7 +88,7 @@ ##### he5_sw_setup.c ############################################################################### OK filename1 = "test_sw.he5" @@ -593,7 +587,7 @@ index 246bd9a..b186ec2 100644 file1=HE5.open(filename1,"w") swath1=file1.swcreate("Swath1") -@@ -109,27 +110,27 @@ file1.close +@@ -109,27 +110,27 @@ ############################################################################### ok ##### he5_sw_defunlimfld.c he5_sw_definefields.c ############################################################################### OK @@ -626,7 +620,7 @@ index 246bd9a..b186ec2 100644 swath2.defdatafield("Spectra", "Bands,Res2tr,Res2xtr", "NULL", "sfloat", 0) swath2.defdatafield("Count", "GeoTrack", "NULL", "int", 0); -@@ -137,9 +138,9 @@ swath2.prdefine("Profile-2000", "ProfDim", "NULL", "int") +@@ -137,9 +138,9 @@ swath2.detach file2.close ############################################################################### ok @@ -638,7 +632,7 @@ index 246bd9a..b186ec2 100644 file3=HE5.open(filename1,"a") swath3=file3.swath("Swath1") -@@ -148,21 +149,21 @@ start= [0,0] +@@ -148,21 +149,21 @@ edge = [-1,-1] tmp = NArray.float(1,20) @@ -664,7 +658,7 @@ index 246bd9a..b186ec2 100644 end tstart = [0] -@@ -180,7 +181,7 @@ edge = [14,39,19] +@@ -180,7 +181,7 @@ tmp = NArray.float(1,40,20) spectra = tmp * NArray.float(15,1) spectra[] = 20.0000 @@ -673,7 +667,7 @@ index 246bd9a..b186ec2 100644 dname1=swath3.var("Spectra") dname1.writefield(start,nil, edge, spectra,"sfloat") ############################################################################### OK -@@ -189,12 +190,12 @@ attr1 = [1, 2, 3, 4] +@@ -189,12 +190,12 @@ swath3.writeattr("GlobalAttribute","int",edge,attr1) edge[0]=8 @@ -688,7 +682,7 @@ index 246bd9a..b186ec2 100644 #edge[0]=4 #attr1 = [1111111,2222222,3333333,4444444] #swath3.writeattr("GLOBAL_LONG_ATTR","H5T_NATIVE_LONG",edge,attr1) -@@ -221,7 +222,7 @@ file3.close +@@ -221,7 +222,7 @@ ############################################################################### OK ##### he5_sw_wrexternaldata.c ############################################################################### OK @@ -697,7 +691,7 @@ index 246bd9a..b186ec2 100644 file4=HE5.open(filename1,"a") swath4=file4.swath("Swath1") -@@ -233,42 +234,42 @@ file4.close +@@ -233,42 +234,42 @@ ############################################################################### OK ##### he5_sw_info.c ############################################################################### OK @@ -760,16 +754,14 @@ index 246bd9a..b186ec2 100644 swath6.detach file6.close ############################################################################### ok -diff --git a/test/test_za.rb b/test/test_za.rb -index 183d5b7..37207cd 100644 ---- a/test/test_za.rb -+++ b/test/test_za.rb +--- ruby-hdfeos5.orig/test/test_za.rb ++++ ruby-hdfeos5/test/test_za.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- require 'numru/hdfeos5' include NumRu -@@ -8,7 +9,7 @@ include NumRu +@@ -8,7 +9,7 @@ ##### he5_za_setup.c ############################################################################### OK filename1 = "test/test_za.he5" @@ -778,7 +770,7 @@ index 183d5b7..37207cd 100644 file1=HE5.open(filename1,"w") za1=file1.zacreate("za1") -@@ -26,7 +27,7 @@ file1.close +@@ -26,7 +27,7 @@ ############################################################################### ok ##### he5_za_defunlimfld.c he5_za_definefields.c ############################################################################### OK @@ -787,7 +779,7 @@ index 183d5b7..37207cd 100644 file2=HE5.open(filename1,"a") za2=file2.zonal("za1") za2.def_var("Density", "sfloat", "MyTrack1") -@@ -34,11 +35,11 @@ za2.def_var("Temperature", "sfloat", "MyTrack1,MyTrack2") +@@ -34,11 +35,11 @@ za2.def_var("Presure", "float", "Res2tr,Res2xtr") za2.def_var("Test_string", "text", "MyTrack2") fillvalue2 = "AAAA" @@ -801,7 +793,7 @@ index 183d5b7..37207cd 100644 za2.define("Spectra", "Bands,Res2tr,Res2xtr", "NULL", "sfloat") comp_code = "HDFE_COMP_SZIP_K13orEC" comp_level=[16,0,0,0,0] -@@ -48,9 +49,9 @@ za2.define("Count", "MyTrack1", "NULL", "int") +@@ -48,9 +49,9 @@ za2.detach file2.close ############################################################################### ok @@ -813,7 +805,7 @@ index 183d5b7..37207cd 100644 file3=HE5.open(filename1,"a") za3=file3.zonal("za1") -@@ -65,7 +66,7 @@ edge = [14,39,19] +@@ -65,7 +66,7 @@ tmp = NArray.float(1,40,20) spectra = tmp * NArray.float(15,1) spectra[] = 20.0000 @@ -822,7 +814,7 @@ index 183d5b7..37207cd 100644 dname1=za3.var("Spectra") dname1.writefield(start,nil, edge, spectra,"sfloat") ############################################################################### OK -@@ -79,7 +80,7 @@ za3.writeattr("GLOBAL_CHAR_ATTR","char",edge,attr1) +@@ -79,7 +80,7 @@ edge[0]=3 attr1 = "abc" za3.writeattr("GLOBAL_CHAR_ATTR_11","char",edge,attr1) @@ -831,7 +823,7 @@ index 183d5b7..37207cd 100644 #edge[0]=4 #attr1 = [1111111,2222222,3333333,4444444] #za3.writeattr("GLOBAL_LONG_ATTR","long",edge,attr1) -@@ -98,7 +99,7 @@ file3.close +@@ -98,7 +99,7 @@ ############################################################################### OK ##### he5_za_wrexternaldata.c ############################################################################### OK @@ -840,7 +832,7 @@ index 183d5b7..37207cd 100644 file4=HE5.open(filename1,"a") za4=file4.zonal("za1") -@@ -110,47 +111,47 @@ file4.close +@@ -110,47 +111,47 @@ ############################################################################### OK ##### he5_za_info.c ############################################################################### OK -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/ruby-hdfeos5.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel