From owner-svn-ports-head@freebsd.org Sat Oct 14 06:01:54 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2059E3DFFC; Sat, 14 Oct 2017 06:01:54 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C0F864AAD; Sat, 14 Oct 2017 06:01:54 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9E61rco033853; Sat, 14 Oct 2017 06:01:53 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9E61r4g033848; Sat, 14 Oct 2017 06:01:53 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201710140601.v9E61r4g033848@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sat, 14 Oct 2017 06:01:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r452044 - in head/news/nget: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/news/nget: . files X-SVN-Commit-Revision: 452044 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2017 06:01:54 -0000 Author: tobik Date: Sat Oct 14 06:01:53 2017 New Revision: 452044 URL: https://svnweb.freebsd.org/changeset/ports/452044 Log: news/nget: Fix build with Clang and GCC > 4.8 - Remove GCC dependency since it now builds fine with Clang - Set WRKSRC directly instead of symlinking in post-extract Added: head/news/nget/files/patch-etree.cc (contents, props changed) head/news/nget/files/patch-getter.h (contents, props changed) head/news/nget/files/patch-par2_par2fileformat.h (contents, props changed) Modified: head/news/nget/Makefile head/news/nget/files/patch-cache.h Modified: head/news/nget/Makefile ============================================================================== --- head/news/nget/Makefile Sat Oct 14 05:59:19 2017 (r452043) +++ head/news/nget/Makefile Sat Oct 14 06:01:53 2017 (r452044) @@ -3,10 +3,10 @@ PORTNAME= nget PORTVERSION= 0.27.1 -PORTREVISION= 3 +DISTVERSIONSUFFIX= +uulib +PORTREVISION= 4 CATEGORIES= news MASTER_SITES= SF -DISTNAME= nget-${PORTVERSION}+uulib MAINTAINER= ports@FreeBSD.org COMMENT= Auto-resuming command line nntp file grabber @@ -15,14 +15,17 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING USES= gmake -# Fails to build with GCC 4.9, cf. PR 196913. -USE_GCC= 4.8 GNU_CONFIGURE= yes +# Skip check if the C++ compiler supports exceptions. We know both +# Clang and GCC do. The configure test fails on FreeBSD 10.3 because +# it passes -fhandle-exceptions to the compiler and Clang 3.4.1 does +# not know to ignore it yet. +CONFIGURE_ARGS= my_cv_exceptions=1 + OPTIONS_DEFINE= DOCS -post-extract: - @${LN} -s nget-${PORTVERSION} ${WRKDIR}/${DISTNAME} +WRKSRC= ${WRKDIR}/nget-${PORTVERSION} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/nget ${STAGEDIR}${PREFIX}/bin Modified: head/news/nget/files/patch-cache.h ============================================================================== --- head/news/nget/files/patch-cache.h Sat Oct 14 05:59:19 2017 (r452043) +++ head/news/nget/files/patch-cache.h Sat Oct 14 06:01:53 2017 (r452044) @@ -1,6 +1,6 @@ ---- cache.h 2004-05-29 16:00:08.000000000 -0700 -+++ cache.h 2005-09-22 22:37:43.000000000 -0700 -@@ -102,7 +102,7 @@ +--- cache.h.orig 2004-05-29 23:00:08 UTC ++++ cache.h +@@ -102,7 +102,7 @@ class c_nntp_server_article { ulong bytes,lines; c_nntp_server_article(ulong serverid,const c_group_info::ptr &group,ulong articlenum,ulong bytes,ulong lines); }; @@ -9,7 +9,7 @@ typedef pair t_real_server_article; typedef multimap > t_nntp_server_articles_prioritized; class c_nntp_part { -@@ -118,7 +118,7 @@ +@@ -118,7 +118,7 @@ class c_nntp_part { c_nntp_server_article *highest_sa=NULL; float highprio=-10000.0,f; for (;nsai!=articles.end();++nsai) { @@ -18,7 +18,7 @@ for (t_server_list_range servers = nconfig.getservers(sa->serverid); servers.first!=servers.second; ++servers.first) if ((f=nconfig.trustsizes->getserverpriority(servers.first->second)) > highprio){ highest_sa=sa; -@@ -137,7 +137,41 @@ +@@ -137,15 +137,49 @@ class c_nntp_part { }; @@ -30,7 +30,7 @@ + const_iterator i = lower_bound(partnum); + return (i != end() && (*i)->partnum == partnum); + } -+ + + c_nntp_part* part(int partnum) { + iterator i = lower_bound(partnum); + if (i != end() && (*i)->partnum == partnum) @@ -58,10 +58,10 @@ + return ((c_nntp_file_parts*)this)->lower_bound(partnum); + } +}; - ++ //#define FILEFLAG_READ 1 -@@ -145,7 +179,7 @@ + typedef map t_server_have_map; class c_nntp_file : public c_nntp_file_base, public c_refcounted{ public: @@ -70,7 +70,7 @@ int have; // ulong bytes,lines; ulong flags; -@@ -161,13 +195,13 @@ +@@ -161,13 +195,13 @@ class c_nntp_file : public c_nntp_file_base, public c_ bool iscomplete(void) const {return (have>=req) || maybe_a_textreply();} void get_server_have_map(t_server_have_map &have_map) const; // ulong banum(void){assert(!parts.empty());return (*parts.begin()).second->articlenum;} @@ -88,7 +88,16 @@ }\ return b;\ } -@@ -311,9 +345,9 @@ +@@ -228,7 +262,7 @@ class c_message_state : public c_refcounted, eqstr> t_message_state_list; ++typedef hash_map, eqstr> t_message_state_list; + #else + typedef map t_message_state_list; + #endif +@@ -311,9 +345,9 @@ class meta_mid_info { } void insert(const c_nntp_file::ptr &f){ const string &mid=f->bamid(); Added: head/news/nget/files/patch-etree.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/nget/files/patch-etree.cc Sat Oct 14 06:01:53 2017 (r452044) @@ -0,0 +1,22 @@ +https://github.com/Optware/Optware-ng/commit/cf5b5050c989fb4e969167d20e6b135ff2608a87 + +--- etree.cc.orig 2017-10-14 02:49:56 UTC ++++ etree.cc +@@ -79,7 +79,7 @@ pred *new_comparison(RetType (ClassType::*m + return new Comparison(member, v); + } + template