Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring
@ 2019-04-14  8:45 Fabrice Fontaine
  2019-04-14  8:46 ` [Buildroot] [PATCH 2/2] package/mutt: bump to version 1.11.4 Fabrice Fontaine
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2019-04-14  8:45 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/c9544b4f1a0252e260a2ed19218fa950f4dc2d2d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...-static-build-with-idn2-and-unistrin.patch | 37 +++++++++++++++++++
 package/mutt/mutt.mk                          |  2 +
 2 files changed, 39 insertions(+)
 create mode 100644 package/mutt/0001-configure.ac-fix-static-build-with-idn2-and-unistrin.patch

diff --git a/package/mutt/0001-configure.ac-fix-static-build-with-idn2-and-unistrin.patch b/package/mutt/0001-configure.ac-fix-static-build-with-idn2-and-unistrin.patch
new file mode 100644
index 0000000000..c802cbb365
--- /dev/null
+++ b/package/mutt/0001-configure.ac-fix-static-build-with-idn2-and-unistrin.patch
@@ -0,0 +1,37 @@
+From c53b36698fe4721fb562908ac6119aa9280383af Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 14 Apr 2019 10:22:12 +0200
+Subject: [PATCH] configure.ac: fix static build with idn2 and unistring
+
+Commit 78db40f25c6479b14da5a73adf7207bfbec5ccc5 did not fix static build
+failure
+
+AC_SEARCH_LIBS prepends the library to LIBS as a result -lunistring is
+added before -lidn2. To fix static build, we must set -lunistring after
+-lidn2
+
+Fixes:
+ - http://autobuild.buildroot.org/results/c9544b4f1a0252e260a2ed19218fa950f4dc2d2d
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://gitlab.com/muttmua/mutt/merge_requests/42]
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index bd8beb91..75943eee 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1402,7 +1402,7 @@ if test "x$with_idn2" != "xno"; then
+     AC_SEARCH_LIBS([idn2_check_version], [idn2], [
+       AC_DEFINE([HAVE_LIBIDN2], 1, [Define to 1 if you have the GNU idn2 library])
+       dnl -lunistring is needed for static linking
+-      AC_SEARCH_LIBS([u8_strconv_from_locale], [unistring])
++      AC_SEARCH_LIBS([u8_strconv_from_locale], [unistring], [LIBS="$LIBS -lunistring"])
+       MUTTLIBS="$MUTTLIBS $LIBS"
+ 
+       dnl libidn2 >= 2.0.0 declares compatibility macros in idn2.h
+-- 
+2.20.1
+
diff --git a/package/mutt/mutt.mk b/package/mutt/mutt.mk
index a336839cb7..5860e8430e 100644
--- a/package/mutt/mutt.mk
+++ b/package/mutt/mutt.mk
@@ -10,6 +10,8 @@ MUTT_LICENSE = GPL-2.0+
 MUTT_LICENSE_FILES = GPL
 MUTT_DEPENDENCIES = ncurses
 MUTT_CONF_OPTS = --disable-doc --disable-smtp
+# We're patching configure.ac
+MUTT_AUTORECONF = YES
 
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
 MUTT_DEPENDENCIES += libiconv
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/mutt: bump to version 1.11.4
  2019-04-14  8:45 [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring Fabrice Fontaine
@ 2019-04-14  8:46 ` Fabrice Fontaine
  2019-04-14 13:01 ` [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring Thomas Petazzoni
  2019-04-24 20:22 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2019-04-14  8:46 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/mutt/mutt.hash | 2 +-
 package/mutt/mutt.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/mutt/mutt.hash b/package/mutt/mutt.hash
index 476773c294..d0e2d2dd83 100644
--- a/package/mutt/mutt.hash
+++ b/package/mutt/mutt.hash
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 da5cd4c39f228914d3933d8cf3a017c8271fdd9b9d81c6e4fc42ad22e1a28723  mutt-1.11.2.tar.gz
+sha256 b651357ea6c8762178080493991c77ecb111d916d171d422500257ab48be2801  mutt-1.11.4.tar.gz
 sha256 732f24b69a6c71cd8e01e4672bb8e12cc1cbb88a50a4665e6ca4fd95000a57ee  GPL
diff --git a/package/mutt/mutt.mk b/package/mutt/mutt.mk
index 5860e8430e..613358abdd 100644
--- a/package/mutt/mutt.mk
+++ b/package/mutt/mutt.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MUTT_VERSION = 1.11.2
+MUTT_VERSION = 1.11.4
 MUTT_SITE = https://bitbucket.org/mutt/mutt/downloads
 MUTT_LICENSE = GPL-2.0+
 MUTT_LICENSE_FILES = GPL
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring
  2019-04-14  8:45 [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring Fabrice Fontaine
  2019-04-14  8:46 ` [Buildroot] [PATCH 2/2] package/mutt: bump to version 1.11.4 Fabrice Fontaine
@ 2019-04-14 13:01 ` Thomas Petazzoni
  2019-04-24 20:22 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2019-04-14 13:01 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 14 Apr 2019 10:45:59 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/c9544b4f1a0252e260a2ed19218fa950f4dc2d2d
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...-static-build-with-idn2-and-unistrin.patch | 37 +++++++++++++++++++
>  package/mutt/mutt.mk                          |  2 +
>  2 files changed, 39 insertions(+)
>  create mode 100644 package/mutt/0001-configure.ac-fix-static-build-with-idn2-and-unistrin.patch

Both applied, thanks! As usual, using pkg-config would have been better :-)

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring
  2019-04-14  8:45 [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring Fabrice Fontaine
  2019-04-14  8:46 ` [Buildroot] [PATCH 2/2] package/mutt: bump to version 1.11.4 Fabrice Fontaine
  2019-04-14 13:01 ` [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring Thomas Petazzoni
@ 2019-04-24 20:22 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2019-04-24 20:22 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fixes:
 >  - http://autobuild.buildroot.org/results/c9544b4f1a0252e260a2ed19218fa950f4dc2d2d

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2019.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-24 20:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-14  8:45 [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring Fabrice Fontaine
2019-04-14  8:46 ` [Buildroot] [PATCH 2/2] package/mutt: bump to version 1.11.4 Fabrice Fontaine
2019-04-14 13:01 ` [Buildroot] [PATCH 1/2] package/mutt: fix static build with idn2 and unistring Thomas Petazzoni
2019-04-24 20:22 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox