public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtnetwork/
Date: Thu, 22 Jun 2023 16:05:56 +0000 (UTC)	[thread overview]
Message-ID: <1687449936.36d2cb85923c534fe5f640eb648ff6a5e587d004.asturm@gentoo> (raw)

commit:     36d2cb85923c534fe5f640eb648ff6a5e587d004
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 19 19:50:20 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> 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 <asturm <AT> 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 @@
 		<name>Gentoo Qt Project</name>
 	</maintainer>
 	<use>
-		<flag name="connman">Enable <pkg>net-misc/connman</pkg>-based bearer plugin</flag>
 		<flag name="gssapi">Enable support for GSSAPI (<pkg>virtual/krb5</pkg>)</flag>
 		<flag name="libproxy">Use <pkg>net-libs/libproxy</pkg> for automatic
 			HTTP/SOCKS proxy configuration</flag>
-		<flag name="networkmanager">Enable <pkg>net-misc/networkmanager</pkg>-based
-			bearer plugin</flag>
 	</use>
 	<upstream>
 		<bugs-to>https://bugreports.qt.io/</bugs-to>

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
+}


             reply	other threads:[~2023-06-22 16:06 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-22 16:05 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-18  4:37 [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtnetwork/ Ionen Wolkens
2024-07-21 12:54 Ionen Wolkens
2024-07-21 12:42 Sam James
2024-06-01 14:53 Arthur Zamarin
2024-02-05 20:07 Andreas Sturmlechner
2024-02-03 13:26 Andreas Sturmlechner
2024-01-03 23:00 Andreas Sturmlechner
2023-08-16 14:19 Arthur Zamarin
2023-08-16 14:18 Arthur Zamarin
2023-08-16 14:10 Arthur Zamarin
2023-08-16 13:49 Arthur Zamarin
2023-08-09  4:52 Arthur Zamarin
2023-08-09  4:52 Arthur Zamarin
2023-08-05 23:00 Andreas Sturmlechner
2023-05-25  7:46 Arthur Zamarin
2023-05-25  7:25 Miroslav Šulc
2023-05-23 21:19 Andreas Sturmlechner
2023-03-26 11:56 Andreas Sturmlechner
2023-01-21 19:37 Arthur Zamarin
2023-01-21 19:33 Arthur Zamarin
2023-01-21 19:30 Arthur Zamarin
2023-01-10  0:04 Andreas Sturmlechner
2023-01-10  0:04 Andreas Sturmlechner
2022-07-04 17:58 Arthur Zamarin
2022-06-18 17:25 Andreas Sturmlechner
2022-06-13 21:18 Sam James
2022-04-17 18:10 Sam James
2022-01-20 13:26 Andreas Sturmlechner
2022-01-20 12:15 Jakov Smolić
2022-01-20  9:00 Jakov Smolić
2022-01-19 22:43 Sam James
2022-01-19 22:43 Sam James
2022-01-18 22:52 Jakov Smolić
2022-01-12 16:14 Andreas Sturmlechner
2021-12-16 12:29 Andreas Sturmlechner
2021-12-15 23:55 Sam James
2021-12-15 23:55 Sam James
2021-12-15 23:38 Sam James
2021-12-15 14:46 Jakov Smolić
2021-12-15 13:41 Jakov Smolić
2021-12-10 13:19 Andreas Sturmlechner
2021-12-03  4:56 Sam James
2021-12-03  4:55 Sam James
2021-11-07 23:42 Andreas Sturmlechner
2021-10-17  0:29 Sam James
2021-10-17  0:27 Sam James
2021-09-22 20:01 Andreas Sturmlechner
2021-09-22 20:01 Andreas Sturmlechner
2021-08-25 14:36 Andreas Sturmlechner
2021-07-24 23:43 Yixun Lan
2021-04-30 19:09 Mikle Kolyada
2021-01-09 21:18 Sam James
2021-01-09 21:17 Sam James
2021-01-09 13:42 Sam James
2021-01-02  1:23 Andreas Sturmlechner
2020-11-18 21:09 Andreas Sturmlechner
2020-10-13  9:58 Agostino Sarubbo
2020-10-13  9:51 Agostino Sarubbo
2020-10-12 11:56 Sam James
2020-09-11 16:09 Aaron Bauman
2020-06-21 22:25 Andreas Sturmlechner
2020-06-21 17:03 Agostino Sarubbo
2020-06-21 16:58 Agostino Sarubbo
2020-06-20 13:48 Thomas Deutschmann
2020-06-17 14:21 Mart Raudsepp
2020-05-30 19:33 Sergei Trofimovich
2020-05-09  7:46 Agostino Sarubbo
2020-05-09  7:43 Agostino Sarubbo
2020-03-19 10:14 Agostino Sarubbo
2020-03-19 10:12 Agostino Sarubbo
2020-01-27 10:48 Mikle Kolyada
2020-01-13 19:50 Sergei Trofimovich
2019-12-21 10:54 Mikle Kolyada
2019-10-20 16:15 Mikle Kolyada
2019-05-23 13:20 Mikle Kolyada
2019-05-23 12:26 Mikle Kolyada
2019-04-26 15:34 Anthony G. Basile
2019-02-11 23:36 Sergei Trofimovich
2019-01-09 13:30 Mikle Kolyada
2019-01-09 10:40 Mikle Kolyada
2019-01-09 10:32 Mikle Kolyada
2018-11-24 13:32 Sergei Trofimovich
2018-09-07 23:46 Sergei Trofimovich
2018-08-19 10:46 Sergei Trofimovich
2018-07-13 13:41 Mikle Kolyada
2018-03-26  7:04 Sergei Trofimovich
2018-03-21  7:25 Sergei Trofimovich
2018-03-13 19:51 Michał Górny
2018-02-10  2:50 Michael Palimaka
2017-07-04 14:02 Agostino Sarubbo
2017-01-02 18:44 Markus Meier
2016-10-13  9:41 Agostino Sarubbo
2016-08-23 19:15 Markus Meier
2016-03-27 16:47 Agostino Sarubbo
2015-08-26 14:56 Mikle Kolyada
2015-08-23  9:24 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1687449936.36d2cb85923c534fe5f640eb648ff6a5e587d004.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox