summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mc')
-rw-r--r--meta/recipes-extended/mc/files/0001-mc-replace-perl-w-with-use-warnings.patch129
-rw-r--r--meta/recipes-extended/mc/files/nomandate.patch25
-rw-r--r--meta/recipes-extended/mc/mc_4.8.26.bb54
-rw-r--r--meta/recipes-extended/mc/mc_4.8.31.bb57
4 files changed, 75 insertions, 190 deletions
diff --git a/meta/recipes-extended/mc/files/0001-mc-replace-perl-w-with-use-warnings.patch b/meta/recipes-extended/mc/files/0001-mc-replace-perl-w-with-use-warnings.patch
deleted file mode 100644
index bf8037cd28..0000000000
--- a/meta/recipes-extended/mc/files/0001-mc-replace-perl-w-with-use-warnings.patch
+++ /dev/null
@@ -1,129 +0,0 @@
1From cdc7c278212ae836eecb4cc9d42c29443cc128a0 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Thu, 6 Apr 2017 02:24:28 -0700
4Subject: [PATCH] mc: replace "perl -w" with "use warnings"
5
6The shebang's max length is usually 128 as defined in
7/usr/include/linux/binfmts.h:
8 #define BINPRM_BUF_SIZE 128
9
10There would be errors when @PERL@ is longer than 128, use
11'/usr/bin/env perl' can fix the problem, but '/usr/bin/env perl -w'
12doesn't work:
13
14/usr/bin/env: perl -w: No such file or directory
15
16So replace "perl -w" with "use warnings" to make it work.
17
18The man2hlp.in already has "use warnings;", so just remove '-w' is OK.
19
20Upstream-Status: Pending
21
22Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
23---
24 src/man2hlp/man2hlp.in | 2 +-
25 src/vfs/extfs/helpers/a+.in | 4 +++-
26 src/vfs/extfs/helpers/mailfs.in | 3 ++-
27 src/vfs/extfs/helpers/patchfs.in | 3 ++-
28 src/vfs/extfs/helpers/ulib.in | 4 +++-
29 src/vfs/extfs/helpers/uzip.in | 3 ++-
30 6 files changed, 13 insertions(+), 6 deletions(-)
31
32diff --git a/src/man2hlp/man2hlp.in b/src/man2hlp/man2hlp.in
33index f095830..558a674 100644
34--- a/src/man2hlp/man2hlp.in
35+++ b/src/man2hlp/man2hlp.in
36@@ -1,4 +1,4 @@
37-#! @PERL@ -w
38+#! @PERL@
39 #
40 # Man page to help file converter
41 # Copyright (C) 1994, 1995, 1998, 2000, 2001, 2002, 2003, 2004, 2005,
42diff --git a/src/vfs/extfs/helpers/a+.in b/src/vfs/extfs/helpers/a+.in
43index 579441c..fe446f4 100644
44--- a/src/vfs/extfs/helpers/a+.in
45+++ b/src/vfs/extfs/helpers/a+.in
46@@ -1,4 +1,4 @@
47-#! @PERL@ -w
48+#! @PERL@
49 #
50 # External filesystem for mc, using mtools
51 # Written Ludek Brukner <lubr@barco.cz>, 1997
52@@ -9,6 +9,8 @@
53
54 # These mtools components must be in PATH for this to work
55
56+use warnings;
57+
58 sub quote {
59 $_ = shift(@_);
60 s/([^\w\/.+-])/\\$1/g;
61diff --git a/src/vfs/extfs/helpers/mailfs.in b/src/vfs/extfs/helpers/mailfs.in
62index e9455be..059f41f 100644
63--- a/src/vfs/extfs/helpers/mailfs.in
64+++ b/src/vfs/extfs/helpers/mailfs.in
65@@ -1,6 +1,7 @@
66-#! @PERL@ -w
67+#! @PERL@
68
69 use bytes;
70+use warnings;
71
72 # MC extfs for (possibly compressed) Berkeley style mailbox files
73 # Peter Daum <gator@cs.tu-berlin.de> (Jan 1998, mc-4.1.24)
74diff --git a/src/vfs/extfs/helpers/patchfs.in b/src/vfs/extfs/helpers/patchfs.in
75index ef407de..3ad4b53 100644
76--- a/src/vfs/extfs/helpers/patchfs.in
77+++ b/src/vfs/extfs/helpers/patchfs.in
78@@ -1,4 +1,4 @@
79-#! @PERL@ -w
80+#! @PERL@
81 #
82 # Written by Adam Byrtek <alpha@debian.org>, 2002
83 # Rewritten by David Sterba <dave@jikos.cz>, 2009
84@@ -9,6 +9,7 @@
85
86 use bytes;
87 use strict;
88+use warnings;
89 use POSIX;
90 use File::Temp 'tempfile';
91
92diff --git a/src/vfs/extfs/helpers/ulib.in b/src/vfs/extfs/helpers/ulib.in
93index 418611f..82c7ccf 100644
94--- a/src/vfs/extfs/helpers/ulib.in
95+++ b/src/vfs/extfs/helpers/ulib.in
96@@ -1,9 +1,11 @@
97-#! @PERL@ -w
98+#! @PERL@
99 #
100 # VFS to manage the gputils archives.
101 # Written by Molnár Károly (proton7@freemail.hu) 2012
102 #
103
104+use warnings;
105+
106 my %month = ('jan' => '01', 'feb' => '02', 'mar' => '03',
107 'apr' => '04', 'may' => '05', 'jun' => '06',
108 'jul' => '07', 'aug' => '08', 'sep' => '09',
109diff --git a/src/vfs/extfs/helpers/uzip.in b/src/vfs/extfs/helpers/uzip.in
110index b1c4f90..c8eb335 100644
111--- a/src/vfs/extfs/helpers/uzip.in
112+++ b/src/vfs/extfs/helpers/uzip.in
113@@ -1,4 +1,4 @@
114-#! @PERL@ -w
115+#! @PERL@
116 #
117 # zip file archive Virtual File System for Midnight Commander
118 # Version 1.4.0 (2001-08-07).
119@@ -9,6 +9,7 @@
120 use POSIX;
121 use File::Basename;
122 use strict;
123+use warnings;
124
125 #
126 # Configuration options
127--
1282.10.2
129
diff --git a/meta/recipes-extended/mc/files/nomandate.patch b/meta/recipes-extended/mc/files/nomandate.patch
index 48bd73b110..92fa443865 100644
--- a/meta/recipes-extended/mc/files/nomandate.patch
+++ b/meta/recipes-extended/mc/files/nomandate.patch
@@ -1,21 +1,32 @@
1From 78c5fd90a052f95157b3914c708a08b2eeab0154 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Tue, 4 Feb 2020 18:12:15 +0000
4Subject: [PATCH] mc: Fix manpage date indeterminism
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
1The man page date can vary depending upon the host perl, e.g. in Russian 9The man page date can vary depending upon the host perl, e.g. in Russian
2some versions print 'июня', others 'Июнь' or Polish 'czerwca' or 'czerwiec'. 10some versions print 'июня', others 'Июнь' or Polish 'czerwca' or 'czerwiec'.
3Rather than depend upon perl-native to fix this, just remove the date from 11Rather than depend upon perl-native to fix this, just remove the date from
4the manpages. 12the manpages.
5 13
6RP 2020/2/4 14RP 2020/2/4
7 15
8Upstream-Status: Inappropriate [OE specficic reproducibility workaround] 16Upstream-Status: Inappropriate [OE specficic reproducibility workaround]
9Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 17Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18---
19 doc/man/date-of-man-include.am | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
10 21
11Index: mc-4.8.23/doc/man/date-of-man-include.am 22diff --git a/doc/man/date-of-man-include.am b/doc/man/date-of-man-include.am
12=================================================================== 23index 96f9f10..d734c5d 100644
13--- mc-4.8.23.orig/doc/man/date-of-man-include.am 24--- a/doc/man/date-of-man-include.am
14+++ mc-4.8.23/doc/man/date-of-man-include.am 25+++ b/doc/man/date-of-man-include.am
15@@ -1,5 +1,5 @@ 26@@ -1,5 +1,5 @@
16 SED_PARAMETERS = \ 27 SED_PARAMETERS = \
17- -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ 28- -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \
18+ -e "s/%DATE_OF_MAN_PAGE%//g" \ 29+ -e "s/%DATE_OF_MAN_PAGE%//g" \
19 -e "s/%DISTR_VERSION%/@DISTR_VERSION@/g" \ 30 -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \
20 -e "s{%prefix%{@prefix@{g" \
21 -e "s{%sysconfdir%{@sysconfdir@{g" \ 31 -e "s{%sysconfdir%{@sysconfdir@{g" \
32 -e "s{%libexecdir%{@libexecdir@{g" \
diff --git a/meta/recipes-extended/mc/mc_4.8.26.bb b/meta/recipes-extended/mc/mc_4.8.26.bb
deleted file mode 100644
index 3eb19309b7..0000000000
--- a/meta/recipes-extended/mc/mc_4.8.26.bb
+++ /dev/null
@@ -1,54 +0,0 @@
1SUMMARY = "Midnight Commander is an ncurses based file manager"
2HOMEPAGE = "http://www.midnight-commander.org/"
3LICENSE = "GPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=270bbafe360e73f9840bd7981621f9c2"
5SECTION = "console/utils"
6DEPENDS = "ncurses glib-2.0 util-linux"
7RDEPENDS_${PN} = "ncurses-terminfo-base"
8RRECOMMENDS_${PN} = "ncurses-terminfo"
9
10SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \
11 file://0001-mc-replace-perl-w-with-use-warnings.patch \
12 file://nomandate.patch \
13 "
14SRC_URI[sha256sum] = "9d6358d0a351a455a1410aab57f33b6b48b0fcf31344b9a10b0ff497595979d1"
15
16inherit autotools gettext pkgconfig
17
18#
19# Both Samba (smb) and sftp require package delivered from meta-openembedded
20#
21PACKAGECONFIG ??= ""
22PACKAGECONFIG[smb] = "--enable-vfs-smb,--disable-vfs-smb,samba,"
23PACKAGECONFIG[sftp] = "--enable-vfs-sftp,--disable-vfs-sftp,libssh2,"
24
25CFLAGS_append_libc-musl = ' -DNCURSES_WIDECHAR=1 '
26EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x --disable-configure-args"
27
28CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'"
29CACHED_CONFIGUREVARS += "ac_cv_path_PYTHON='/usr/bin/env python'"
30CACHED_CONFIGUREVARS += "ac_cv_path_GREP='/usr/bin/env grep'"
31CACHED_CONFIGUREVARS += "mc_cv_have_zipinfo=yes"
32
33do_install_append () {
34 sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/*
35
36 rm ${D}${libexecdir}/mc/extfs.d/s3+ ${D}${libexecdir}/mc/extfs.d/uc1541
37}
38
39PACKAGES =+ "${BPN}-helpers-perl ${BPN}-helpers ${BPN}-fish"
40
41SUMMARY_${BPN}-helpers-perl = "Midnight Commander Perl-based helper scripts"
42FILES_${BPN}-helpers-perl = "${libexecdir}/mc/extfs.d/a+ ${libexecdir}/mc/extfs.d/apt+ \
43 ${libexecdir}/mc/extfs.d/deb ${libexecdir}/mc/extfs.d/deba \
44 ${libexecdir}/mc/extfs.d/debd ${libexecdir}/mc/extfs.d/dpkg+ \
45 ${libexecdir}/mc/extfs.d/mailfs ${libexecdir}/mc/extfs.d/patchfs \
46 ${libexecdir}/mc/extfs.d/rpms+ ${libexecdir}/mc/extfs.d/ulib \
47 ${libexecdir}/mc/extfs.d/uzip"
48RDEPENDS_${BPN}-helpers-perl = "perl"
49
50SUMMARY_${BPN}-helpers = "Midnight Commander shell helper scripts"
51FILES_${BPN}-helpers = "${libexecdir}/mc/extfs.d/* ${libexecdir}/mc/ext.d/*"
52
53SUMMARY_${BPN}-fish = "Midnight Commander Fish scripts"
54FILES_${BPN}-fish = "${libexecdir}/mc/fish"
diff --git a/meta/recipes-extended/mc/mc_4.8.31.bb b/meta/recipes-extended/mc/mc_4.8.31.bb
new file mode 100644
index 0000000000..69c32887a2
--- /dev/null
+++ b/meta/recipes-extended/mc/mc_4.8.31.bb
@@ -0,0 +1,57 @@
1SUMMARY = "Midnight Commander is an ncurses based file manager"
2HOMEPAGE = "http://www.midnight-commander.org/"
3DESCRIPTION = "GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included."
4LICENSE = "GPL-3.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=270bbafe360e73f9840bd7981621f9c2"
6SECTION = "console/utils"
7DEPENDS = "ncurses glib-2.0 util-linux file-replacement-native"
8RDEPENDS:${PN} = "ncurses-terminfo-base"
9RRECOMMENDS:${PN} = "ncurses-terminfo"
10
11SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \
12 file://nomandate.patch \
13 "
14SRC_URI[sha256sum] = "f42f4114ed42f6cf9995f1d896fa6c797ccb36dac57760dda8dd9f78ac462841"
15
16inherit autotools gettext pkgconfig
17
18#
19# Both Samba (smb) and sftp require package delivered from meta-openembedded
20#
21PACKAGECONFIG ??= ""
22PACKAGECONFIG[sftp] = "--enable-vfs-sftp,--disable-vfs-sftp,libssh2,"
23
24# enable NCURSES_WIDECHAR=1 only if ENABLE_WIDEC has not been explicitly disabled (e.g. by the distro config).
25# When compiling against the ncurses library, NCURSES_WIDECHAR needs to explicitly set to 0 in this case.
26CFLAGS:append:libc-musl = "${@' -DNCURSES_WIDECHAR=1' if bb.utils.to_boolean((d.getVar('ENABLE_WIDEC') or 'True')) else ' -DNCURSES_WIDECHAR=0'}"
27EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x --disable-configure-args"
28EXTRANATIVEPATH += "file-native"
29
30CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'"
31CACHED_CONFIGUREVARS += "ac_cv_path_PERL_FOR_BUILD='/usr/bin/env perl'"
32CACHED_CONFIGUREVARS += "ac_cv_path_PYTHON='/usr/bin/env python'"
33CACHED_CONFIGUREVARS += "ac_cv_path_GREP='/usr/bin/env grep'"
34CACHED_CONFIGUREVARS += "mc_cv_have_zipinfo=yes"
35
36do_install:append () {
37 sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/*
38
39 rm ${D}${libexecdir}/mc/extfs.d/s3+ ${D}${libexecdir}/mc/extfs.d/uc1541
40}
41
42PACKAGES =+ "${BPN}-helpers-perl ${BPN}-helpers ${BPN}-shell"
43
44SUMMARY:${BPN}-helpers-perl = "Midnight Commander Perl-based helper scripts"
45FILES:${BPN}-helpers-perl = "${libexecdir}/mc/extfs.d/a+ ${libexecdir}/mc/extfs.d/apt+ \
46 ${libexecdir}/mc/extfs.d/deb ${libexecdir}/mc/extfs.d/deba \
47 ${libexecdir}/mc/extfs.d/debd ${libexecdir}/mc/extfs.d/dpkg+ \
48 ${libexecdir}/mc/extfs.d/mailfs ${libexecdir}/mc/extfs.d/patchfs \
49 ${libexecdir}/mc/extfs.d/rpms+ ${libexecdir}/mc/extfs.d/ulib \
50 ${libexecdir}/mc/extfs.d/uzip"
51RDEPENDS:${BPN}-helpers-perl = "perl"
52
53SUMMARY:${BPN}-helpers = "Midnight Commander shell helper scripts"
54FILES:${BPN}-helpers = "${libexecdir}/mc/extfs.d/* ${libexecdir}/mc/ext.d/*"
55
56SUMMARY:${BPN}-shell = "Midnight Commander Shell scripts"
57FILES:${BPN}-shell = "${libexecdir}/mc/shell"