Package: cvs2svn
Version: 2.4.0
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Dear Maintainer,

I hope I'm doing this correctly.

The cvs2svn package fails to build from source with recent versions of rcs
due to a failed internal test. This is caused by the rcs v5.9 'co' command
deprecating '-V' in favor of '--version'.  When cvs2svn executes 'co -V' to
test for its existence, co outputs a warning on stderr, which cvs2svn 
mistakes for a failure.

Attached is a patch that corrects this problem, so that the package builds.


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

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Subject: Use --version instead of obsolete -V to check for co's existence

The --use-rcs option uses 'co -V' to verify that co exists. However, recent
versions of rcs produce a warning on stderr to use --version instead; this
causes a false negative, causing --use-rcs to fail.

Author: Stephen Oberholtzer <ste...@qrpff.net>

--- a/cvs2svn_lib/rcs_revision_manager.py
+++ b/cvs2svn_lib/rcs_revision_manager.py
@@ -29,7 +29,7 @@
   def __init__(self, co_executable):
     self.co_executable = co_executable
     try:
-      check_command_runs([self.co_executable, '-V'], self.co_executable)
+      check_command_runs([self.co_executable, '--version'], self.co_executable)
     except CommandFailedException, e:
       raise FatalError('%s\n'
                        'Please check that co is installed and in your PATH\n'

Reply via email to