Your message dated Wed, 27 Jun 2012 18:17:45 +0000
with message-id <[email protected]>
and subject line Bug#678055: fixed in dhelp 0.6.21
has caused the Debian Bug report #678055,
regarding dhelp: Porting dhelp to use OptionParser instead of 
CommandLine::Application
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 [email protected]
immediately.)


-- 
678055: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678055
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dhelp
Version: 0.6.20
Severity: important
Tags: patch

Hi,

We have decided Wheezy will be released with Ruby 1.9.1 as the default
interpreter¹, leaving Ruby 1.8 as an option, and committing to remove
it by Wheezy+1.

This package, dhelp, depends on CommandLine::Application (in package
ruby-commandline, which supersedes libcommandline-ruby) to parse the
command line arguments. This module, however, is not compatible with
Ruby 1.9.1 — It not even dies correctly!²

While Cédric Boutillier has (preliminarly, at least) prepared a patch
making CommandLine::Application work again, I am of the opinion we
should drop it for Debian's new stable version⁴. It has not seen a new
release since 2005, and its functionality is provided by OptionParser,
which is part of Ruby's standard library.

I wrote a small patch to migrate dhelp to use OptionParser instead,
but have not really tested it — Anyway, the differences are quite
trivial, and they should be very easy to understand.

Please consider incorporating this patch into
dhelp. CommandLine::Application is currently RC-buggy, and I think its
removal will be soon be requested (that will raise this bug's severity
to "grave", as this package will no longer be usable).

Greetings,

¹ http://lists.debian.org/debian-devel-announce/2012/06/msg00001.html

² http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676248

³ http://lists.debian.org/debian-ruby/2012/06/msg00052.htmlhttp://lists.debian.org/debian-ruby/2012/06/msg00051.html

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

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

Versions of packages dhelp depends on:
ii  doc-base                                   0.10.3
ii  libcommandline-ruby1.8                     0.7.10-13
ii  libdata-page-perl                          2.02-1
ii  libdb-ruby1.8                              0.6.5-7
ii  libgettext-ruby1.8                         2.1.0-2.1
ii  libhtml-parser-perl                        3.69-2
ii  liblocale-gettext-perl                     1.05-7+b1
ii  libtemplate-perl                           2.22-0.1+b2
ii  liburi-perl                                1.60-1
ii  perl-modules                               5.14.2-11
ii  poppler-utils                              0.18.4-2
ii  pstotext                                   1.9-6
ii  ruby-bdb [libdb-ruby1.8]                   0.6.5-7
ii  ruby-commandline [libcommandline-ruby1.8]  0.7.10-13
ii  ruby1.8                                    1.8.7.358-4
ii  swish++                                    6.1.5-2.2
ii  ucf                                        3.0025+nmu3

Versions of packages dhelp recommends:
ii  chromium [www-browser]   18.0.1025.168~r134367-1
ii  elinks [www-browser]     0.12~pre5-7
ii  iceape [www-browser]     2.7.4-2
ii  iceweasel [www-browser]  10.0.4esr-3
ii  links2 [www-browser]     2.6-2
ii  lynx-cur [www-browser]   2.8.8dev.12-2
ii  midori [www-browser]     0.4.3-1
ii  w3m [www-browser]        0.5.3-8

Versions of packages dhelp suggests:
ii  apache2-mpm-prefork [httpd]  2.2.22-6
ii  catdvi                       <none>
ii  html2text                    1.3.2a-15
ii  info2www                     <none>
ii  man2html                     <none>
ii  w3m                          0.5.3-8

-- no debconf information
>From 5d55b5dfee0c1747c4e121c9893c8c2b2bd9d380 Mon Sep 17 00:00:00 2001
From: Gunnar Wolf <[email protected]>
Date: Mon, 18 Jun 2012 16:06:26 -0500
Subject: [PATCH] Ported from CommandLine::Application to OptionParser

---
 dhelp_parse.rb |   81 ++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 50 insertions(+), 31 deletions(-)

diff --git a/dhelp_parse.rb b/dhelp_parse.rb
index 3c71d32..55c3baf 100755
--- a/dhelp_parse.rb
+++ b/dhelp_parse.rb
@@ -1,4 +1,5 @@
 #!/usr/bin/ruby1.8 -w
+# -*- coding: utf-8 -*-
 
 =begin
     Documentation generator for dhelp
@@ -28,7 +29,7 @@ require 'dhelp'
 require 'dhelp/exporter/html'
 include Dhelp
 
