svn commit: r479277 - in head/devel/rudeconfig: . files

Tobias Kortkamp tobik at FreeBSD.org
Sun Sep 9 07:24:49 UTC 2018


Author: tobik
Date: Sun Sep  9 07:24:48 2018
New Revision: 479277
URL: https://svnweb.freebsd.org/changeset/ports/479277

Log:
  devel/rudeconfig: Fix build with Clang 6
  
  src/Base64Encoder.cpp:170:25: error: cast from pointer to smaller type 'char' loses information
        retval[outlength]=(char) NULL;
                          ^~~~~~~~~~~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/rudeconfig-5.0.5_2.log
  
  - Make sure all files use Unix line endings
  
  PR:		230920
  Submitted by:	tobik
  Approved by:	lowmaster at web.de (maintainer timeout, 2 weeks)

Added:
  head/devel/rudeconfig/files/
  head/devel/rudeconfig/files/patch-src_Base64Encoder.cpp   (contents, props changed)
Modified:
  head/devel/rudeconfig/Makefile

Modified: head/devel/rudeconfig/Makefile
==============================================================================
--- head/devel/rudeconfig/Makefile	Sun Sep  9 07:18:37 2018	(r479276)
+++ head/devel/rudeconfig/Makefile	Sun Sep  9 07:24:48 2018	(r479277)
@@ -3,14 +3,15 @@
 
 PORTNAME=	rudeconfig
 PORTVERSION=	5.0.5
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://www.rudeserver.com/config/download/
 
 MAINTAINER=	lowmaster at web.de
 COMMENT=	Library for handling configuration files, written in C++
 
-USES=		libtool
+USES=		dos2unix libtool
+DOS2UNIX_GLOB=	*
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 

Added: head/devel/rudeconfig/files/patch-src_Base64Encoder.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rudeconfig/files/patch-src_Base64Encoder.cpp	Sun Sep  9 07:24:48 2018	(r479277)
@@ -0,0 +1,15 @@
+src/Base64Encoder.cpp:170:25: error: cast from pointer to smaller type 'char' loses information
+      retval[outlength]=(char) NULL;
+                        ^~~~~~~~~~~
+
+--- src/Base64Encoder.cpp.orig	2018-08-26 19:38:04 UTC
++++ src/Base64Encoder.cpp
+@@ -167,7 +167,7 @@ char * Base64Encoder::encode(const char *data, int dat
+                   linelength=0;
+             }
+       };
+-      retval[outlength]=(char) NULL;
++      retval[outlength]='\0';
+       return retval;
+ }
+ 


More information about the svn-ports-head mailing list