From owner-svn-ports-head@freebsd.org Thu Oct 27 12:59:42 2016 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 9B7B8C22A64; Thu, 27 Oct 2016 12:59:42 +0000 (UTC) (envelope-from amdmi3@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 529EDBD0; Thu, 27 Oct 2016 12:59:42 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9RCxf4O082879; Thu, 27 Oct 2016 12:59:41 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9RCxfSK082877; Thu, 27 Oct 2016 12:59:41 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201610271259.u9RCxfSK082877@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 27 Oct 2016 12:59:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424762 - in head/audio/taglookup: . files X-SVN-Group: ports-head 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: Thu, 27 Oct 2016 12:59:42 -0000 Author: amdmi3 Date: Thu Oct 27 12:59:41 2016 New Revision: 424762 URL: https://svnweb.freebsd.org/changeset/ports/424762 Log: - Add LICENSE - Fix build on 12.x (where dirname(3), basename(3) now take char* instead of const char*) Approved by: portmgr blanket Modified: head/audio/taglookup/Makefile head/audio/taglookup/files/patch-tag.cpp Modified: head/audio/taglookup/Makefile ============================================================================== --- head/audio/taglookup/Makefile Thu Oct 27 12:53:12 2016 (r424761) +++ head/audio/taglookup/Makefile Thu Oct 27 12:59:41 2016 (r424762) @@ -10,6 +10,9 @@ MASTER_SITES= http://www.kamaz.org.uk/ta MAINTAINER= alex@kamaz.org.uk COMMENT= Utility for tagging groups of audio files using CDDB +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + LIB_DEPENDS= libcddb.so:audio/libcddb \ libtag.so:audio/taglib Modified: head/audio/taglookup/files/patch-tag.cpp ============================================================================== --- head/audio/taglookup/files/patch-tag.cpp Thu Oct 27 12:53:12 2016 (r424761) +++ head/audio/taglookup/files/patch-tag.cpp Thu Oct 27 12:59:41 2016 (r424762) @@ -31,3 +31,20 @@ return true; else return false; +@@ -261,8 +262,14 @@ namespace TagLookup + + void operator() (const OldNameNewName &onnn) + { +- std::string new_base(basename(onnn.new_name.c_str())); +- std::string new_path(dirname(onnn.old_name.c_str())); ++ std::vector newbuf(onnn.new_name.begin(), onnn.new_name.end()); ++ newbuf.push_back('\0'); ++ ++ std::vector oldbuf(onnn.old_name.begin(), onnn.old_name.end()); ++ oldbuf.push_back('\0'); ++ ++ std::string new_base(basename(newbuf.data())); ++ std::string new_path(dirname(oldbuf.data())); + + new_path.append("/"); + new_path.append(new_base);