-require 'commandline'
+require 'optparse'
 require 'find'
 require 'yaml'
 
@@ -51,43 +52,59 @@ end
 
 
 # dhelp_parse application class
-class DhelpParseApp < CommandLine::Application
+class DhelpParseApp
   DHELP_CONF_FILE    = "/etc/dhelp.conf"
   DOC_DIR                 = '/usr/share/doc'
   DOC_BASE_DHELP_DIR      = '/var/lib/doc-base/dhelp'
   DEFAULT_SEARCH_DIRS     = [DOC_DIR, DOC_BASE_DHELP_DIR]
 
+  Version = "0.2.0"
+  Author = "Esteban Manchado Velázquez"
+  Copyright = "Copyright (c) 2005-2007, Esteban Manchado Velázquez"
+  Synopsis = "[-v] [-h] -a doc-base_file1 d-b_f2 ... | -d doc-base_file1 d-b_f2 ... | -i | -r"
+  ShortDescription = "Debian online help system parser"
+  LongDescription = "Dhelp parser to add/remove/index-incrementally/fully-reindex dhelp files"
+
+
   def initialize
-    version           "0.2.0"
-    author            "Esteban Manchado Velázquez"
-    copyright         "Copyright (c) 2005-2007, Esteban Manchado Velázquez"
-    synopsis          "[-v] [-h] -a doc-base_file1 d-b_f2 ... | -d doc-base_file1 d-b_f2 ... | -i | -r"
-    short_description "Debian online help system parser"
-    long_description  "Dhelp parser to add/remove/index-incrementally/fully-reindex dhelp files"
-
-    option :help
-    option :names => %w(-a), :arity => [0,-1],
-           :opt_found => lambda {|opt, name, value| @action = :add;
-                                                    @doc_base_files = value },
-           :opt_description => "add documents registered in the given doc-base file"
-    option :names => %w(-d), :arity => [0,-1],
-           :opt_found => lambda {|opt, name, value| @action = :delete;
-                                                    @doc_base_files = value },
-           :opt_description => "remove documents registered in the given doc-base file"
-    option :names => %w(-v), :arity => [0,0],
-           :opt_found => lambda { @verbose = true },
-           :opt_description => "verbose"
-    option :names => %w(-i), :arity => [0,0],
-           :opt_found => lambda { @action = :index },
-           :opt_description => "perform deferred incremental indexing of pending registered docs"
-    option :names => %w(-r), :arity => [0,0],
-           :opt_found => lambda { @action = :reindex },
-           :opt_description => "perform full re-indexing of all registered docs"
-
-    expected_args [0,0]
-
-    @action  = nil
+    @action = nil
     @verbose = false
+
+    optparse = OptionParser.new do |opts|
+      opts.banner = "%s - %s\n\nSYNOPSIS:\n\t%s\n\n" % [$0, LongDescription, Synopsis]
+
+      opts.on('-h', '--help', 'Display this screen') {
+        puts opts
+        exit 0
+      }
+
+      opts.on('--version') {
+        puts '%s version %s' % [$0, Version]
+        exit 0
+      }
+
+      opts.on('-a FILE', 'Add documents registered in the given doc-base file'
+              ) { |files|
+        @action = :add
+        @doc_base_files = files
+      }
+
+      opts.on('-d FILE', 'Remove documents registered in the given doc-base file'
+              ) { |files|
+        @action = :delete
+        @doc_base_files = files
+      }
+
+      opts.on('-v', 'Verbose') { @verbose = true }
+
+      opts.on('-i', 'Perform deferred incremental indexing of pending registered docs'
+              ) { @action = :index }
+
+      opts.on('-r', 'Perform full re-indexing of all registered docs'
+              ) { @action = :reindex }
+    end
+
+    optparse.parse!
   end
 
   def packaged_configured?
@@ -185,3 +202,5 @@ class DhelpParseApp < CommandLine::Application
     puts "#{e.class}: #{e} (#{e.backtrace.join("\n")})"
   end
 end
+
+DhelpParseApp.new.main
-- 
1.7.10


--- End Message ---
--- Begin Message ---
Source: dhelp
Source-Version: 0.6.21

We believe that the bug you reported is fixed in the latest version of
dhelp, which is due to be installed in the Debian FTP archive:

dhelp_0.6.21.dsc
  to main/d/dhelp/dhelp_0.6.21.dsc
dhelp_0.6.21.tar.gz
  to main/d/dhelp/dhelp_0.6.21.tar.gz
