Package: screenruler
Version: 0.960+bzr41-1.1
Severity: important
Tags: patch

Dear Maintainer,

the attached patch, borrowed from the RedHat Bugzilla [0], will make screenruler
fit for usage with ruby-1.9, so the explicit pinning to ruby-1.8 in
/usr/bin/screenruler and debian/control is no longer needed. However, upstream
[1] has failed to apply the patch until now.

[0]: https://bugzilla.redhat.com/show_bug.cgi?id=831501#c9
[1]: https://bugs.launchpad.net/screenruler/+bug/925835

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (1, 
'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages screenruler depends on:
ii  ruby-cairo    1.12.8-1
ii  ruby-gettext  3.0.3-1
ii  ruby-gtk2     1.1.3-2+b1
ii  ruby1.8       1.8.7.358-10

screenruler recommends no packages.

screenruler suggests no packages.

-- no debconf information
Subject: Make screenruler work with ruby-1.9
Origin: https://bugzilla.redhat.com/attachment.cgi?id=601287&action=diff
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=831501
Last-Update: 2014-01-10

--- ruler_window.rb	2011-03-30 06:26:46.000000000 +0200
+++ ruler_window.rb	2012-07-30 16:25:01.045654583 +0200
@@ -16,7 +16,8 @@ 
  #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  ###############################################################################
 
-require 'glade_window', 'ruler_popup_menu', 'canvas', 'unique_timeout'
+require 'glade_window', 'canvas', 'unique_timeout'
+require_relative 'ruler_popup_menu'
 
 Unit = Struct.new('Unit', :name, :tick_pattern, :units_per_pattern_repetition, :per_inch)
 
--- screenruler.rb	2012-07-30 16:17:24.130729392 +0200
+++ screenruler.rb	2012-07-30 16:23:34.005430982 +0200
@@ -44,7 +44,9 @@ GCONF_ROOT		= '/apps/screenruler'
 puts 'Loading libraries...'
 
 require 'addons_ruby'									# for multi-file 'require'
-require 'gtk2', 'libglade2', 'gconf2', 'addons_gtk', 'ruler_window', 'preferences_window'
+require 'gtk2', 'libglade2', 'gconf2', 'addons_gtk'
+require_relative 'ruler_window'
+require_relative 'preferences_window'
 
 ###################################################################
 # Main

Reply via email to