diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-11-20 14:44:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-25 17:57:22 +0000 |
commit | 939be4d775a8ea6bbce8fc26c624036dde53d428 (patch) | |
tree | f3688f231cb12a3ab56221422276d1184676285a /meta/recipes-extended | |
parent | 2377924a157892779860a551508f2cdcf8c2a17b (diff) | |
download | poky-939be4d775a8ea6bbce8fc26c624036dde53d428.tar.gz |
mc: backport a patch to fix builds with latest gettext
(From OE-Core rev: be02c5ccfd575c731ba32765f2277023cc23cb5b)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/mc/files/0001-Ticket-3629-configure.ac-drop-bundled-gettext.patch | 110 | ||||
-rw-r--r-- | meta/recipes-extended/mc/mc_4.8.23.bb | 1 |
2 files changed, 111 insertions, 0 deletions
diff --git a/meta/recipes-extended/mc/files/0001-Ticket-3629-configure.ac-drop-bundled-gettext.patch b/meta/recipes-extended/mc/files/0001-Ticket-3629-configure.ac-drop-bundled-gettext.patch new file mode 100644 index 0000000000..8f357378d0 --- /dev/null +++ b/meta/recipes-extended/mc/files/0001-Ticket-3629-configure.ac-drop-bundled-gettext.patch | |||
@@ -0,0 +1,110 @@ | |||
1 | From 0d677a014a87b968d79eea2353ac4e342b0fd4ca Mon Sep 17 00:00:00 2001 | ||
2 | From: Sergei Trofimovich <slyfox@gentoo.org> | ||
3 | Date: Wed, 11 Sep 2019 22:58:18 +0100 | ||
4 | Subject: [PATCH] Ticket #3629: configure.ac: drop bundled gettext | ||
5 | |||
6 | Bundled libintl did not support linking to internal static | ||
7 | libraries (libmc in our case): directly specified static | ||
8 | libraries are not pulled by libtool and are not usable for | ||
9 | dynamic libraries as PIC-related flags are not passed for | ||
10 | compilation. | ||
11 | |||
12 | This renders bundled libintl library unusable. | ||
13 | |||
14 | The change drops libintl bundling support and always relies | ||
15 | on external libintl (or falls back to disabled NLS). | ||
16 | |||
17 | On a related note gettext-0.20 drops support for bundling | ||
18 | or libintl and this change will ease migration to newer version. | ||
19 | |||
20 | The change is tested on x86_64-gentoo-linux-musl: mc builds | ||
21 | and links all tests successfully. A few tests fail for lack | ||
22 | of NLS support. | ||
23 | |||
24 | Upstream-Status: Backport [https://github.com/MidnightCommander/mc/commit/f30e6ff283f4bc86177e4360de94dad794678395] | ||
25 | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> | ||
26 | Signed-off-by: Andrew Borodin <aborodin@vmail.ru> | ||
27 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
28 | --- | ||
29 | Makefile.am | 2 +- | ||
30 | configure.ac | 5 +++-- | ||
31 | doc/doxygen.cfg | 2 +- | ||
32 | lib/Makefile.am | 2 +- | ||
33 | m4.include/mc-i18n.m4 | 5 ----- | ||
34 | 5 files changed, 6 insertions(+), 10 deletions(-) | ||
35 | |||
36 | diff --git a/Makefile.am b/Makefile.am | ||
37 | index ac05a83..f86f6ed 100644 | ||
38 | --- a/Makefile.am | ||
39 | +++ b/Makefile.am | ||
40 | @@ -1,7 +1,7 @@ | ||
41 | ## Process this file with automake to create Makefile.in. | ||
42 | AUTOMAKE_OPTIONS = 1.5 | ||
43 | |||
44 | -SUBDIRS = intl po lib src doc contrib misc | ||
45 | +SUBDIRS = po lib src doc contrib misc | ||
46 | |||
47 | if HAVE_TESTS | ||
48 | SUBDIRS += tests | ||
49 | diff --git a/configure.ac b/configure.ac | ||
50 | index a1948f6..bbc9e71 100644 | ||
51 | --- a/configure.ac | ||
52 | +++ b/configure.ac | ||
53 | @@ -272,7 +272,9 @@ dnl ############################################################################ | ||
54 | dnl Internationalization | ||
55 | dnl ############################################################################ | ||
56 | |||
57 | -AM_GNU_GETTEXT([no-libtool], [need-ngettext]) | ||
58 | +AC_CHECK_FUNCS([setlocale]) | ||
59 | + | ||
60 | +AM_GNU_GETTEXT([external], [need-ngettext]) | ||
61 | AM_GNU_GETTEXT_VERSION([0.18.1]) | ||
62 | |||
63 | mc_I18N | ||
64 | @@ -680,7 +682,6 @@ doc/hlp/pl/Makefile | ||
65 | doc/hlp/ru/Makefile | ||
66 | doc/hlp/sr/Makefile | ||
67 | |||
68 | -intl/Makefile | ||
69 | po/Makefile.in | ||
70 | ]) | ||
71 | |||
72 | diff --git a/doc/doxygen.cfg b/doc/doxygen.cfg | ||
73 | index 07bc973..1118062 100644 | ||
74 | --- a/doc/doxygen.cfg | ||
75 | +++ b/doc/doxygen.cfg | ||
76 | @@ -91,7 +91,7 @@ FILE_PATTERNS = *.c \ | ||
77 | RECURSIVE = YES | ||
78 | EXCLUDE = | ||
79 | EXCLUDE_SYMLINKS = NO | ||
80 | -EXCLUDE_PATTERNS = */intl/* */tests/* */.git/* | ||
81 | +EXCLUDE_PATTERNS = */tests/* */.git/* | ||
82 | EXCLUDE_SYMBOLS = | ||
83 | EXAMPLE_PATH = $(SRCDIR) | ||
84 | EXAMPLE_PATTERNS = | ||
85 | diff --git a/lib/Makefile.am b/lib/Makefile.am | ||
86 | index c448e2d..455f9dd 100644 | ||
87 | --- a/lib/Makefile.am | ||
88 | +++ b/lib/Makefile.am | ||
89 | @@ -74,4 +74,4 @@ else | ||
90 | libmc_la_LIBADD += $(GLIB_LIBS) | ||
91 | endif | ||
92 | |||
93 | -libmc_la_LIBADD += $(PCRE_LIBS) $(LIBICONV) $(LIBINTL) | ||
94 | +libmc_la_LIBADD += $(PCRE_LIBS) | ||
95 | diff --git a/m4.include/mc-i18n.m4 b/m4.include/mc-i18n.m4 | ||
96 | index dd10d00..ec08324 100644 | ||
97 | --- a/m4.include/mc-i18n.m4 | ||
98 | +++ b/m4.include/mc-i18n.m4 | ||
99 | @@ -8,11 +8,6 @@ dnl @license GPL | ||
100 | dnl @copyright Free Software Foundation, Inc. | ||
101 | |||
102 | AC_DEFUN([mc_I18N],[ | ||
103 | - | ||
104 | - if test "x$USE_INCLUDED_LIBINTL" = xyes; then | ||
105 | - CPPFLAGS="$CPPFLAGS -I\$(top_builddir)/intl -I\$(top_srcdir)/intl" | ||
106 | - fi | ||
107 | - | ||
108 | dnl User visible support for charset conversion. | ||
109 | AC_ARG_ENABLE([charset], | ||
110 | AS_HELP_STRING([--enable-charset], [Support for charset selection and conversion @<:@yes@:>@])) | ||
diff --git a/meta/recipes-extended/mc/mc_4.8.23.bb b/meta/recipes-extended/mc/mc_4.8.23.bb index 71f61b4848..ac40e56183 100644 --- a/meta/recipes-extended/mc/mc_4.8.23.bb +++ b/meta/recipes-extended/mc/mc_4.8.23.bb | |||
@@ -9,6 +9,7 @@ RDEPENDS_${PN} = "ncurses-terminfo" | |||
9 | SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \ | 9 | SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \ |
10 | file://0001-mc-replace-perl-w-with-use-warnings.patch \ | 10 | file://0001-mc-replace-perl-w-with-use-warnings.patch \ |
11 | file://0001-Add-option-to-control-configure-args.patch \ | 11 | file://0001-Add-option-to-control-configure-args.patch \ |
12 | file://0001-Ticket-3629-configure.ac-drop-bundled-gettext.patch \ | ||
12 | " | 13 | " |
13 | SRC_URI[md5sum] = "152927ac29cf0e61d7d019f261bb7d89" | 14 | SRC_URI[md5sum] = "152927ac29cf0e61d7d019f261bb7d89" |
14 | SRC_URI[sha256sum] = "238c4552545dcf3065359bd50753abbb150c1b22ec5a36eaa02c82808293267d" | 15 | SRC_URI[sha256sum] = "238c4552545dcf3065359bd50753abbb150c1b22ec5a36eaa02c82808293267d" |