commit: bbf22306a2ed9c2f401b71b1d32f64ec452b817f
Author: g3ngr33n <gengreen <AT> gmx <DOT> com>
AuthorDate: Fri Mar 16 13:35:38 2018 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Mar 16 13:48:14 2018 +0000
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=bbf22306
Qbittorrent fix
net-p2p/qbittorrent/Manifest | 14 +++++
.../qbittorrent/files/qbittorrent-4.0.4-musl.patch | 21 +++++++
.../files/qbittorrent-4.0.4-werror.patch | 24 ++++++++
net-p2p/qbittorrent/metadata.xml | 19 +++++++
net-p2p/qbittorrent/qbittorrent-4.0.4.ebuild | 66 ++++++++++++++++++++++
5 files changed, 144 insertions(+)
diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest
new file mode 100644
index 0000000..e32e7d2
--- /dev/null
+++ b/net-p2p/qbittorrent/Manifest
@@ -0,0 +1,14 @@
+AUX qbittorrent-3.3.16-cmake.patch 2025 BLAKE2B
926cd32b8e0b2f0c7833ca6d972a8cffe49cc1926fb2383dedd428e7cddc344b57aa9a0af2ae85ba141e4522fdb2391055857d17cf58b81e84c052825c5b9032
SHA512
a9c8fb1c45eb69942230a9ae509a8911f169a8801151fc8ca068d77eaa0f2bf78f19a2f4595a65c4b6b7a4390233b25c7e024f4f9a4b503f687193c6f494c34c
+AUX qbittorrent-4.0.1-nowebui.patch 854 BLAKE2B
f605f99919c1eb4412f640e867dd12556d7419ef282ecd4e891d6c6668d457f8c06748ae5d6cfbf9f4b0228d1273ec08299a750052c3f2674d6b84707bdbe093
SHA512
c77fb1f23663d44fea334cf74debe5970b10d42c38874914fb2d743bd4aeb7bc6e8a4edb5fb4d6bb73abec4898e81322b263de21532fb2287cd91240afadf7b8
+AUX qbittorrent-4.0.4-musl.patch 720 BLAKE2B
2cbb389279129bbd422f7a2db4fa2b61fe2050d823f10b5c29116157a7c71526edd50f88248aa0ee5461549ebf20b2d6b774b1e09559aac68ace89a11768d0ee
SHA512
f72ceab797779532d391c08af50e309641ca721007747b2e59c31dd609958583695d0ac17de2df71bb96731816ff42bf4a10ede32563c8dab407781562d4e084
+AUX qbittorrent-4.0.4-werror.patch 1073 BLAKE2B
c7bab1a78362f41a8a2a26fd853c81206a95f03d52f009ef19bd912921cb05ac0ac3aad9b52d06165539ff819dab98a26d230c40a2d567695d0fc59029dfa894
SHA512
908336510379d927df4e7830ae1038d23cf1000c38f2a367303d5e908224e615289b5e95cee85b87a582a16037940c1cad016ae9e902a2e5d42a0d4e4b58ad03
+DIST qbittorrent-3.3.16.tar.xz 2961420 BLAKE2B
3704e6575b1a321e04b0b9c1feee9acaf2e0ab5e0815c2cbb496265c8407c5b27111265e929ea3a516cba20acacc3b954579b5904de3411ae81726f2461dfbe0
SHA512
518ddbf8e657b3549800b5587924a8a34826895183f199b79aac72de81e6b5c009cb3b8d4fbb19151da0d96c21eb1c2f05d6ed061608cc8f589ec6fe62ce8117
+DIST qbittorrent-4.0.1.tar.xz 4256588 BLAKE2B
579e850c34c62f515807a3fb2619740442c275e9de74cd7338a9e2d72340c78a2b7f484a3ee911094cbb3b551d61a927be454466637eac2d2355e84ebec0dbd4
SHA512
76eae32ebe82953e3164a8a292132a33ccc93f5a33ce7e1ce3253f4697939b73d21e1823bada7d3b1fe7401538a7f407ebeb86c281a34e261aec0aa02d7bef80
+DIST qbittorrent-4.0.3.tar.xz 4274292 BLAKE2B
c6f6a87d26f01db318ac021a8ab9f8d1ada2f7cb0d2819dfbd41e57ddbcda8a077161c78bcf8210e3571572872c13aa2255973e842c07b6b538d94ac2501c841
SHA512
d439e5428ff43ec9317bfa70b365a912a33fa12eeaad72c6916514e7b04509bf3d2e35ef9c07a36e42e7fc80f4e019f6a299fd2f93df9ec10af4a95257096ecd
+DIST qbittorrent-4.0.4.tar.xz 4279752 BLAKE2B
6385040d1179814e3290fb1c7b2d1e0b5782144663d12a067c43a2d8a47d0f0cfc0633c69f183db70eab2591ef100f39b07ea2d5e3cbca3a4d149ccb70e4d838
SHA512
ead0a306242d883673e13f9e6dc5ad83d4624c3d7ffb586aff78c03f7685e89b6a6c8640fff6a1b251565892178d37f4a64d45d0ce18935a212ca39302a28969
+EBUILD qbittorrent-3.3.16.ebuild 1427 BLAKE2B
710e1375e511e52b1da0f8466a03b311b510b722b6452fb80525517e6858fbda6f535097a5d1d26fb93c5f74f5de59f8733a10a19fe835c09f2a0f0dd779631d
SHA512
c658f61dc584c05ef36b7e13c115448acbb9cdf048c4a3406e2647209eaa97ee3dd0c7a71e4407b7413b9635f72766c17d9f89a3df7ae7d9c468b7107fb313bc
+EBUILD qbittorrent-4.0.1.ebuild 1353 BLAKE2B
aed8773456f37a72bcbb071d66b8ee308056c7404b8b93e48f05d537fe568a8e8da49279fa15e11684b26a24ab0ddc9def215d4749347759508dac0451bc1a45
SHA512
58c97dbef3ec0faed7c60e1e120ffe0ace7a2aaed2ba4682a44b7ba5c69d50cb17961044823df46a75dab825344883a4e0624d5c05446aa5d83a2c3115e5659e
+EBUILD qbittorrent-4.0.3-r1.ebuild 1451 BLAKE2B
1340fc6dffb5c05b05f0774cfa0b0693097a956f4acfef5a44b03fd5c741f41f1151b50d871f681b407922e42ec59e9d3e31b6a26a4954a48df34abe48cb877f
SHA512
b0699e2f3ee7894a535a3e3da78c4032e40f7e64a34d99b5ac285db1f1fdca976c6e715bf1878a50ca5cbb7fc723e2a102fa9e77fe0466b2c3c683b08000b5e2
+EBUILD qbittorrent-4.0.4.ebuild 1414 BLAKE2B
d2274b48e2de1c4b7f3cfb77478e873a73d39a516c949c1f848fbe2124b4d83c1aa0f3dc40871220e43ba120fa75686254949cd276f4ed52e4c3447b8981c772
SHA512
544d4d12b03b1b4675d44108e8a2c1b977078b46e7e218d3b24f9fbe9f12b13e6476e7a4e8e418fc7425136a396791e09794d2a4f8d79c45795629631f37be91
+EBUILD qbittorrent-9999.ebuild 1364 BLAKE2B
ee21562083f3c8f44342caecd4d20e6cd0371d4be6f9dfd1e3e8b6962e8a8a39328eb3f2d4abab745791afb2d36b7e36452692f39a62e0433100840522804680
SHA512
08ee86525118858548fb54b56a9d1373a79e8f05518a2ac4c06b1d7ce31061cd2d8c24b33853cb61cc9ca7d22980505ecd5583be2d94e9422d147745e7e7c11d
+MISC metadata.xml 563 BLAKE2B
9d0793b4c9a7b7022c837f0f671895908c647616e1609625273a3f15dbf4bfcd384ffbfe610639235b378068aa08bfa6cd493e051a239d4ead65c4f2d3a2f672
SHA512
23f8dfd139eed877c504f7661e98168c561385930afe5b910bb60040d01b33820f25b8a9f6048001fae462bddc2199532ebd05fefe4937639f4c68e906d59462
diff --git a/net-p2p/qbittorrent/files/qbittorrent-4.0.4-musl.patch
b/net-p2p/qbittorrent/files/qbittorrent-4.0.4-musl.patch
new file mode 100644
index 0000000..0181371
--- /dev/null
+++ b/net-p2p/qbittorrent/files/qbittorrent-4.0.4-musl.patch
@@ -0,0 +1,21 @@
+diff -Naru qbittorrent-4.0.4.orig/src/app/main.cpp
qbittorrent-4.0.4/src/app/main.cpp
+--- qbittorrent-4.0.4.orig/src/app/main.cpp 2018-03-16 10:08:10.493478535
+0100
++++ qbittorrent-4.0.4/src/app/main.cpp 2018-03-16 10:12:21.919464628 +0100
+@@ -57,8 +57,6 @@
+
+ #ifdef Q_OS_UNIX
+ #include <signal.h>
+-#include <execinfo.h>
+-#include "stacktrace.h"
+ #endif // Q_OS_UNIX
+
+ #ifdef STACKTRACE_WIN
+@@ -308,7 +306,6 @@
+ reportToUser(msg);
+ reportToUser(sigName);
+ reportToUser("\n");
+- print_stacktrace(); // unsafe
+ #endif // !defined Q_OS_WIN && !defined Q_OS_HAIKU
+ #ifdef STACKTRACE_WIN
+ StraceDlg dlg; // unsafe
+
diff --git a/net-p2p/qbittorrent/files/qbittorrent-4.0.4-werror.patch
b/net-p2p/qbittorrent/files/qbittorrent-4.0.4-werror.patch
new file mode 100644
index 0000000..6d02e31
--- /dev/null
+++ b/net-p2p/qbittorrent/files/qbittorrent-4.0.4-werror.patch
@@ -0,0 +1,24 @@
+Bug: https://bugs.gentoo.org/641382
+
+--- a/cmake/Modules/MacroQbtCompilerSettings.cmake
++++ b/cmake/Modules/MacroQbtCompilerSettings.cmake
+@@ -11,16 +11,15 @@
+ #-Wshadow -Wconversion ?
+ set(_GCC_COMMON_C_AND_CXX_FLAGS "-Wall -Wextra"
+ "-Wfloat-equal -Wcast-qual -Wcast-align"
+- "-Wsign-conversion -Winvalid-pch -Werror=return-type
-Wno-long-long"
++ "-Wsign-conversion -Winvalid-pch -Wno-long-long"
+ # -fstack-protector-all
+- "-Werror -Wno-error=deprecated-declarations"
++ "-Wno-error=deprecated-declarations"
+ )
+ set (_GCC_COMMON_CXX_FLAGS "-fexceptions -frtti"
+ "-Woverloaded-virtual -Wold-style-cast -Wstrict-null-sentinel"
+ "-Wnon-virtual-dtor -Wfloat-equal -Wcast-qual -Wcast-align"
+- "-Werror=overloaded-virtual"
+ # "-Weffc++"
+- "-Werror -Wno-error=cpp"
++ "-Wno-error=cpp"
+ # we should modify code to make these ones obsolete
+ "-Wno-error=sign-conversion -Wno-error=float-equal"
+ )
diff --git a/net-p2p/qbittorrent/metadata.xml b/net-p2p/qbittorrent/metadata.xml
new file mode 100644
index 0000000..06c858a
--- /dev/null
+++ b/net-p2p/qbittorrent/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>[email protected]</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="webui">Enable the Web UI</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">qbittorrent/qBittorrent</remote-id>
+ <remote-id type="sourceforge">qbittorrent</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-p2p/qbittorrent/qbittorrent-4.0.4.ebuild
b/net-p2p/qbittorrent/qbittorrent-4.0.4.ebuild
new file mode 100644
index 0000000..361277d
--- /dev/null
+++ b/net-p2p/qbittorrent/qbittorrent-4.0.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+DESCRIPTION="BitTorrent client in C++ and Qt"
+HOMEPAGE="https://www.qbittorrent.org/"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git"
+else
+ MY_P=${P/_}
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
+ S=${WORKDIR}/${MY_P}
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+dbus debug webui +X"
+REQUIRED_USE="dbus? ( X )"
+
+RDEPEND="
+ >=dev-libs/boost-1.62.0-r1:=
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5[ssl]
+ >=dev-qt/qtsingleapplication-2.6.1_p20130904-r1[qt5(+),X?]
+ dev-qt/qtxml:5
+ >=net-libs/libtorrent-rasterbar-1.0.6:0=
+ sys-libs/zlib
+ dbus? ( dev-qt/qtdbus:5 )
+ X? (
+ dev-qt/qtgui:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ )"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO )
+PATCHES=( "${FILESDIR}/${PN}-4.0.4-werror.patch" )
+PATCHES=( "${FILESDIR}/${PN}-4.0.4-musl.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DSYSTEM_QTSINGLEAPPLICATION=ON
+ -DDBUS=$(usex dbus)
+ -DGUI=$(usex X)
+ -DWEBUI=$(usex webui)
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}