Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2018 12:43:27 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478308 - in head/security/doscan: . files
Message-ID:  <201808281243.w7SChR66021061@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Aug 28 12:43:27 2018
New Revision: 478308
URL: https://svnweb.freebsd.org/changeset/ports/478308

Log:
  security/doscan: Fix build with Clang 6
  
  src/event_queue.cc:161:43: error: invalid operands to binary expression
        ('basic_ostream<char, std::__1::char_traits<char> >' and 'std::__1::ostream'
        (aka 'basic_ostream<char>'))
      std::cerr << "No handlers installed." << std::cerr;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/doscan-0.3.3_1.log
  
  - Make sure the build respects CXXFLAGS

Added:
  head/security/doscan/files/patch-Makefile.in   (contents, props changed)
Modified:
  head/security/doscan/Makefile

Modified: head/security/doscan/Makefile
==============================================================================
--- head/security/doscan/Makefile	Tue Aug 28 12:27:27 2018	(r478307)
+++ head/security/doscan/Makefile	Tue Aug 28 12:43:27 2018	(r478308)
@@ -17,6 +17,7 @@ LIB_DEPENDS=	libpcre.so:devel/pcre
 
 GNU_CONFIGURE=	yes
 USES=		gmake
+USE_CXXSTD=	gnu++98
 
 PORTDOCS=	README
 PLIST_FILES=	bin/doscan man/man1/doscan.1.gz

Added: head/security/doscan/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/doscan/files/patch-Makefile.in	Tue Aug 28 12:43:27 2018	(r478308)
@@ -0,0 +1,17 @@
+--- Makefile.in.orig	2014-10-22 17:14:35 UTC
++++ Makefile.in
+@@ -85,12 +85,12 @@ stamp-dir :
+ 	echo timestamp > stamp-dir
+ 
+ src/%.o : $(srcdir)/src/%.cc
+-	$(CXX) $(CFLAGS) $(PCRE_CFLAGS) $(INCLUDES) \
++	$(CXX) $(CXXFLAGS) $(PCRE_CFLAGS) $(INCLUDES) \
+ 		-MMD -MF $(patsubst %.o,%.d, $@) \
+ 		-c -o $@ $<
+ 
+ src/%.o : src/%.cc
+-	$(CXX) $(CFLAGS) $(PCRE_CFLAGS) $(INCLUDES) \
++	$(CXX) $(CXXFLAGS) $(PCRE_CFLAGS) $(INCLUDES) \
+ 		-MMD -MF $(patsubst %.o,%.d, $@) \
+ 		-c -o $@ $<
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808281243.w7SChR66021061>