Package: logol
Severity: important
Tags: patch

Dear Maintainer,

The versions of Ruby that will be supported in Jessie already include
rubygems. So the 'rubygems' package will go away together with ruby1.8
since they are now deprecated.

Please update your depencies to remove rubygems (and possibly the
version check on ruby).

I have attached control.diff, implementing this change in the control
file.

Please also consider applying the attached 'remove_rubygems_usage' patch
to remove explicit (unneeded) usage of rubygems in scripts.

Thanks!

Cédric
--- logol-1.6.9.old/debian/control	2014-01-16 16:24:19.505700720 +0100
+++ logol-1.6.9/debian/control	2014-01-16 16:55:46.469753353 +0100
@@ -5,7 +5,7 @@
 Uploaders: Olivier Sallou <osal...@debian.org>
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/logol/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/logol/
-Build-Depends: debhelper (>= 8.0.0),default-jdk (>= 1:1.6),ant,ruby (>=1.8),rubygems, gawk, swi-prolog (>=6.4.1-3),
+Build-Depends: debhelper (>= 8.0.0),default-jdk (>= 1:1.6),ant, ruby, gawk, swi-prolog (>=6.4.1-3),
  libbiojava-java, libdrmaa-java, antlr3, libcommons-cli-java, libcommons-collections3-java, libcommons-configuration-java,
  libcommons-lang-java, libcommons-logging-java, libxalan2-java, libxerces2-java, junit4, libgnumail-java,
  liblog4j1.2-java,texlive, texlive-latex-extra, tex4ht, libncursesw5-dev, ruby-cassiopee (>=0.1.12), ant-optional
@@ -14,7 +14,7 @@
 
 Package: logol
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, default-jre | java6-runtime, ruby (>=1.8),rubygems, gawk,
+Depends: ${shlibs:Depends}, ${misc:Depends}, default-jre | java6-runtime, ruby, gawk,
  libbiojava-java, libdrmaa-java, antlr3, libcommons-cli-java, libcommons-collections3-java, libcommons-configuration-java,
  libcommons-lang-java, libcommons-logging-java, libxalan2-java, libxerces2-java, libgnumail-java, liblog4j1.2-java,
  ruby-cassiopee (>=0.1.12), logol-bin
Description: Remove explicit use of rubygems
 Supported version of Ruby in Jessie+ are higher that 1.9 and they all
 automatically load rubygems
Author: Cédric Boutillier <bou...@debian.org>
Last-Update: 2014-01-16

--- a/tools/logolIndex.rb
+++ b/tools/logolIndex.rb
@@ -1,5 +1,4 @@
 #!/usr/bin/env ruby
-require 'rubygems'
 require 'optparse'
 require 'logger'
 require 'cassiopee-mt'
--- a/tools/logolSearch.rb
+++ b/tools/logolSearch.rb
@@ -22,9 +22,9 @@
 DIR=File.expand_path(File.dirname(__FILE__))
 
 if muteOnly == 1
-  cmd = "ruby -rubygems "+DIR+"/logolIndex.rb --search "+sequence+".index 
--min "+minStart+" --max "+maxStart+" --pattern "+motifFileName+" --error 
"+nbError+" --hamming"
+  cmd = "ruby "+DIR+"/logolIndex.rb --search "+sequence+".index --min 
"+minStart+" --max "+maxStart+" --pattern "+motifFileName+" --error "+nbError+" 
--hamming"
 else
-  cmd = "ruby -rubygems "+DIR+"/logolIndex.rb --search "+sequence+".index 
--min "+minStart+" --max "+maxStart+" --pattern "+motifFileName+" --error 
"+nbError
+  cmd = "ruby "+DIR+"/logolIndex.rb --search "+sequence+".index --min 
"+minStart+" --max "+maxStart+" --pattern "+motifFileName+" --error "+nbError
 end
 
 Open3.popen3(cmd) do |stdin,stdout,stderr, wait_thr|

Attachment: signature.asc
Description: Digital signature

Reply via email to