[Pkg-mc-devel] Bug#602857: mc: [VFS] generic .7z archive edition

Matthieu Crapet mcrapet at gmail.com
Mon Nov 8 21:59:12 UTC 2010

Package: mc
Version: 3:
Severity: minor
Tags: patch

Currently, mc uses 7za which is provided by "p7zip-full" package.
It would be nice to have also support for "p7zip" package.

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

Kernel: Linux 2.6.34-m (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages mc depends on:
ii  e2fslibs                      1.41.12-2  ext2/ext3/ext4 file system librari
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libcomerr2                    1.41.12-2  common error description library
ii  libglib2.0-0                  2.24.2-1   The GLib library of C routines
ii  libgpm2                       1.20.4-3.3 General Purpose Mouse - shared lib
ii  libslang2                     2.2.2-4    The S-Lang programming library - r

Versions of packages mc recommends:
ii  mime-support                  3.48-1     MIME files 'mime.types' & 'mailcap

Versions of packages mc suggests:
pn  arj                     <none>           (no description available)
ii  bzip2                   1.0.5-6          high-quality block-sorting file co
pn  catdvi                  <none>           (no description available)
pn  dbview                  <none>           (no description available)
pn  djvulibre-bin           <none>           (no description available)
ii  evince [pdf-viewer]     2.30.3-1         Document (postscript, pdf) viewer
ii  file                    5.04-5           Determines file type using "magic"
pn  gv                      <none>           (no description available)
ii  imagemagick             8:    image manipulation programs
pn  odt2txt                 <none>           (no description available)
ii  perl                    5.10.1-15        Larry Wall's Practical Extraction 
ii  python                  2.6.6-3+squeeze1 interactive high-level object-orie
pn  python-boto             <none>           (no description available)
pn  python-tz               <none>           (no description available)
ii  unzip                   6.0-4            De-archiver for .zip files
ii  w3m                     0.5.2-9          WWW browsable pager with excellent
ii  xpdf [pdf-viewer]       3.02-11          Portable Document Format (PDF) rea
ii  zip                     3.0-3            Archiver for .zip files

-- Configuration Files:
/etc/mc/mc.ext changed [not included]

-- no debconf information
-------------- next part --------------
>From dc4c9c6defd14bbe0a8a810abdda059438142167 Mon Sep 17 00:00:00 2001
From: Matthieu Crapet <mcrapet at gmail.com>
Date: Mon, 8 Nov 2010 22:40:37 +0100
Subject: [PATCH] VFS: generic .7z archive edition

p7zip-full package provides 7za executable.
p7zip package provides 7zr executable.
 lib/vfs/mc-vfs/extfs/u7z |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/vfs/mc-vfs/extfs/u7z b/lib/vfs/mc-vfs/extfs/u7z
index cc8d2d9..9d41ac6 100644
--- a/lib/vfs/mc-vfs/extfs/u7z
+++ b/lib/vfs/mc-vfs/extfs/u7z
@@ -5,7 +5,7 @@
 # Some Bugfixes/workarounds by Sergiy Niskorodov <sgh at mail.zp.ua>
 # Licensed under GNU GPL version 2 or later version.
-P7ZIP=`which 7z 2>/dev/null` || P7ZIP=`which 7za 2>/dev/null`
+P7ZIP=`which 7z 2>/dev/null` || P7ZIP=`which 7za 2>/dev/null` || P7ZIP=`which 7zr 2>/dev/null`
 mcu7zip_list ()

More information about the Pkg-mc-devel mailing list