From: Thomas Devoogdt <thomas@devoogdt.com>
To: buildroot@buildroot.org
Cc: Adrian Perez de Castro <aperez@igalia.com>,
Thomas Devoogdt <thomas@devoogdt.com>
Subject: [Buildroot] [PATCH v1] package/webkitgtk: restore libsoup support
Date: Sun, 1 Sep 2024 14:11:22 +0200 [thread overview]
Message-ID: <20240901121122.3113482-1-thomas@devoogdt.com> (raw)
In-Reply-To: <20240829131232.2132854-2-thomas@devoogdt.com>
The midori browser still uses libsoup and was broken since commit
38a098df133aaa2ebf09742054b02db5a44f58e5. This commit allows the
use of libsoup, libsoup3 stays the default.
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
---
This is a bit a replacement for https://patchwork.ozlabs.org/project/buildroot/patch/20240829131232.2132854-2-thomas@devoogdt.com/.
I don't use midori or libsoup2, and it's still not maintained, so it's also fine to accept the other commit and drop midori altogether.
---
package/webkitgtk/Config.in | 11 ++++++-----
package/webkitgtk/webkitgtk.mk | 12 ++++++++++--
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/package/webkitgtk/Config.in b/package/webkitgtk/Config.in
index a556fec194..5f9c24d610 100644
--- a/package/webkitgtk/Config.in
+++ b/package/webkitgtk/Config.in
@@ -33,9 +33,9 @@ config BR2_PACKAGE_WEBKITGTK
depends on BR2_PACKAGE_HAS_LIBEGL
depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu, host-ruby
depends on BR2_INSTALL_LIBSTDCPP
- depends on BR2_TOOLCHAIN_HAS_THREADS # wayland, icu, libsoup3
+ depends on BR2_TOOLCHAIN_HAS_THREADS # wayland, icu, libsoup/libsoup3
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10
- depends on BR2_USE_WCHAR # icu, libsoup3
+ depends on BR2_USE_WCHAR # icu, libsoup/libsoup3
depends on BR2_PACKAGE_LIBGTK3 || BR2_PACKAGE_LIBGTK4
depends on BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS
select BR2_PACKAGE_CAIRO
@@ -47,7 +47,7 @@ config BR2_PACKAGE_WEBKITGTK
select BR2_PACKAGE_LIBEPOXY
select BR2_PACKAGE_LIBGCRYPT
select BR2_PACKAGE_LIBSECRET
- select BR2_PACKAGE_LIBSOUP3
+ select BR2_PACKAGE_LIBSOUP3 if !BR2_PACKAGE_LIBSOUP
select BR2_PACKAGE_LIBTASN1
select BR2_PACKAGE_LIBXML2
select BR2_PACKAGE_LIBXSLT
@@ -100,9 +100,10 @@ comment "sandboxing support needs a toolchain w/ headers >= 3.12"
config BR2_PACKAGE_WEBKITGTK_HTTPS
bool "HTTPS support"
- depends on !BR2_STATIC_LIBS # libsoup3 -> glib-networking, gnutls
+ depends on !BR2_STATIC_LIBS # libsoup/libsoup3 -> glib-networking, gnutls
select BR2_PACKAGE_CA_CERTIFICATES # runtime
- select BR2_PACKAGE_LIBSOUP3_SSL
+ select BR2_PACKAGE_LIBSOUP_SSL if BR2_PACKAGE_LIBSOUP
+ select BR2_PACKAGE_LIBSOUP3_SSL if BR2_PACKAGE_LIBSOUP3
help
Enable HTTPS protocol support.
diff --git a/package/webkitgtk/webkitgtk.mk b/package/webkitgtk/webkitgtk.mk
index ff39ee01e1..af49aad96e 100644
--- a/package/webkitgtk/webkitgtk.mk
+++ b/package/webkitgtk/webkitgtk.mk
@@ -14,8 +14,8 @@ WEBKITGTK_LICENSE_FILES = \
Source/WebCore/LICENSE-LGPL-2.1
WEBKITGTK_CPE_ID_VENDOR = webkitgtk
WEBKITGTK_DEPENDENCIES = host-ruby host-python3 host-gperf host-unifdef \
- enchant harfbuzz icu jpeg libegl libepoxy libgcrypt libsecret \
- libsoup3 libtasn1 libxml2 libxslt sqlite webp woff2
+ enchant harfbuzz icu jpeg libegl libepoxy libgcrypt libsecret libtasn1 \
+ libxml2 libxslt sqlite webp woff2
WEBKITGTK_CMAKE_BACKEND = ninja
@@ -31,6 +31,14 @@ WEBKITGTK_CONF_OPTS = \
-DUSE_LIBHYPHEN=OFF \
-DUSE_WOFF2=ON
+ifeq ($(BR2_PACKAGE_LIBSOUP),y)
+WEBKITGTK_CONF_OPTS += -DUSE_SOUP2=ON
+WEBKITGTK_DEPENDENCIES += libsoup
+else
+WEBKITGTK_CONF_OPTS += -DUSE_SOUP2=OFF
+WEBKITGTK_DEPENDENCIES += libsoup3
+endif
+
ifeq ($(BR2_PACKAGE_LIBGTK4),y)
WEBKITGTK_CONF_OPTS += -DUSE_GTK4=ON
WEBKITGTK_DEPENDENCIES += libgtk4
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-09-01 12:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-29 13:12 [Buildroot] [PATCH v1] package/libsoup3: bump to 3.6.0 Thomas Devoogdt
2024-08-29 13:12 ` [Buildroot] [PATCH v1] package/midori: drop package Thomas Devoogdt
2024-09-01 12:11 ` Thomas Devoogdt [this message]
2024-09-02 15:41 ` [Buildroot] [PATCH v1] package/webkitgtk: restore libsoup support Yann E. MORIN
2024-09-02 16:06 ` Thomas Devoogdt
2024-09-02 16:26 ` Yann E. MORIN
2024-09-02 19:37 ` Adrian Perez de Castro
2024-09-02 20:04 ` Yann E. MORIN
2024-09-03 10:54 ` Adrian Perez de Castro
2024-09-02 15:39 ` [Buildroot] [PATCH v1] package/midori: drop package Yann E. MORIN
2024-08-29 13:12 ` [Buildroot] [PATCH v1] package/libgtk4: fix cairo-pdf compile error Thomas Devoogdt
2024-09-03 21:14 ` Thomas Petazzoni via buildroot
2024-09-03 21:26 ` Thomas Devoogdt
2024-09-14 19:58 ` Thomas Devoogdt
2024-09-17 19:18 ` [Buildroot] [PATCH v2] package/libgtk4: fix compile error if cairo zlib is not enabled Thomas Devoogdt
2024-08-29 13:12 ` [Buildroot] [PATCH v1] package/webkitgtk: start using GTK4 Thomas Devoogdt
2024-09-01 14:15 ` [Buildroot] [PATCH v1] package/libsoup3: bump to 3.6.0 Adrian Perez de Castro
2024-09-05 20:56 ` Thomas Petazzoni via buildroot
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=20240901121122.3113482-1-thomas@devoogdt.com \
--to=thomas@devoogdt.com \
--cc=aperez@igalia.com \
--cc=buildroot@buildroot.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