From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 44B8E158009 for ; Thu, 22 Jun 2023 16:06:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 910BEE07EC; Thu, 22 Jun 2023 16:05:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 722BBE07EC for ; Thu, 22 Jun 2023 16:05:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 64CB2335DBB for ; Thu, 22 Jun 2023 16:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 004FCA95 for ; Thu, 22 Jun 2023 16:05:56 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1687449936.36d2cb85923c534fe5f640eb648ff6a5e587d004.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtnetwork/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-qt/qtnetwork/metadata.xml dev-qt/qtnetwork/qtnetwork-5.15.10-r1.ebuild X-VCS-Directories: dev-qt/qtnetwork/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 36d2cb85923c534fe5f640eb648ff6a5e587d004 X-VCS-Branch: master Date: Thu, 22 Jun 2023 16:05:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8008e037-b464-4749-9ec9-b2843f61e3dd X-Archives-Hash: edfa5287ada57bff96dbe6f0bc0f3ebb commit: 36d2cb85923c534fe5f640eb648ff6a5e587d004 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Jun 19 19:50:20 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Jun 22 16:05:36 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36d2cb85 dev-qt/qtnetwork: Drop bearer plugins (IUSE=connman,networkmanager) Can not drop src/plugins/bearer/generic (builds libqgenericbearer.so) though, as without it things like akonadi (KMail remains offline) and Plasma POTD stop working. QTBUG: https://bugreports.qt.io/browse/QTBUG-114666 Upstream in #kde-devel: - the bearer plugins were created in another era: for Symbian, when we weren't always connected to the Internet and the user maybe didn't want to turn on their data - now, we're always connected, so the bearer plugins are unnecessary - they've been removed from Qt 6 due to their design problems - so just do the same in Qt 5: don't use them - especially when upstream has already declared "the use of this API is a design flaw" Signed-off-by: Andreas Sturmlechner gentoo.org> dev-qt/qtnetwork/metadata.xml | 3 -- dev-qt/qtnetwork/qtnetwork-5.15.10-r1.ebuild | 62 ++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/dev-qt/qtnetwork/metadata.xml b/dev-qt/qtnetwork/metadata.xml index 8a8481b49e8b..dfe9a543ba96 100644 --- a/dev-qt/qtnetwork/metadata.xml +++ b/dev-qt/qtnetwork/metadata.xml @@ -6,12 +6,9 @@ Gentoo Qt Project - Enable net-misc/connman-based bearer plugin Enable support for GSSAPI (virtual/krb5) Use net-libs/libproxy for automatic HTTP/SOCKS proxy configuration - Enable net-misc/networkmanager-based - bearer plugin https://bugreports.qt.io/ diff --git a/dev-qt/qtnetwork/qtnetwork-5.15.10-r1.ebuild b/dev-qt/qtnetwork/qtnetwork-5.15.10-r1.ebuild new file mode 100644 index 000000000000..148c6d9f133f --- /dev/null +++ b/dev-qt/qtnetwork/qtnetwork-5.15.10-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} != *9999* ]]; then + QT5_KDEPATCHSET_REV=1 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +QT5_MODULE="qtbase" +inherit qt5-build + +DESCRIPTION="Network abstraction library for the Qt5 framework" + +IUSE="gssapi libproxy sctp +ssl" + +DEPEND=" + =dev-qt/qtcore-${QT5_PV}*:5= + sys-libs/zlib:= + gssapi? ( virtual/krb5 ) + libproxy? ( net-libs/libproxy ) + sctp? ( kernel_linux? ( net-misc/lksctp-tools ) ) + ssl? ( >=dev-libs/openssl-1.1.1:0= ) +" +RDEPEND="${DEPEND}" + +QT5_TARGET_SUBDIRS=( + src/network + src/plugins/bearer/generic +) + +QT5_GENTOO_CONFIG=( + libproxy:libproxy: + ssl::SSL + ssl::OPENSSL + ssl:openssl-linked:LINKED_OPENSSL +) + +QT5_GENTOO_PRIVATE_CONFIG=( + :network +) + +src_configure() { + local myconf=( + $(qt_use gssapi feature-gssapi) + $(qt_use libproxy) + $(qt_use sctp) + $(usev ssl -openssl-linked) + ) + qt5-build_src_configure +} + +src_install() { + qt5-build_src_install + + # workaround for bug 652650 + if use ssl; then + sed -e "/^#define QT_LINKED_OPENSSL/s/$/ true/" \ + -i "${D}${QT5_HEADERDIR}"/Gentoo/${PN}-qconfig.h || die + fi +}