dhelp_0.6.21_all.deb
  to main/d/dhelp/dhelp_0.6.21_all.deb



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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Georgios M. Zarkadas <[email protected]> (supplier of updated dhelp 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 12 June 2012 21:50:00 +0300
Source: dhelp
Binary: dhelp
Architecture: source all
Version: 0.6.21
Distribution: unstable
Urgency: low
Maintainer: Georgios M. Zarkadas <[email protected]>
Changed-By: Georgios M. Zarkadas <[email protected]>
Description: 
 dhelp      - online help system
Closes: 650441 669041 669758 678055
Changes: 
 dhelp (0.6.21) unstable; urgency=low
 .
   * New maintainer: Georgios M. Zarkadas <[email protected]> (Closes: 
#650441).
   * Support other web servers in addition to apache2 (Closes: #669041).
   * Support apache2 packaging transition for version 2.4 (Closes: #669758).
   * Support new ruby packaging policy transition for Wheezy.
   * Use OptionParser instead Commandline::Application (Closes: #678055).
     Thanks Gunnar Wolf.
   * Support new layout of man2html cgi scripts for Wheezy.
   * Keep supporting previous policies/layouts, either during build time or
     during runtime, to aid backporting.
   * Man and info pages links are activated only if associated packages are
     installed on the system.
   * Subsections now show in the sections list only if section is selected.
   * New color, styles and icons themes.
   * Package installation now does not fail if cache data cannot be generated
     during install.
   * Fix some minor lintian warnings.
   * Bump Standards-Version to 3.9.3.
Checksums-Sha1: 
 f3bdb8eeceda28d510a7796a04fae69054144079 1549 dhelp_0.6.21.dsc
 bd6608b685c2212d27e1f3f462da7d889a5e02d2 76763 dhelp_0.6.21.tar.gz
 ed0fe10fcacb8e70fd066622ca4865ebe4c4c00a 70740 dhelp_0.6.21_all.deb
Checksums-Sha256: 
 65ef7bddefd0ccccfb0e25b3f2e814e6f38428ea86234bd4e83a4b1d02f769d3 1549 
dhelp_0.6.21.dsc
 239625e0ea1950e4ede2183c0a6c1ca4ec722eb2672f7573d413d5ea50128bfd 76763 
dhelp_0.6.21.tar.gz
 422c17c03640b0652c30e4f98201777389a3ec7967882dfa81825922c151d4fb 70740 
dhelp_0.6.21_all.deb
Files: 
 c593b9ccf4f782a5ed6c3c8a372d8523 1549 doc optional dhelp_0.6.21.dsc
 b89e16a524947f0e71a4067cc8ccf9f5 76763 doc optional dhelp_0.6.21.tar.gz
 b91bd985b8f670a567fb11ecdba09179 70740 doc optional dhelp_0.6.21_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJP60ruAAoJEGc6A+TB25If5iIP/3zAXLB8p5guPHG/XFoknS49
aOr5RpSk6Ry1Uug2uQTRJ9BXi236toaXRbr9/tichIAjSTbwS27PCXQQizBwNnQd
YjPfiJKvIgNThgx/aRapwvpiRz7XQfJLPzvKO0z81iA95xDXOHltFeq426cJM8SR
PFSDESrd15DhJS3QBvpNIcDPS/jFjOly1lGlqnbDLtidSaqQALSK43HlNH9xSI9H
aUfnbR0icKh4vB0RjO4gy33nNv+2efXl8VYQez9rarB3p5t0sexnr41MZyik0oxk
gBEw6TVRXtroHOKJrE7YF3aGdIRb8NdEqR9gusSmpT7OQGrJT4WzwlbE/oC4gZCh
zi00fdx8IMK3sR4TsWkyVVtBqvPb75JKCAHk/w/x0ik1X8VTqRD+dNliX+EStIZO
FYG02HDMPW6E/CBHHO9xus1hDTXdUYxK/eIS8wpYcnWAfnGAqCZIT8fP2UXMlnhJ
q3Fh04Kvplev9QvSdwj2gZo8xir27Bxztw1IkyB9Nmzym907Jk/1Ldddyzf3booT
wQInU0mRwJ9pK/VzRrcqw4C0dgb6sHh8DS3meU7xXMyh/auFVqK/ZZibiLihTF7A
bqVzX3JVTI4JgIMpUAqHo1GY/1UxzmdvNMrZKlyN8ucTckl90D61ua84foSKTycI
ahkkZCDsE+eGXx0BfmU5
=fVwO
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to