Control: forwarded -1 
http://lists.gnu.org/archive/html/bug-mailutils/2016-06/msg00005.html

Here's an alternative patch which I submitted upstream. I had to change
it since gint is an external project that is pulled in as a submodule,
and thus cannot be patched upstream to refer to ../lib/gnu outside its
tree. Also tested on hurd-i386 (as well as no regressions on amd64).
This patch is against upstream's master, and is thus offset slightly
when applied, so it should be refreshed before being added to the
package.

Regards,
James
From 7a60e7c449ce46c4820ebe0c26f4d11bef66193a Mon Sep 17 00:00:00 2001
From: James Clarke <[email protected]>
Date: Tue, 28 Jun 2016 23:23:54 +0100
Subject: [PATCH] Add libgnu.la to GINT_LDADD if replacing strerror

If REPLACE_STRERROR is 1, clexer.l will try to use rpl_strerror, but
since it is not linked against gnulib, this gives an unresolved symbol
error.

* configure.ac: When building gint and strerror is to be replaced with
rpl_strerror, add libgnu.la to GINT_LDADD.
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index d473f80..7d7e4fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1174,6 +1174,9 @@ GINT_INIT([gint],[1.8 with-guile],
            LIBMU_SCM_DEPS='${MU_LIB_MBOX} ${MU_LIB_IMAP} ${MU_LIB_POP} ${MU_LIB_MH} ${MU_LIB_MAILDIR} ${MU_LIB_MAILER}'
            MU_GUILE_SIEVE_MOD_DIR='$(GUILE_SITE)/$(PACKAGE)/sieve-modules'
            GINT_INCLUDES='${MU_APP_COMMON_INCLUDES}'
+           if test $REPLACE_STRERROR = 1; then
+             GINT_LDADD='${top_builddir}/lib/gnu/libgnu.la'
+           fi
           ],[useguile=no])
 
 AM_CONDITIONAL([MU_COND_LIBMU_SCM],[test "$useguile" = "yes"])
-- 
2.8.1

Attachment: signature.asc
Description: PGP signature

Reply via email to