svn commit: r478052 - head/sysutils/rfstool

Tobias Kortkamp tobik at FreeBSD.org
Sat Aug 25 15:43:16 UTC 2018


Author: tobik
Date: Sat Aug 25 15:43:15 2018
New Revision: 478052
URL: https://svnweb.freebsd.org/changeset/ports/478052

Log:
  sysutils/rfstool: Fix build with Clang 6
  
  reiserfs.cpp:770:23: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
                          printf("File %s (%"FMT_QWORD" Bytes)\n", (const char*) strLocalPath, pFile->m_stat.sd_size );
                                             ^
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/rfstool-0.14.log
  
  - Make sure the build respects CXXFLAGS

Modified:
  head/sysutils/rfstool/Makefile

Modified: head/sysutils/rfstool/Makefile
==============================================================================
--- head/sysutils/rfstool/Makefile	Sat Aug 25 15:31:48 2018	(r478051)
+++ head/sysutils/rfstool/Makefile	Sat Aug 25 15:43:15 2018	(r478052)
@@ -12,12 +12,13 @@ COMMENT=	Read from a Reiser file system
 
 PLIST_FILES=	bin/rfstool
 USES=		dos2unix zip
+USE_CXXSTD=	c++98
 DOS2UNIX_FILES=	reiserfs.h
 WRKSRC=		${WRKDIR}/rfstool-0.14/RFSTOOL
 MAKEFILE=	makefile.gcc3x
 
 post-extract:
-	@${REINPLACE_CMD} -e "s,g++,\$${CXX},g" ${WRKSRC}/${MAKEFILE}
+	@${REINPLACE_CMD} -e "s,g++,\$${CXX} \$${CXXFLAGS},g" ${WRKSRC}/${MAKEFILE}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/rfstool ${STAGEDIR}${PREFIX}/bin


More information about the svn-ports-all mailing list