diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-03 16:17:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-03 16:17:22 +0000 |
commit | 4cd2370bed609c118b6edfde5d3f116e5c35b897 (patch) | |
tree | ec58f2c41f49754e41521d5ebc9dce4597ddd0a5 /media-libs/taglib | |
parent | f443475c824b4b5c086e6d040961cb35ad81bc60 (diff) |
gentoo resync : 03.12.2017
Diffstat (limited to 'media-libs/taglib')
6 files changed, 0 insertions, 340 deletions
diff --git a/media-libs/taglib/Manifest b/media-libs/taglib/Manifest index b41999398f56..35682631a8e3 100644 --- a/media-libs/taglib/Manifest +++ b/media-libs/taglib/Manifest @@ -1,10 +1,5 @@ AUX taglib-1.11-install-examples.patch 371 BLAKE2B ee42b80e8c6093dbfc4c89c25bcb6bd25e2f5152c14743fa49c6c44a14f93a961f08a4d53337efe0800d98126a8aa58627a330e19386283cc16d8f20c9637262 SHA512 149ce1256ec557ee1e896b56e361f2fcf69633424f9b125666827eda610e84c35bf28e5c3fe5f38d4d87f1eacf977fc5b8b8c2d9c6634997bfe4e4bac122fc37 AUX taglib-1.11.1-CVE-2017-12678.patch 1340 BLAKE2B 6940c22df9d4d7969253a8755e8050544d733e33cda8fbc1b4991ab94f879d052de31c140c468125b09859625eea84624d6c340f4385a45ee6ca30d8872a556b SHA512 2b5a8854572c572ebdc2e42cb949069d69ada82ba2bf632f08aadb7f603b86352e13a1da80c0e75a2fdeb5c15bd07aa71f558dba35ae098d61aba5e361c2acdf -AUX taglib-1.6.1-install-examples.patch 581 BLAKE2B 65bc122295b1c28a59a56db7bb9894ee0b6ad6a74083bd5417cd098d5b87f47b4437684a556db311859f6439996451046328e2ada3c43ab3259d62b970e778ff SHA512 8af5b52b33c82f0d4961ad3ef0cd72844f84f442db2638ba0187ba808257e7d0602bc5f9c643252c7217d3119b1dd5a6fbf5f84a364f72c1d9154812b14e383b -AUX taglib-1.9.1-abi-breakage.patch 3888 BLAKE2B 928c61111a3f45dfc6383bf53c3411cfb9ca6851401cd410231b97d4e7a60eb05616a8995e89d8b6e87cb48bf23a7a3cde2e8334ff4af7e529d44f2effecc0f6 SHA512 ec17447f97d83482fbf7fbafd99014344c638436fbadab2144a19679869603106e0f21cdfb738cf77743eb3230d244a81ed93d1bbf62efa1a8a3484d9e43e90b -AUX taglib-1.9.1-bytevector-simpler.patch 3685 BLAKE2B 38018145649747dbf8ffa44dd6eadc86a162d0bedba5d7ab1603cab9cab938efec2015b53841ecdb83b67dc8bf620c19d0052bf82bd19cd3ff130f2ce593b53f SHA512 1d19d40766e8cb74cb60d5b13fb509c56ee1b0d10f622bfea954bbaf2c5a4908c81e026dc07e83764034647818eb875c71a505a6e1425c9d03820d8e0a3a4a11 -AUX taglib-1.9.1-missing-deletes.patch 1194 BLAKE2B 4559e86ea704f16d58e0e5e671c6f35f2062febfa7287a7abfef1eace5fc49f42db2a79d4895b4f7f05a5ec202dfee39876d18ca326d59aef3d47276bfdddf23 SHA512 1cc2796401dc1291b19245bd9a6bde9d77549d7ddab96b99b8e0f95c331a1ba7296f7107bd99f6f789cd04dd412d6e330db099ab49344c4dd1a10ccfef203fd1 -AUX taglib-1.9.1-order-big-endian.patch 884 BLAKE2B 9382802fe5bb4d2cf20a5a075ffeb5200b2cec5acfe33eb68031a80b7a1718c7578fe9f091f29be61a13bc7a3ec3ee87f1a54033ab271c56f3cf98de74e71263 SHA512 4f2c751f03e976da64fc1480e369443d724c420198600ae1a5e9e9cab3172289c73d15b66ec0c95165da30e52dff1d956314fd71fb067e10a11c350566671bd3 DIST taglib-1.11.1.tar.gz 1261620 SHA256 b6d1a5a610aae6ff39d93de5efd0fdc787aa9e9dc1e7026fa4c961b26563526b SHA512 7846775c4954ea948fe4383e514ba7c11f55d038ee06b6ea5a0a1c1069044b348026e76b27aa4ba1c71539aa8143e1401fab39184cc6e915ba0ae2c06133cb98 WHIRLPOOL 243cafaf238303eb2dcdca415ced4dbfb49d4890ba4ad5baec25aff9175bc33e3a20835518d461be946805b7b438c50c86d3999dc98fa648d177ac32a4a0b062 EBUILD taglib-1.11.1-r1.ebuild 1394 BLAKE2B 513e615c8f6ed52923f922215e97367a82706cb905711697a554f8c5a780c747ffd0930d22d976233e3b77afe97d62c64c2c085ec1d1cd7fc4812416eb3e1843 SHA512 6dc269c47c6f869eb5f0e3e547e6d90f77fd7f81f7170bafe59824a4c1d75d6fab5e4c4fcfa22cea96fb6d8ddbf6da8e9acfe8a2089034484b0215f7f0cdcbac MISC metadata.xml 425 BLAKE2B 47fff2e6d248780975e5b7748de1cdce6f09d614b79ee055da57dc9062c7567f46864bc306bfabf17a7c61dbfca0d16df41d9c8a574a8fc220e359d41f247b1e SHA512 31bd061f371cc8f300a22c150b86ef163f0cdd1d5e6b1c0ef0652038a2a1a5372a2910e201df28a70cb57f87945636b1ad352858f75714f3889068f94391c4d0 diff --git a/media-libs/taglib/files/taglib-1.6.1-install-examples.patch b/media-libs/taglib/files/taglib-1.6.1-install-examples.patch deleted file mode 100644 index f53768175a32..000000000000 --- a/media-libs/taglib/files/taglib-1.6.1-install-examples.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -purN taglib-1.6.1.orig/examples/CMakeLists.txt taglib-1.6.1/examples/CMakeLists.txt ---- taglib-1.6.1.orig/examples/CMakeLists.txt 2009-09-09 14:16:38.000000000 -0400 -+++ taglib-1.6.1/examples/CMakeLists.txt 2009-12-14 18:47:33.405385063 -0500 -@@ -45,6 +45,12 @@ ADD_EXECUTABLE(strip-id3v1 strip-id3v1.c - - TARGET_LINK_LIBRARIES(strip-id3v1 tag ) - -+INSTALL(TARGETS -+ tagreader tagreader_c tagwriter framelist strip-id3v1 -+ LIBRARY DESTINATION ${LIB_INSTALL_DIR} -+ RUNTIME DESTINATION ${BIN_INSTALL_DIR} -+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR} -+) - - endif(BUILD_EXAMPLES) - diff --git a/media-libs/taglib/files/taglib-1.9.1-abi-breakage.patch b/media-libs/taglib/files/taglib-1.9.1-abi-breakage.patch deleted file mode 100644 index 930439fc8349..000000000000 --- a/media-libs/taglib/files/taglib-1.9.1-abi-breakage.patch +++ /dev/null @@ -1,107 +0,0 @@ -From 3bf30af66c8fd77a88d9379a0956ddb2fc70dc20 Mon Sep 17 00:00:00 2001 -From: Tsuda Kageyu <tsuda.kageyu@gmail.com> -Date: Wed, 6 Nov 2013 17:01:21 +0900 -Subject: [PATCH 2/6] Fixed ABI breakage in TagLib::String - ---- - taglib/toolkit/tstring.cpp | 20 ++++++++++++++++++-- - taglib/toolkit/tstring.h | 12 ++++++++++-- - tests/test_string.cpp | 14 ++++++++++++++ - 3 files changed, 42 insertions(+), 4 deletions(-) - -diff --git a/taglib/toolkit/tstring.cpp b/taglib/toolkit/tstring.cpp -index 75a9833..fb6e947 100644 ---- a/taglib/toolkit/tstring.cpp -+++ b/taglib/toolkit/tstring.cpp -@@ -209,8 +209,16 @@ String::String(const std::string &s, Type t) - String::String(const wstring &s, Type t) - : d(new StringPrivate()) - { -- if(t == UTF16 || t == UTF16BE || t == UTF16LE) -+ if(t == UTF16 || t == UTF16BE || t == UTF16LE) { -+ // This looks ugly but needed for the compatibility with TagLib1.8. -+ // Should be removed in TabLib2.0. -+ if (t == UTF16BE) -+ t = WCharByteOrder; -+ else if (t == UTF16LE) -+ t = (WCharByteOrder == UTF16LE ? UTF16BE : UTF16LE); -+ - copyFromUTF16(s.c_str(), s.length(), t); -+ } - else { - debug("String::String() -- A TagLib::wstring should not contain Latin1 or UTF-8."); - } -@@ -219,8 +227,16 @@ String::String(const wstring &s, Type t) - String::String(const wchar_t *s, Type t) - : d(new StringPrivate()) - { -- if(t == UTF16 || t == UTF16BE || t == UTF16LE) -+ if(t == UTF16 || t == UTF16BE || t == UTF16LE) { -+ // This looks ugly but needed for the compatibility with TagLib1.8. -+ // Should be removed in TabLib2.0. -+ if (t == UTF16BE) -+ t = WCharByteOrder; -+ else if (t == UTF16LE) -+ t = (WCharByteOrder == UTF16LE ? UTF16BE : UTF16LE); -+ - copyFromUTF16(s, ::wcslen(s), t); -+ } - else { - debug("String::String() -- A const wchar_t * should not contain Latin1 or UTF-8."); - } -diff --git a/taglib/toolkit/tstring.h b/taglib/toolkit/tstring.h -index 57945be..605b9c2 100644 ---- a/taglib/toolkit/tstring.h -+++ b/taglib/toolkit/tstring.h -@@ -134,13 +134,21 @@ namespace TagLib { - - /*! - * Makes a deep copy of the data in \a s. -+ * -+ * /note If \a t is UTF16LE, the byte order of \a s will be swapped regardless -+ * of the CPU byte order. If UTF16BE, it will not be swapped. This behavior -+ * will be changed in TagLib2.0. - */ -- String(const wstring &s, Type t = WCharByteOrder); -+ String(const wstring &s, Type t = UTF16BE); - - /*! - * Makes a deep copy of the data in \a s. -+ * -+ * /note If \a t is UTF16LE, the byte order of \a s will be swapped regardless -+ * of the CPU byte order. If UTF16BE, it will not be swapped. This behavior -+ * will be changed in TagLib2.0. - */ -- String(const wchar_t *s, Type t = WCharByteOrder); -+ String(const wchar_t *s, Type t = UTF16BE); - - /*! - * Makes a deep copy of the data in \a c. -diff --git a/tests/test_string.cpp b/tests/test_string.cpp -index a815a0b..9a574b3 100644 ---- a/tests/test_string.cpp -+++ b/tests/test_string.cpp -@@ -75,6 +75,20 @@ public: - String unicode3(L"\u65E5\u672C\u8A9E"); - CPPUNIT_ASSERT(*(unicode3.toCWString() + 1) == L'\u672C'); - -+ String unicode4(L"\u65e5\u672c\u8a9e", String::UTF16BE); -+ CPPUNIT_ASSERT(unicode4[1] == L'\u672c'); -+ -+ String unicode5(L"\u65e5\u672c\u8a9e", String::UTF16LE); -+ CPPUNIT_ASSERT(unicode5[1] == L'\u2c67'); -+ -+ wstring stduni = L"\u65e5\u672c\u8a9e"; -+ -+ String unicode6(stduni, String::UTF16BE); -+ CPPUNIT_ASSERT(unicode6[1] == L'\u672c'); -+ -+ String unicode7(stduni, String::UTF16LE); -+ CPPUNIT_ASSERT(unicode7[1] == L'\u2c67'); -+ - CPPUNIT_ASSERT(strcmp(String::number(0).toCString(), "0") == 0); - CPPUNIT_ASSERT(strcmp(String::number(12345678).toCString(), "12345678") == 0); - CPPUNIT_ASSERT(strcmp(String::number(-12345678).toCString(), "-12345678") == 0); --- -1.8.4.2 - diff --git a/media-libs/taglib/files/taglib-1.9.1-bytevector-simpler.patch b/media-libs/taglib/files/taglib-1.9.1-bytevector-simpler.patch deleted file mode 100644 index 0b134ec82215..000000000000 --- a/media-libs/taglib/files/taglib-1.9.1-bytevector-simpler.patch +++ /dev/null @@ -1,131 +0,0 @@ -From 4a7d31c87bf41c1de21cb725176d5b34c2a95720 Mon Sep 17 00:00:00 2001 -From: Tsuda Kageyu <tsuda.kageyu@gmail.com> -Date: Thu, 14 Nov 2013 14:05:32 +0900 -Subject: [PATCH 3/6] Rewrote ByteVector::replace() simpler - ---- - taglib/toolkit/tbytevector.cpp | 77 +++++++++++++++--------------------------- - tests/test_bytevector.cpp | 5 +++ - 2 files changed, 33 insertions(+), 49 deletions(-) - -diff --git a/taglib/toolkit/tbytevector.cpp b/taglib/toolkit/tbytevector.cpp -index b658246..566a20f 100644 ---- a/taglib/toolkit/tbytevector.cpp -+++ b/taglib/toolkit/tbytevector.cpp -@@ -31,6 +31,7 @@ - #include <iostream> - #include <cstdio> - #include <cstring> -+#include <cstddef> - - #include <tstring.h> - #include <tdebug.h> -@@ -508,62 +509,40 @@ ByteVector &ByteVector::replace(const ByteVector &pattern, const ByteVector &wit - if(pattern.size() == 0 || pattern.size() > size()) - return *this; - -- const uint withSize = with.size(); -- const uint patternSize = pattern.size(); -- int offset = 0; -+ const size_t withSize = with.size(); -+ const size_t patternSize = pattern.size(); -+ const ptrdiff_t diff = withSize - patternSize; -+ -+ size_t offset = 0; -+ while (true) -+ { -+ offset = find(pattern, offset); -+ if(offset == static_cast<size_t>(-1)) // Use npos in taglib2. -+ break; - -- if(withSize == patternSize) { -- // I think this case might be common enough to optimize it - detach(); -- offset = find(pattern); -- while(offset >= 0) { -- ::memcpy(data() + offset, with.data(), withSize); -- offset = find(pattern, offset + withSize); -- } -- return *this; -- } - -- // calculate new size: -- uint newSize = 0; -- for(;;) { -- int next = find(pattern, offset); -- if(next < 0) { -- if(offset == 0) -- // pattern not found, do nothing: -- return *this; -- newSize += size() - offset; -- break; -+ if(diff < 0) { -+ ::memmove( -+ data() + offset + withSize, -+ data() + offset + patternSize, -+ size() - offset - patternSize); -+ resize(size() + diff); - } -- newSize += (next - offset) + withSize; -- offset = next + patternSize; -- } -- -- // new private data of appropriate size: -- ByteVectorPrivate *newData = new ByteVectorPrivate(newSize, 0); -- char *target = DATA(newData); -- const char *source = data(); -- -- // copy modified data into new private data: -- offset = 0; -- for(;;) { -- int next = find(pattern, offset); -- if(next < 0) { -- ::memcpy(target, source + offset, size() - offset); -- break; -+ else if(diff > 0) { -+ resize(size() + diff); -+ ::memmove( -+ data() + offset + withSize, -+ data() + offset + patternSize, -+ size() - diff - offset - patternSize); - } -- int chunkSize = next - offset; -- ::memcpy(target, source + offset, chunkSize); -- target += chunkSize; -- ::memcpy(target, with.data(), withSize); -- target += withSize; -- offset += chunkSize + patternSize; -- } - -- // replace private data: -- if(d->deref()) -- delete d; -+ ::memcpy(data() + offset, with.data(), with.size()); - -- d = newData; -+ offset += withSize; -+ if(offset > size() - patternSize) -+ break; -+ } - - return *this; - } -diff --git a/tests/test_bytevector.cpp b/tests/test_bytevector.cpp -index 9efd23a..eca74f8 100644 ---- a/tests/test_bytevector.cpp -+++ b/tests/test_bytevector.cpp -@@ -239,6 +239,11 @@ public: - a.replace(ByteVector("ab"), ByteVector()); - CPPUNIT_ASSERT_EQUAL(ByteVector("cdf"), a); - } -+ { -+ ByteVector a("abcdabf"); -+ a.replace(ByteVector("bf"), ByteVector("x")); -+ CPPUNIT_ASSERT_EQUAL(ByteVector("abcdax"), a); -+ } - } - - }; --- -1.8.4.2 - diff --git a/media-libs/taglib/files/taglib-1.9.1-missing-deletes.patch b/media-libs/taglib/files/taglib-1.9.1-missing-deletes.patch deleted file mode 100644 index 9cdbdcf00fbd..000000000000 --- a/media-libs/taglib/files/taglib-1.9.1-missing-deletes.patch +++ /dev/null @@ -1,48 +0,0 @@ -From c14a3b5c3d0831f7c113d0cf95840c4671d9ebd4 Mon Sep 17 00:00:00 2001 -From: Tsuda Kageyu <tsuda.kageyu@gmail.com> -Date: Tue, 13 May 2014 20:07:02 +0900 -Subject: [PATCH] Added some missing deletes to test_flac.cpp. - ---- - tests/test_flac.cpp | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/tests/test_flac.cpp b/tests/test_flac.cpp -index caec715..364fb11 100644 ---- a/tests/test_flac.cpp -+++ b/tests/test_flac.cpp -@@ -91,6 +91,7 @@ public: - newpic->setData("JPEG data"); - f->addPicture(newpic); - f->save(); -+ delete f; - - f = new FLAC::File(newname.c_str()); - lst = f->pictureList(); -@@ -138,6 +139,7 @@ public: - f->removePictures(); - f->addPicture(newpic); - f->save(); -+ delete f; - - f = new FLAC::File(newname.c_str()); - lst = f->pictureList(); -@@ -165,6 +167,7 @@ public: - - f->removePictures(); - f->save(); -+ delete f; - - f = new FLAC::File(newname.c_str()); - lst = f->pictureList(); -@@ -185,6 +188,7 @@ public: - tag->setTitle("NEW TITLE 2"); - f->save(); - CPPUNIT_ASSERT_EQUAL(String("NEW TITLE 2"), tag->title()); -+ delete f; - - f = new FLAC::File(newname.c_str()); - tag = f->tag(); --- -1.9.0 - diff --git a/media-libs/taglib/files/taglib-1.9.1-order-big-endian.patch b/media-libs/taglib/files/taglib-1.9.1-order-big-endian.patch deleted file mode 100644 index 86d5201e54d4..000000000000 --- a/media-libs/taglib/files/taglib-1.9.1-order-big-endian.patch +++ /dev/null @@ -1,33 +0,0 @@ -From db3e961d1098d5efe57364f540f68a5996dc83c2 Mon Sep 17 00:00:00 2001 -From: Tsuda Kageyu <tsuda.kageyu@gmail.com> -Date: Tue, 13 May 2014 18:22:16 +0900 -Subject: [PATCH] Fixed a wrong byte order handling on big-endian machines. - ---- - taglib/toolkit/tstring.cpp | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/taglib/toolkit/tstring.cpp b/taglib/toolkit/tstring.cpp -index 603455a..1ec083b 100644 ---- a/taglib/toolkit/tstring.cpp -+++ b/taglib/toolkit/tstring.cpp -@@ -47,10 +47,14 @@ - - namespace - { -- - inline unsigned short combine(unsigned char c1, unsigned char c2) - { -- return (c1 << 8) | c2; -+ using namespace TagLib::Utils; -+ -+ if(SystemByteOrder == LittleEndian) -+ return (c1 << 8) | c2; -+ else -+ return (c2 << 8) | c1; - } - - void UTF16toUTF8(const wchar_t *src, size_t srcLength, char *dst, size_t dstLength) --- -1.9.0 - |