From owner-svn-ports-all@freebsd.org Sun Sep 9 07:24:49 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38028108DB6C; Sun, 9 Sep 2018 07:24:49 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0BFF8A1D9; Sun, 9 Sep 2018 07:24:48 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DB9AE16A70; Sun, 9 Sep 2018 07:24:48 +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 w897OmZH019222; Sun, 9 Sep 2018 07:24:48 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w897Om9E019221; Sun, 9 Sep 2018 07:24:48 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201809090724.w897Om9E019221@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sun, 9 Sep 2018 07:24:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479277 - in head/devel/rudeconfig: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/devel/rudeconfig: . files X-SVN-Commit-Revision: 479277 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2018 07:24:49 -0000 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@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@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; + } +