Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2016 12:59:41 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424762 - in head/audio/taglookup: . files
Message-ID:  <201610271259.u9RCxfSK082877@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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<char> newbuf(onnn.new_name.begin(), onnn.new_name.end());
++            newbuf.push_back('\0');
++
++            std::vector<char> 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);



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