From db28113b9ada0e68d40f318292d3f69d8db8198e Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 31 Oct 2016 08:32:26 +0100 Subject: [PATCH] ncmpcpp: fix 32bit platforms --- srcpkgs/ncmpcpp/patches/fix-32bit.patch | 11 +++++++++++ srcpkgs/ncmpcpp/template | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ncmpcpp/patches/fix-32bit.patch diff --git a/srcpkgs/ncmpcpp/patches/fix-32bit.patch b/srcpkgs/ncmpcpp/patches/fix-32bit.patch new file mode 100644 index 00000000000..27aa3c876d4 --- /dev/null +++ b/srcpkgs/ncmpcpp/patches/fix-32bit.patch @@ -0,0 +1,11 @@ +--- src/utility/html.cpp.orig 2016-10-31 08:28:47.304056301 +0100 ++++ src/utility/html.cpp 2016-10-31 08:28:25.476945846 +0100 +@@ -66,7 +66,7 @@ void stripHtmlTags(std::string &s) + for (size_t i = s.find("<"); i != std::string::npos; i = s.find("<")) + { + size_t j = s.find(">", i)+1; +- if (s.compare(i, std::min(3ul, j-i), "

") == 0) ++ if (s.compare(i, std::min(3ul, (unsigned long)j-i), "

") == 0) + s.replace(i, j-i, "\n"); + else + s.replace(i, j-i, ""); diff --git a/srcpkgs/ncmpcpp/template b/srcpkgs/ncmpcpp/template index 823c9e4b369..875e6af3fc1 100644 --- a/srcpkgs/ncmpcpp/template +++ b/srcpkgs/ncmpcpp/template @@ -15,7 +15,6 @@ license="GPL-2" homepage="http://ncmpcpp.rybczak.net/" distfiles="http://ncmpcpp.rybczak.net/stable/ncmpcpp-${version}.tar.bz2" checksum=8c2234a325659b9c1596ecb4065e969324308e90cd031ac0442510bb9a6f3310 -broken=https://build.voidlinux.eu/builders/i686_builder/builds/27112/steps/shell_3/logs/stdio # Required by waddwstr() with ncurses on musl CXXFLAGS="-D_XOPEN_SOURCE=600"