diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2018-01-20 23:06:41 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2018-01-20 23:06:41 +0000 |
commit | ebd334649f4511d67c0a58c2ba0c72529fee0221 (patch) | |
tree | c5911e0c17bd69aa0b9e453faf6951fd0de2d6cb /audio/libcoverart/files | |
parent | 1d745a68ea7e2b654f7ff06452e0fb36e4e7a289 (diff) | |
download | ports-ebd334649f4511d67c0a58c2ba0c72529fee0221.tar.gz ports-ebd334649f4511d67c0a58c2ba0c72529fee0221.zip |
Fix build with clang6 [1]
Use a different distfile that has a properly versioned directory. The checksum
has changed, but there are no file changes, only the WRKSRC has been renamed
from the confusing "libcoverart-{PROJECT_VERSION}" to "libcoverart-1.0.0".
Reported by: pkg-fallout [1]
Notes
Notes:
svn path=/head/; revision=459556
Diffstat (limited to 'audio/libcoverart/files')
-rw-r--r-- | audio/libcoverart/files/patch-src_xmlParser.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/libcoverart/files/patch-src_xmlParser.cpp b/audio/libcoverart/files/patch-src_xmlParser.cpp new file mode 100644 index 000000000000..f2a6a9deccd5 --- /dev/null +++ b/audio/libcoverart/files/patch-src_xmlParser.cpp @@ -0,0 +1,16 @@ +Fix build with clang6. +src/xmlParser.cpp:676:27: error: cast from pointer to smaller type 'char' loses information + lpszNew[cbData] = (XMLCHAR)NULL; + ^~~~~~~~~~~~~ + +--- src/xmlParser.cpp.orig 2018-01-20 21:39:55 UTC ++++ src/xmlParser.cpp +@@ -673,7 +673,7 @@ XMLSTR stringDup(XMLCSTR lpszData, int cbData) + if (lpszNew) + { + memcpy(lpszNew, lpszData, (cbData) * sizeof(XMLCHAR)); +- lpszNew[cbData] = (XMLCHAR)NULL; ++ lpszNew[cbData] = 0; + } + return lpszNew; + } |