Your message dated Sun, 20 Oct 2013 11:34:07 +0000
with message-id <e1vxrgp-0000s9...@franck.debian.org>
and subject line Bug#724768: fixed in glark 1.8.0-1.1
has caused the Debian Bug report #724768,
regarding glark: Does not work with ruby 1.9, but doesn't have according
dependencies
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
724768: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724768
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: glark
Version: 1.8.0-1
Severity: grave
Justification: Wrong/missing dependency, does only work after changing a
system's ruby default version
Tags: wheezy jessie sid patch
Dear Maintainer,
while glark 1.8.0-1 seems to work fine on Debian Squeeze, it no more
does so on Wheezy:
$ glark
/usr/share/glark/glark.rb:135: warning: assigned but unused variable - srclines
/usr/share/glark/glark.rb:262: warning: assigned but unused variable - e
/usr/share/glark/glark.rb:351: warning: assigned but unused variable - e
/usr/share/glark/glark.rb:460: warning: assigned but unused variable - fname
/usr/share/glark/glark.rb:640: warning: assigned but unused variable - e
/usr/share/glark/glark.rb:816: warning: assigned but unused variable - str
/usr/share/glark/options.rb:501: warning: assigned but unused variable - e
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
/usr/share/glark/options.rb:81: formal argument cannot be an instance variable
(SyntaxError)
:set => Proc.new { |@after| },
^
/usr/share/glark/options.rb:87: formal argument cannot be an instance variable
:set => Proc.new { |@before| },
^
/usr/share/glark/options.rb:191: formal argument cannot be an instance variable
:set => Proc.new { |@directory| }
^
/usr/share/glark/options.rb:216: formal argument cannot be an instance variable
:set => Proc.new { |@split_as_path| }
^
/usr/share/glark/options.rb:221: formal argument cannot be an instance variable
:set => Proc.new { |@directory| }
^
/usr/share/glark/options.rb:234: formal argument cannot be an instance variable
:set => Proc.new { |@label| }
^
/usr/share/glark/options.rb:239: formal argument cannot be an instance variable
:set => Proc.new { |@match_limit| }
^
/usr/share/glark/options.rb:296: formal argument cannot be an instance variable
:set => Proc.new { |@size_limit| }
^
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/share/glark/glark.rb:20:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/bin/glark:17:in `<main>'
$
(Adding parameters or command-line options make no difference at all.)
The default ruby version since Wheezy is 1.9.3. But even with installing
the ruby1.8 package and calling "ruby1.8 /usr/bin/glark" does not help.
The only thing which helps so far is installing ruby1.8 (but glark's
dependency unconditionally pulls in ruby 1.9.x) and then letting
/usr/bin/ruby point to ruby1.8 by running "update-alternatives --config
ruby".
But that's just a short-term solution since ruby1.8 seems scheduled for
removal: http://release.debian.org/transitions/html/ruby1.8-removal.html
IMHO this bug should also be fixed in Wheezy as glark does not work on
Wheezy without changing the default ruby version and that's completely
up to the local administrator and no package must depend on that
decision.
Intermediately, this fix should also work for Jessie and Sid, but only
until Ruby 1.8 is removed.
The following patch fixes the issue:
diff -u glark-1.8.0/debian/control glark-1.8.0/debian/control
--- glark-1.8.0/debian/control
+++ glark-1.8.0/debian/control
@@ -8,7 +8,7 @@
Package: glark
Architecture: all
-Depends: ruby (>= 1.6.7-3)
+Depends: ruby1.8
Description: pattern matching tool similar to grep
glark is a program like 'grep' to search for text in files. It can
be used from the command line or in scripts.
diff -u glark-1.8.0/debian/rules glark-1.8.0/debian/rules
--- glark-1.8.0/debian/rules
+++ glark-1.8.0/debian/rules
@@ -4,0 +5,5 @@
+
+install/glark::
+ sed -e 's/^exec ruby /exec ruby1.8 /;s/^#!ruby
/#!ruby1.8/;s:^#!/usr/bin/ruby :#!/usr/bin/ruby1.8 :' -i \
+ $(CURDIR)/debian/glark/usr/bin/glark \
+ $(CURDIR)/debian/glark/usr/share/glark/*.rb
-- System Information:
Debian Release: 7.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages glark depends on:
ii ruby 1:1.9.3
ii ruby1.8 [ruby] 1.8.7.358-7
glark recommends no packages.
glark suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: glark
Source-Version: 1.8.0-1.1
We believe that the bug you reported is fixed in the latest version of
glark, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 724...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Axel Beckert <a...@debian.org> (supplier of updated glark package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 09 Oct 2013 17:52:18 +0200
Source: glark
Binary: glark
Architecture: source all
Version: 1.8.0-1.1
Distribution: unstable
Urgency: low
Maintainer: Michael Ablassmeier <a...@debian.org>
Changed-By: Axel Beckert <a...@debian.org>
Description:
glark - pattern matching tool similar to grep
Closes: 724768
Changes:
glark (1.8.0-1.1) unstable; urgency=low
.
* Non-maintainer upload
* Enforce Ruby 1.8 usage (Closes: #724768)
+ Patch installed glark binary to use ruby1.8
+ Switch dependency from ruby to rub1.8.
Checksums-Sha1:
37d2b11953f93221700e1fae636347feebb2c281 1025 glark_1.8.0-1.1.dsc
9d9bfda1df10cff5661d4f45b78ec9e2a8de9c35 2902 glark_1.8.0-1.1.diff.gz
2fd299ebc1d432dff3c3eaa1c95322e719ea3f34 35316 glark_1.8.0-1.1_all.deb
Checksums-Sha256:
97e357f1ac3e194f7b5f2e4e9f2d468ce5df1977d651635b578398291529033c 1025
glark_1.8.0-1.1.dsc
1843db8066cd9f26dffc59341ec49ae9c2d1a1454ce52a30ba90b43cbf10906d 2902
glark_1.8.0-1.1.diff.gz
cc90a1516653cfde81f028fbea81819db38609871519aaed5cb3e1e56594a2cf 35316
glark_1.8.0-1.1_all.deb
Files:
dfcb79791056b21c43e598ceabfacc3c 1025 utils optional glark_1.8.0-1.1.dsc
39ea1f52d091b5a8bcbb5d574dd803d2 2902 utils optional glark_1.8.0-1.1.diff.gz
d8d37c6d27c1412f2ac94934c0b9dfd8 35316 utils optional glark_1.8.0-1.1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
iEUEARECAAYFAlJVg3wACgkQwJ4diZWTDt7eNgCfTgzmfATaL/RAHj+41cIodtM8
ZWgAmNsQtkFatDRRWYVtGmaCdLCkaes=
=64iT
-----END PGP SIGNATURE-----
--- End Message ---