Date: Sun, 16 Mar 2014 20:40:01 GMT From: "Schweigert, Udo" <Udo.Schweigert@siemens.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/187418: mail/mutt: Build failure - Unknown `--is-lightweight' option Message-ID: <201403162040.s2GKe1P2069780@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/187418; it has been noted by GNATS. From: "Schweigert, Udo" <Udo.Schweigert@siemens.com> To: bug-followup@freebsd.org, gjb@freebsd.org Cc: Udo Schweigert <Udo.Schweigert@siemens.com> Subject: Re: ports/187418: mail/mutt: Build failure - Unknown `--is-lightweight' option Date: Sun, 16 Mar 2014 21:34:46 +0100 OK, this is a problem related to clang as the new default compiler which needs "-Wl," as prefix for linker options. As I am on it: fix harmless warnings by removing an ancient autotools file from the distributed source. Here is a patch: diff -ru /usr/ports/mail/mutt/Makefile ./Makefile --- /usr/ports/mail/mutt/Makefile 2014-03-15 06:06:48.000000000 +0100 +++ ./Makefile 2014-03-16 20:19:00.910638000 +0100 @@ -52,7 +52,7 @@ .endif USE_AUTOTOOLS= automake autoconf -AUTOMAKE_ARGS= --add-missing +AUTOMAKE_ARGS= --add-missing --foreign USE_OPENSSL= yes .if defined (MUTT_LITE) @@ -267,18 +267,18 @@ .elif exists(${KRB5_HOME}/bin/krb5-config) LIB_DEPENDS+= libgssapi_krb5.so:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-gss=${KRB5_HOME} -LDFLAGS+= -L${KRB5_HOME}/lib -rpath=${KRB5_HOME}/lib -ltinfow +LDFLAGS+= -L${KRB5_HOME}/lib -Wl,-rpath=${KRB5_HOME}/lib -ltinfow .elif exists(${HEIMDAL_HOME}/bin/krb5-config) LIB_DEPENDS+= libgssapi_krb5.so:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-gss=${HEIMDAL_HOME} -LDFLAGS+= -L${HEIMDAL_HOME}/lib -rpath=${HEIMDAL_HOME}/lib -ltinfow +LDFLAGS+= -L${HEIMDAL_HOME}/lib -Wl,-rpath=${HEIMDAL_HOME}/lib -ltinfow .elif (defined(MAKE_KERBEROS5)) || exists(/usr/lib/libkrb5.a) CONFIGURE_ARGS+= --with-gss WITH_KRB5_SYS=YES .endif .endif -LDFLAGS+= -L${LOCALBASE}/lib -rpath=${LOCALBASE}/lib:/usr/lib -ltinfow +LDFLAGS+= -L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib:/usr/lib -ltinfow CFLAGS+= ${CFLAGS_ADD} LDFLAGS+= ${LDFLAGS_ADD} @@ -371,6 +371,7 @@ pre-configure:: @(cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I m4) + @${RM} -f ${WRKSRC}/missing .if defined(WITH_KRB5_SYS) @${ECHO_CMD} "#define HAVE_HEIMDAL" >> ${WRKSRC}/config.h.in @${REINPLACE_CMD} -e 's|<gssapi/gssapi\.h>|<gssapi.h>|' \ diff -ru /usr/ports/mail/mutt/files/patch-Makefile.am ./files/patch-Makefile.am --- /usr/ports/mail/mutt/files/patch-Makefile.am 2014-01-24 06:10:52.000000000 +0100 +++ ./files/patch-Makefile.am 2014-03-16 20:19:00.910638000 +0100 @@ -1,6 +1,15 @@ ---- Makefile.am.orig 2008-05-19 19:00:44.000000000 +0200 -+++ Makefile.am 2008-05-19 19:03:20.000000000 +0200 -@@ -136,10 +136,6 @@ +--- Makefile.am.orig 2014-03-12 17:03:44.000000000 +0100 ++++ Makefile.am 2014-03-16 17:22:07.000000000 +0100 +@@ -97,7 +97,7 @@ + + # If this fails, we will fall back to the implementation in txt2c.sh + txt2c: txt2c.c +- -$${NATIVECC-$(CC)} -o $@ $< ++ -$(CC) -o $@ $< + + conststrings.c: txt2c config.status + ( \ +@@ -162,10 +162,6 @@ install-data-local: $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403162040.s2GKe1P2069780>