Package: xdotool Version: 3.20130111.1-3 Severity: important Tags: patch User: [email protected] Usertags: ruby18-removal
Hi, Ruby 1.8 is not maintained upstream any more, and the Ruby team whishes to get rid of it soon (see the transition planned by the release team). Could you please use the default Ruby interpreter, which has been ruby1.9.1 since Wheezy, to run your tests? A ruby package is provided for convenience and depends on the current default ruby interpreter. Please find attached two patches to fix this issue: - debian_control.patch, changing ruby1.8 build dependency to ruby and ruby-test-unit; ruby-test-unit is needed because the fake version of test-unit provided by ruby1.9.1 does not know about Test::Unit::AssertionFailedError. - 02_use_relative_path_in_ruby_require.patch to be added to your quilt patch series, which uses a relative path to find xdo_test_helper. In ruby1.8, the current dir was in the LOAD_PATH, which is not the case with more recent versions. Cheers, Cédric
diff -Nru xdotool-3.20130111.1/debian/control xdotool-3.20130111.1/debian/control --- xdotool-3.20130111.1/debian/control 2013-05-05 19:20:30.000000000 +0200 +++ xdotool-3.20130111.1/debian/control 2013-09-18 14:48:41.000000000 +0200 @@ -18,9 +18,9 @@ openbox, xfonts-base, procps, - ruby1.8, + ruby, + ruby-test-unit, doxygen -Build-Conflicts: ruby1.9.1 Standards-Version: 3.9.4 Homepage: http://www.semicomplete.com/blog/projects/xdotool/ Vcs-Git: git://lair.fifthhorseman.net/~dkg/xdotool
Description: use relative paths when requiring xdo_test_helper.rb The current directory is not in the $LOAD_PATH of more recent versions of the Ruby interpreter (ruby1.9.1 and ruby2.0). So the location of the file must be indicated. Author: Cédric Boutillier <[email protected]> Origin: vendor Last-Update: 2013-09-18 --- a/t/test_basic.rb +++ b/t/test_basic.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolBasicTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_chaining.rb +++ b/t/test_chaining.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolChainingTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_behave_screen_edge.rb +++ b/t/test_cmd_behave_screen_edge.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandBehaveScreenEdgeTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_exec.rb +++ b/t/test_cmd_exec.rb @@ -3,7 +3,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandExecTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_getwindowname.rb +++ b/t/test_cmd_getwindowname.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandGetWindowPidTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_getwindowpid.rb +++ b/t/test_cmd_getwindowpid.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandGetWindowPidTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_key.rb +++ b/t/test_cmd_key.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandKeyTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_windowfocus.rb +++ b/t/test_cmd_windowfocus.rb @@ -3,7 +3,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandWindowFocusTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_windowmap.rb +++ b/t/test_cmd_windowmap.rb @@ -3,7 +3,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandWindowMapTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_windowminimize.rb +++ b/t/test_cmd_windowminimize.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandWindowMinimizeTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_windowmove.rb +++ b/t/test_cmd_windowmove.rb @@ -3,7 +3,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandWindowMoveTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_cmd_windowsize.rb +++ b/t/test_cmd_windowsize.rb @@ -3,7 +3,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolCommandWindowSizeTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_mousemove.rb +++ b/t/test_mousemove.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolMouseMoveTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_script.rb +++ b/t/test_script.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" require "tempfile" class XdotoolScriptTests < Test::Unit::TestCase --- a/t/test_search.rb +++ b/t/test_search.rb @@ -2,7 +2,7 @@ # require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolSearchTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_typing.rb +++ b/t/test_typing.rb @@ -3,7 +3,7 @@ require "test/unit" require "tempfile" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolTypingTests < Test::Unit::TestCase include XdoTestHelper --- a/t/test_window.rb +++ b/t/test_window.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require "test/unit" -require "xdo_test_helper" +require "./xdo_test_helper" class XdotoolWindowTests < Test::Unit::TestCase include XdoTestHelper
signature.asc
Description: Digital signature

