diff options
Diffstat (limited to '')
-rw-r--r-- | debian/patches/2987.patch | 25 | ||||
-rw-r--r-- | debian/patches/alt_editor.patch | 27 | ||||
-rw-r--r-- | debian/patches/disable_internal_editor.patch | 21 | ||||
-rw-r--r-- | debian/patches/dummy-zip-password.patch | 19 | ||||
-rw-r--r-- | debian/patches/ext_run-mailcap.patch | 23 | ||||
-rw-r--r-- | debian/patches/ext_use_default_editor.patch | 18 | ||||
-rw-r--r-- | debian/patches/mcedit_auto_indent.patch | 20 | ||||
-rw-r--r-- | debian/patches/mcedit_full_path.patch | 34 | ||||
-rw-r--r-- | debian/patches/mcedit_group_undo.patch | 19 | ||||
-rw-r--r-- | debian/patches/series | 15 | ||||
-rw-r--r-- | debian/patches/use_sensible-editor.patch | 20 | ||||
-rw-r--r-- | debian/patches/uzip_528239.patch | 25 |
12 files changed, 266 insertions, 0 deletions
diff --git a/debian/patches/2987.patch b/debian/patches/2987.patch new file mode 100644 index 0000000..62e31c8 --- /dev/null +++ b/debian/patches/2987.patch @@ -0,0 +1,25 @@ +Last-Update: 2017-06-29 +Forwarded: https://www.midnight-commander.org/ticket/2110#comment:11 +Author: Dmitry Borisyuk" <q1werty@i.com.ua> +Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org> +Bug-MC: https://www.midnight-commander.org/ticket/2987 +Bug-MC: https://www.midnight-commander.org/ticket/2110 +Bug-Debian: http://bugs.debian.org/703741 +Description: clear unfinished text before 'cd' to avoid accidental execution + send C-k C-u to the shell before sending 'cd' command to erase previous + unfinished text (C-k is needed for bash if the cursor is in the middle of + the line). + +--- a/src/subshell/common.c ++++ b/src/subshell/common.c +@@ -1715,9 +1715,9 @@ + } + } + /* The initial space keeps this out of the command history (in bash + because we set "HISTCONTROL=ignorespace") */ +- write_all (mc_global.tty.subshell_pty, " cd ", 4); ++ write_all (mc_global.tty.subshell_pty, "\013\025 cd ", 6); + + if (vpath == NULL) + write_all (mc_global.tty.subshell_pty, "/", 1); + else diff --git a/debian/patches/alt_editor.patch b/debian/patches/alt_editor.patch new file mode 100644 index 0000000..3082548 --- /dev/null +++ b/debian/patches/alt_editor.patch @@ -0,0 +1,27 @@ +Last-Update: 2012-08-04 +Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org> +Forwarded: yes +Bug-Debian: http://bugs.debian.org/592208 +Bug-MC: https://www.midnight-commander.org/ticket/2799 +Bug-MC: https://www.midnight-commander.org/ticket/2638 +Author: Yury V. Zaytsev <yury@shurup.com> +Description: Detect that mc was launched from alternatives symlink + This patch in needed to mcedit to start if run as 'editor' symlink + from alternatives. + . + As of 2012-05-01 upstream believe this should be customised per + distribution as therefore refused to commit. + +--- a/src/args.c ++++ b/src/args.c +@@ -620,9 +620,9 @@ + const char *base; + + base = x_basename (argv[0]); + +- if (strncmp (base, "mce", 3) == 0 || strcmp (base, "vi") == 0) ++ if (strncmp (base, "mce", 3) == 0 || strcmp (base, "vi") == 0 || strcmp (base, "editor") == 0) + { + /* mce* or vi is link to mc */ + mc_global.mc_run_mode = MC_RUN_EDITOR; + } diff --git a/debian/patches/disable_internal_editor.patch b/debian/patches/disable_internal_editor.patch new file mode 100644 index 0000000..48130e2 --- /dev/null +++ b/debian/patches/disable_internal_editor.patch @@ -0,0 +1,21 @@ +Last-Update: 2017-06-29 +Forwarded: no +Bug-Debian: http://bugs.debian.org/413258 +Author: Patrick Winnertz <winnie@debian.org> +Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org> +Updated-by: Denis Briand <debian@denis-briand.fr> +Description: Disable internal editor by default + +--- a/src/setup.c ++++ b/src/setup.c +@@ -178,9 +178,9 @@ + + /* If true use the internal viewer */ + gboolean use_internal_view = TRUE; + /* If set, use the builtin editor */ +-gboolean use_internal_edit = TRUE; ++gboolean use_internal_edit = FALSE; + + #ifdef HAVE_CHARSET + /* Numbers of (file I/O) and (input/display) codepages. -1 if not selected */ + int default_source_codepage = -1; diff --git a/debian/patches/dummy-zip-password.patch b/debian/patches/dummy-zip-password.patch new file mode 100644 index 0000000..062f583 --- /dev/null +++ b/debian/patches/dummy-zip-password.patch @@ -0,0 +1,19 @@ +Last-Update: 2014-12-13 +Forwarded: no +Author: Dmitry Borisyuk" <q1werty@i.com.ua> +Bug-Debian: http://bugs.debian.org/772080 +Description: prevent hangs on extraction from encrypted .ZIP archives, suppress password prompt with dummy password. + +--- a/src/vfs/extfs/helpers/uzip.in ++++ b/src/vfs/extfs/helpers/uzip.in +@@ -32,9 +32,9 @@ + my $cmd_addlink = "$app_zip -g -y"; + # Command used to delete a file from the archive + my $cmd_delete = "$app_zip -d"; + # Command used to extract a file to standard out +-my $cmd_extract = "$app_unzip -p"; ++my $cmd_extract = "$app_unzip -P '' -p"; + + # -rw-r--r-- 2.2 unx 2891 tx 1435 defN 20000330.211927 ./edit.html + # (perm) (?) (?) (size) (?) (zippedsize) (method) (yyyy)(mm)(dd).(HH)(MM)(SS) (fname) + my $regex_zipinfo_line = qr"^(\S{7,10})\s+(\d+\.\d+)\s+(\S+)\s+(\d+)\s+(\S\S)\s+(\d+)\s+(\S{4})\s+(\d{4})(\d\d)(\d\d)\.(\d\d)(\d\d)(\d\d)\s(.*)$"; diff --git a/debian/patches/ext_run-mailcap.patch b/debian/patches/ext_run-mailcap.patch new file mode 100644 index 0000000..3cd4963 --- /dev/null +++ b/debian/patches/ext_run-mailcap.patch @@ -0,0 +1,23 @@ +Last-Update: 2013-09-08 +Forwarded: no +Author: Dmitry Smirnov <onlyjob@member.fsf.org> +Bug-Debian: http://bugs.debian.org/665763 +Bug-Debian: http://bugs.debian.org/544058 +Description: Use mailcap viewer instead of various hardcoded viewers + * dvi viewer (do_open_action) + * images viewer + * .ram|.rm files viewer + +--- a/misc/ext.d/doc.sh.in ++++ b/misc/ext.d/doc.sh.in +@@ -184,9 +184,9 @@ + fmclient -f "${MC_EXT_FILENAME}" + ;; + dvi) + if [ -n "$DISPLAY" ]; then +- (xdvi "${MC_EXT_FILENAME}" &) ++ (run-mailcap "${MC_EXT_FILENAME}" &) + else + dvisvga "${MC_EXT_FILENAME}" || \ + dvi2tty "${MC_EXT_FILENAME}" | ${PAGER:-more} + fi diff --git a/debian/patches/ext_use_default_editor.patch b/debian/patches/ext_use_default_editor.patch new file mode 100644 index 0000000..79de754 --- /dev/null +++ b/debian/patches/ext_use_default_editor.patch @@ -0,0 +1,18 @@ +Last-Update: 2013-04-03 +Author: Dmitry Smirnov <onlyjob@member.fsf.org> +Forwarded: not-needed +Description: Use default editor instead of vi + +--- a/misc/mc.ext.ini.in ++++ b/misc/mc.ext.ini.in +@@ -1113,9 +1113,9 @@ + Open=%cd %p/ucpio:// + View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio + + [Include/editor] +-Open=%var{EDITOR:vi} %f ++Open=%var{EDITOR:editor} %f + + [Include/image] + Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS + View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS diff --git a/debian/patches/mcedit_auto_indent.patch b/debian/patches/mcedit_auto_indent.patch new file mode 100644 index 0000000..7720f16 --- /dev/null +++ b/debian/patches/mcedit_auto_indent.patch @@ -0,0 +1,20 @@ +Last-Update: 2017-06-29 +Forwarded: no +Bug-Debian: http://bugs.debian.org/570502 +Author: Dmitry Smirnov <onlyjob@member.fsf.org> +Updated-by: Denis Briand <debian@denis-briand.fr> +Description: disable "Return does autoindent" by default (mcedit) + +--- a/src/editor/edit.c ++++ b/src/editor/edit.c +@@ -80,9 +80,9 @@ + .word_wrap_line_length = DEFAULT_WRAP_LINE_LENGTH, + .typewriter_wrap = FALSE, + .auto_para_formatting = FALSE, + .fill_tabs_with_spaces = FALSE, +- .return_does_auto_indent = TRUE, ++ .return_does_auto_indent = FALSE, + .backspace_through_tabs = FALSE, + .fake_half_tabs = TRUE, + .persistent_selections = TRUE, + .drop_selection_on_copy = TRUE, diff --git a/debian/patches/mcedit_full_path.patch b/debian/patches/mcedit_full_path.patch new file mode 100644 index 0000000..ab03e49 --- /dev/null +++ b/debian/patches/mcedit_full_path.patch @@ -0,0 +1,34 @@ +ast-Update: 2017-06-29 +Forwarded: not-needed +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764226 +Bug-Upstream: http://www.midnight-commander.org/ticket/3285 +Author: Dmitry Smirnov <onlyjob@member.fsf.org> +Updated-by: Denis Briand <debian@denis-briand.fr> +Description: 'mcedit' status line to show full path to file, like in 'mcview'. + +--- a/doc/man/mcedit.1.in ++++ b/doc/man/mcedit.1.in +@@ -604,9 +604,9 @@ + will be untouched. Default value is + "\fB-\fR\fB+\fR\fB*\fR\fB\\\fR\fB,\fR\fB.\fR\fB;\fR\fB:\fR\fB&\fR\fB>\fR". + .TP + .I editor_state_full_filename +-Show full path name in the status line. If disabled (default), only base name of the ++Show full path name in the status line. If disabled, only base name of the + file is shown. + .SH MISCELLANEOUS + The editor also displays non\-us characters (160+). When editing + binary files, you should set +--- a/src/editor/edit.c ++++ b/src/editor/edit.c +@@ -87,9 +87,9 @@ + .persistent_selections = TRUE, + .drop_selection_on_copy = TRUE, + .cursor_beyond_eol = FALSE, + .cursor_after_inserted_block = FALSE, +- .state_full_filename = FALSE, ++ .state_full_filename = TRUE, + .line_state = FALSE, + .line_state_width = 0, + .save_mode = EDIT_QUICK_SAVE, + .confirm_save = TRUE, diff --git a/debian/patches/mcedit_group_undo.patch b/debian/patches/mcedit_group_undo.patch new file mode 100644 index 0000000..88a53f9 --- /dev/null +++ b/debian/patches/mcedit_group_undo.patch @@ -0,0 +1,19 @@ +Last-Update: 2017-06-29 +Forwarded: not-needed +Author: Dmitry Smirnov <onlyjob@member.fsf.org> +Updated-by: Denis Briand <debian@denis-briand.fr> +Description: enable "Group undo" by default (mcedit) + +--- a/src/editor/edit.c ++++ b/src/editor/edit.c +@@ -94,9 +94,9 @@ + .save_mode = EDIT_QUICK_SAVE, + .confirm_save = TRUE, + .save_position = TRUE, + .syntax_highlighting = TRUE, +- .group_undo = FALSE, ++ .group_undo = TRUE, + .backup_ext = NULL, + .filesize_threshold = NULL, + .stop_format_chars = NULL, + .visible_tabs = TRUE, diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..f3ca3ea --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,15 @@ +## UPSTREAM / FORWARDED: +2987.patch + +## DEBIAN FIXES AND ENHANCEMENTS: +dummy-zip-password.patch +alt_editor.patch +use_sensible-editor.patch + +## OVERRIDE DEFAULTS: +disable_internal_editor.patch +mcedit_auto_indent.patch +mcedit_full_path.patch +mcedit_group_undo.patch +ext_run-mailcap.patch +ext_use_default_editor.patch diff --git a/debian/patches/use_sensible-editor.patch b/debian/patches/use_sensible-editor.patch new file mode 100644 index 0000000..7d2f251 --- /dev/null +++ b/debian/patches/use_sensible-editor.patch @@ -0,0 +1,20 @@ +Last-Update: 2015-03-23 +Forwarded: not-needed +Bug-Debian: http://bugs.debian.org/549202 +Author: Denis Briand <denis@narcan.fr> +Author: Yury V. Zaytsev <yury@shurup.com> +Description: Use sensible-editor to edit files + +--- a/lib/global.h ++++ b/lib/global.h +@@ -123,9 +123,9 @@ + #define IS_PATH_SEP(c) ((c) == PATH_SEP) + #define PATH_ENV_SEP ':' + #define TMPDIR_DEFAULT "/tmp" + #define SCRIPT_SUFFIX "" +-#define get_default_editor() "vi" ++#define get_default_editor() "sensible-editor" + #define OS_SORT_CASE_SENSITIVE_DEFAULT TRUE + #define UTF8_CHAR_LEN 6 + + /* struct stat members */ diff --git a/debian/patches/uzip_528239.patch b/debian/patches/uzip_528239.patch new file mode 100644 index 0000000..fec9e68 --- /dev/null +++ b/debian/patches/uzip_528239.patch @@ -0,0 +1,25 @@ +Last-Update: 2012-02-28 +Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org> +Forwarded: not-needed +Bug-Debian: http://bugs.debian.org/528239 +Bug-Debian: http://bugs.debian.org/661467 +Author: Johannes Stezenbach <js@sig21.net> +Author: Yury V. Zaytsev <yury@shurup.com> +Description: Fix "fail to display zip file contents" after unzip update + This patch is quite important. mc set HAVE_ZIPINFO at build time + if 'unzip' package is available. If not, HAVE_ZIPINFO would be mistakenly + set to zero which will break run-time zip browsing. + This patch is to make sure the right value is used. + If this patch do not apply make sure 'unzip' is present in Build-Deps. + +--- a/src/vfs/extfs/helpers/uzip.in ++++ b/src/vfs/extfs/helpers/uzip.in +@@ -19,7 +19,7 @@ my $app_zip = "@ZIP@"; + # Location of the unzip program + my $app_unzip = "@UNZIP@"; + # Set this to 1 if zipinfo (unzip -Z) is to be used (recommended), otherwise 0. +-my $op_has_zipinfo = @HAVE_ZIPINFO@; ++my $op_has_zipinfo = 1; + + # Command used to list archives (zipinfo mode) + my $cmd_list_zi = "$app_unzip -Z -l -T"; |