Date: Sun, 31 Jul 2016 15:19:15 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r419391 - head/news/cnews Message-ID: <201607311519.u6VFJF5J016479@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Sun Jul 31 15:19:15 2016 New Revision: 419391 URL: https://svnweb.freebsd.org/changeset/ports/419391 Log: Fix build with clang and getline(3) The getline(3) failure was hidden by the fact the port was said to build with gcc from ports which occulted the getline(3) change because it bundles the system headers from when it was built (WTF???) Adding -Wno-return-type to cflags allows to build with clang Modified: head/news/cnews/Makefile Modified: head/news/cnews/Makefile ============================================================================== --- head/news/cnews/Makefile Sun Jul 31 15:15:43 2016 (r419390) +++ head/news/cnews/Makefile Sun Jul 31 15:19:15 2016 (r419391) @@ -3,7 +3,7 @@ PORTNAME= cnews PORTVERSION= cr.g -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= news MASTER_SITES= ftp://ftp.cs.toronto.edu/pub/c-news/ \ ftp://ftp.funet.fi/pub/unix/news/cnews/ \ @@ -38,7 +38,7 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT MAKE_JOBS_UNSAFE= yes USES= tar:Z -USE_GCC= any +CFLAGS+= -Wno-return-type DIST_SUBDIR= ${DISTNAME} NO_WRKSUBDIR= yes @@ -94,6 +94,10 @@ pre-patch: ${DISTDIR}/${DIST_SUBDIR}/${PGPVERIFY} \ > ${WRKSRC}/${PGPVERIFY} +post-patch: + @${REINPLACE_CMD} -e 's/getline/get_line/g' ${WRKSRC}/readnews/active.c \ + ${WRKSRC}/readnews/newsrc.c + pre-configure: .for i in conf/quiz.def conf/substitutions include/config.make ${REINPLACE_CMD} \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607311519.u6VFJF5J016479>