Skip to contentSkip to conversation

Update WPE WebKit to the 2.44 release series

PATCH Applied Adrian Perez de Castro 3 participants 14 messages May 22, 2024 – Aug 5, 2024

lore
Share & tools
lore
#0 lore raw

cover Update WPE WebKit to the 2.44 release series

Hi!

This patch set updates WPE WebKit to the latest release series. The only strictly required patch is the second one with the version bump, and the libwpe one recommended as to match the recommendation [1]. The patches we were carrying in Buildroot are no longer needed and have been integrated upstream.

The last two patches add a new package for libavif and enable its usage in wpewebkit. These would be nice-to-haves but can also be applied later separately. We can also enable libavif support in WebKitGTK after the package gets updated to 2.44.x as well -- there was a patch recently by Thomas Devoogdt for that bump which I'll be reviewing later today.

Cheers,
-Adrian

---
[1] https://wpewebkit.org/release/schedule/#compatible-components

Adrian Perez de Castro (4):
package/libwpe: bump to version 1.16.0 package/wpewebkit: security bump to version 2.44.2 package/libavif: new package package/wpewebkit: use libavif if enabled

 DEVELOPERS                                    |   1 +
 package/Config.in                             |   1 +
 package/libavif/Config.in                     |  13 +
 package/libavif/libavif.hash                  |   3 +
 package/libavif/libavif.mk                    |  34 ++
 package/libwpe/libwpe.hash                    |   7 +-
 package/libwpe/libwpe.mk                      |   2 +-
 ...cpp-fails-to-build-NEON-fast-path-se.patch | 337 ------------------
 ...velInterpreter.cpp-339-21-error-t6-w.patch |  39 --
 package/wpewebkit/Config.in                   |   1 -
 package/wpewebkit/wpewebkit.hash              |   7 +-
 package/wpewebkit/wpewebkit.mk                |  40 ++-
 12 files changed, 91 insertions(+), 394 deletions(-)
 create mode 100644 package/libavif/Config.in
 create mode 100644 package/libavif/libavif.hash
 create mode 100644 package/libavif/libavif.mk
 delete mode 100644 package/wpewebkit/0001-FELightningNEON.cpp-fails-to-build-NEON-fast-path-se.patch
 delete mode 100644 package/wpewebkit/0002-GTK-2.42.5-LowLevelInterpreter.cpp-339-21-error-t6-w.patch

--
2.45.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw

PATCH 1/4 package/libwpe: bump to version 1.16.0

This new stable series brings in support for pointer lock, customization of subprocess launching, and a build fix that allows using EGL implementations that do not ship a pkg-config module. Version 1.16.x is recommended for WPE WebKit 2.44.x, which will be updated in a follow-up patch.

Release notes:

https://wpewebkit.org/release/libwpe-1.16.0.html

---
 package/libwpe/libwpe.hash | 7 ++++---
 package/libwpe/libwpe.mk   | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
package/libwpe/libwpe.hash +4 -3
index 554b1f2b0e..2a2ee3c2e9 100644
@@ -1,6 +1,7 @@
-# From https://wpewebkit.org/releases/libwpe-1.14.2.tar.xz.sums
-sha1  70a2b894af2b50d7082260158a89524974a480f3  libwpe-1.14.2.tar.xz
-sha256  8ae38022c50cb340c96fdbee1217f1e46ab57fbc1c8ba98142565abbedbe22ef  libwpe-1.14.2.tar.xz
+# From https://wpewebkit.org/releases/libwpe-1.16.0.tar.xz.sums
+md5  9779115aaa7e67abe642777394e7bfa2  libwpe-1.16.0.tar.xz
+sha1  ea574e09b5d47461a5579a24006488419474d136  libwpe-1.16.0.tar.xz
+sha256  c7f3a3c6b3d006790d486dc7cceda2b6d2e329de07f33bc47dfc53f00f334b2a  libwpe-1.16.0.tar.xz
 
 # Hashes for license files:
 sha256  35bef295cedbbf179eaee14328002587a0e7dc08ebf3f15ea080a6f2815f0d7b  COPYING
package/libwpe/libwpe.mk +1 -1
index 1fbdd5fcc3..de49cedfb4 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 # The middle number is even for stable releases, odd for development ones.
-LIBWPE_VERSION = 1.14.2
+LIBWPE_VERSION = 1.16.0
 LIBWPE_SITE = https://wpewebkit.org/releases
 LIBWPE_SOURCE = libwpe-$(LIBWPE_VERSION).tar.xz
 LIBWPE_INSTALL_STAGING = YES
Signature · 6 lines
2.45.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 1/4] package/libwpe: bump to version 1.16.0

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

This new stable series brings in support for pointer lock, customization of subprocess launching, and a build fix that allows using EGL implementations that do not ship a pkg-config module. Version 1.16.x is recommended for WPE WebKit 2.44.x, which will be updated in a follow-up patch.

Quoted 5 lines

Release notes:

https://wpewebkit.org/release/libwpe-1.16.0.html

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 1/4] package/libwpe: bump to version 1.16.0

In reply to Adrian Perez de Castro
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

This new stable series brings in support for pointer lock, customization of subprocess launching, and a build fix that allows using EGL implementations that do not ship a pkg-config module. Version 1.16.x is recommended for WPE WebKit 2.44.x, which will be updated in a follow-up patch.

Quoted 5 lines

Release notes:

https://wpewebkit.org/release/libwpe-1.16.0.html

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH 2/4 package/wpewebkit: security bump to version 2.44.2

In reply to Adrian Perez de Castro

Update to the most recent stable release of WPE WebKit. As this is a change to a newer release series, there are a few changes in the CMake build options. Dependencies mostly remain the same. The main changes are:

- The new ENABLE_WEB_CODECS option is set along with ENABLE_VIDEO and ENABLE_WEB_RTC depending on BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA.
- The new USE_LIBBACKTRACE option is set accordingly, depending on BR2_PACKAGE_LIBBACKTRACE.
- WebAssembly does not work with ENABLE_C_LOOP, so it needs to be disabled alongside it for MIPSr6, ARMv5 and ARMv6; not that building WebAssembly support is enabled by default.
- ENABLE_ACCESSIBILITY has been removed, instead the new USE_ATK option can be used to the same effect.
- JPEG2000 is no longer supported, the openjpeg dependency is removed.

Release notes and announcement:

- https://wpewebkit.org/blog/2024-wpewebkit-2.44.html

- https://wpewebkit.org/release/wpewebkit-2.44.0.html
- https://wpewebkit.org/release/wpewebkit-2.44.1.html
- https://wpewebkit.org/release/wpewebkit-2.44.2.html

Relevant security advisories:

- https://wpewebkit.org/security/WSA-2024-0002.html
- https://wpewebkit.org/security/WSA-2024-0003.html

---
 ...cpp-fails-to-build-NEON-fast-path-se.patch | 337 ------------------
 ...velInterpreter.cpp-339-21-error-t6-w.patch |  39 --
 package/wpewebkit/Config.in                   |   1 -
 package/wpewebkit/wpewebkit.hash              |   7 +-
 package/wpewebkit/wpewebkit.mk                |  32 +-
 5 files changed, 27 insertions(+), 389 deletions(-)
 delete mode 100644 package/wpewebkit/0001-FELightningNEON.cpp-fails-to-build-NEON-fast-path-se.patch
 delete mode 100644 package/wpewebkit/0002-GTK-2.42.5-LowLevelInterpreter.cpp-339-21-error-t6-w.patch
package/wpewebkit/0001-FELightningNEON.cpp-fails-to-build-NEON-fast-path-se.patch deleted +0 -337
deleted file mode 100644
index 17d4957657..0000000000
@@ -1,337 +0,0 @@
-From 5ba2d275457c4fdf1efdcca8351792400bda5679 Mon Sep 17 00:00:00 2001
-From: Adrian Perez de Castro <[email protected]>
-Date: Thu, 2 Jun 2022 11:19:06 +0300
-Subject: [PATCH] FELightningNEON.cpp fails to build, NEON fast path seems
- unused https://bugs.webkit.org/show_bug.cgi?id=241182
-
-Reviewed by NOBODY (OOPS!).
-
-Move the NEON fast path for the SVG lighting filter effects into
-FELightingSoftwareApplier, and arrange to actually use them by
-forwarding calls to applyPlatformGeneric() into applyPlatformNeon().
-
-Some changes were needed to adapt platformApplyNeon() to the current
-state of filters after r286140. This was not detected because the code
-bitrotted due to it being guarded with CPU(ARM_TRADITIONAL), which does
-not get used much these days: CPU(ARM_THUMB2) is more common. It should
-be possible to use the NEON fast paths also in Thumb mode, but that is
-left for a follow-up fix.
-
-* Source/WebCore/Sources.txt:
-* Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp:
-(WebCore::FELightingSoftwareApplier::platformApplyNeonWorker):
-(WebCore::FELightingSoftwareApplier::getPowerCoefficients):
-(WebCore::FELighting::platformApplyNeonWorker): Deleted.
-(WebCore::FELighting::getPowerCoefficients): Deleted.
-* Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h:
-(WebCore::FELightingSoftwareApplier::applyPlatformNeon):
-(WebCore::FELighting::platformApplyNeon): Deleted.
-* Source/WebCore/platform/graphics/filters/DistantLightSource.h:
-* Source/WebCore/platform/graphics/filters/FELighting.h:
-* Source/WebCore/platform/graphics/filters/PointLightSource.h:
-* Source/WebCore/platform/graphics/filters/SpotLightSource.h:
-* Source/WebCore/platform/graphics/filters/software/FELightingSoftwareApplier.h:
-
-Signed-off-by: Adrian Perez de Castro <[email protected]>
-Upstream: https://bugs.webkit.org/show_bug.cgi?id=241182
----
- Source/WebCore/Sources.txt                    |  1 +
- .../cpu/arm/filters/FELightingNEON.cpp        |  6 +--
- .../graphics/cpu/arm/filters/FELightingNEON.h | 54 +++++++++----------
- .../graphics/filters/DistantLightSource.h     |  4 ++
- .../platform/graphics/filters/FELighting.h    |  7 ---
- .../graphics/filters/PointLightSource.h       |  4 ++
- .../graphics/filters/SpotLightSource.h        |  4 ++
- .../software/FELightingSoftwareApplier.h      | 16 ++++++
- 8 files changed, 59 insertions(+), 37 deletions(-)
-
-diff --git a/Source/WebCore/Sources.txt b/Source/WebCore/Sources.txt
-index 9ca28a7b2bc0..ed2c7f9f41ee 100644
---- a/Source/WebCore/Sources.txt
-+++ b/Source/WebCore/Sources.txt
-@@ -2303,6 +2303,7 @@ platform/graphics/controls/MeterPart.cpp
- platform/graphics/controls/ProgressBarPart.cpp
- platform/graphics/controls/SliderTrackPart.cpp
- platform/graphics/cpu/arm/filters/FEBlendNeonApplier.cpp
-+platform/graphics/cpu/arm/filters/FELightingNEON.cpp
- platform/graphics/displaylists/DisplayList.cpp
- platform/graphics/displaylists/DisplayListDrawingContext.cpp
- platform/graphics/displaylists/DisplayListItems.cpp
-diff --git a/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp b/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
-index f6ff8c20a5a8..dced3d55eb4e 100644
---- a/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
-+++ b/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
-@@ -35,7 +35,7 @@ namespace WebCore {
- //   ALPHAX_Q ALPHAY_Q REMAPX_D REMAPY_D
-
-
--static alignas(16) short s_FELightingConstantsForNeon[] = {
-+alignas(16) static short s_FELightingConstantsForNeon[] = {
-     // Alpha coefficients.
-     -2, 1, 0, -1, 2, 1, 0, -1,
-     0, -1, -2, -1, 0, 1, 2, 1,
-@@ -49,7 +49,7 @@ short* feLightingConstantsForNeon()
-     return s_FELightingConstantsForNeon;
- }
-
--void FELighting::platformApplyNeonWorker(FELightingPaintingDataForNeon* parameters)
-+void FELightingSoftwareApplier::platformApplyNeonWorker(FELightingPaintingDataForNeon* parameters)
- {
-     neonDrawLighting(parameters);
- }
-@@ -464,7 +464,7 @@ TOSTRING(neonDrawLighting) ":" NL
-     "b .lightStrengthCalculated" NL
- ); // NOLINT
-
--int FELighting::getPowerCoefficients(float exponent)
-+int FELightingSoftwareApplier::getPowerCoefficients(float exponent)
- {
-     // Calling a powf function from the assembly code would require to save
-     // and reload a lot of NEON registers. Since the base is in range [0..1]
-diff --git a/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h b/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h
-index b17c603d40d3..fd23e31cce29 100644
---- a/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h
-+++ b/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h
-@@ -24,14 +24,15 @@
-  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-  */
-
--#ifndef FELightingNEON_h
--#define FELightingNEON_h
-+#pragma once
-
- #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE)
-
--#include "FELighting.h"
-+#include "FELightingSoftwareApplier.h"
-+#include "ImageBuffer.h"
- #include "PointLightSource.h"
- #include "SpotLightSource.h"
-+#include <wtf/ObjectIdentifier.h>
- #include <wtf/ParallelJobs.h>
-
- namespace WebCore {
-@@ -93,14 +94,14 @@ extern "C" {
- void neonDrawLighting(FELightingPaintingDataForNeon*);
- }
-
--inline void FELighting::platformApplyNeon(const LightingData& data, const LightSource::PaintingData& paintingData)
-+inline void FELightingSoftwareApplier::applyPlatformNeon(const FELightingSoftwareApplier::LightingData& data, const LightSource::PaintingData& paintingData)
- {
--    alignas(16) FELightingFloatArgumentsForNeon floatArguments;
--    FELightingPaintingDataForNeon neonData = {
--        data.pixels->data(),
-+    alignas(16) WebCore::FELightingFloatArgumentsForNeon floatArguments;
-+    WebCore::FELightingPaintingDataForNeon neonData = {
-+        data.pixels->bytes(),
-         1,
--        data.widthDecreasedByOne - 1,
--        data.heightDecreasedByOne - 1,
-+        data.width - 2,
-+        data.height - 2,
-         0,
-         0,
-         0,
-@@ -111,23 +112,23 @@ inline void FELighting::platformApplyNeon(const LightingData& data, const LightS
-     // Set light source arguments.
-     floatArguments.constOne = 1;
-
--    auto color = m_lightingColor.toColorTypeLossy<SRGBA<uint8_t>>().resolved();
-+    auto color = data.lightingColor.toColorTypeLossy<SRGBA<uint8_t>>().resolved();
-
-     floatArguments.colorRed = color.red;
-     floatArguments.colorGreen = color.green;
-     floatArguments.colorBlue = color.blue;
-     floatArguments.padding4 = 0;
-
--    if (m_lightSource->type() == LS_POINT) {
-+    if (data.lightSource->type() == LS_POINT) {
-         neonData.flags |= FLAG_POINT_LIGHT;
--        PointLightSource& pointLightSource = static_cast<PointLightSource&>(m_lightSource.get());
-+        const auto& pointLightSource = *static_cast<const PointLightSource*>(data.lightSource);
-         floatArguments.lightX = pointLightSource.position().x();
-         floatArguments.lightY = pointLightSource.position().y();
-         floatArguments.lightZ = pointLightSource.position().z();
-         floatArguments.padding2 = 0;
--    } else if (m_lightSource->type() == LS_SPOT) {
-+    } else if (data.lightSource->type() == LS_SPOT) {
-         neonData.flags |= FLAG_SPOT_LIGHT;
--        SpotLightSource& spotLightSource = static_cast<SpotLightSource&>(m_lightSource.get());
-+        const auto& spotLightSource = *static_cast<const SpotLightSource*>(data.lightSource);
-         floatArguments.lightX = spotLightSource.position().x();
-         floatArguments.lightY = spotLightSource.position().y();
-         floatArguments.lightZ = spotLightSource.position().z();
-@@ -145,7 +146,7 @@ inline void FELighting::platformApplyNeon(const LightingData& data, const LightS
-         if (spotLightSource.specularExponent() == 1)
-             neonData.flags |= FLAG_CONE_EXPONENT_IS_1;
-     } else {
--        ASSERT(m_lightSource->type() == LS_DISTANT);
-+        ASSERT(data.lightSource->type() == LS_DISTANT);
-         floatArguments.lightX = paintingData.initialLightingData.lightVector.x();
-         floatArguments.lightY = paintingData.initialLightingData.lightVector.y();
-         floatArguments.lightZ = paintingData.initialLightingData.lightVector.z();
-@@ -155,38 +156,39 @@ inline void FELighting::platformApplyNeon(const LightingData& data, const LightS
-     // Set lighting arguments.
-     floatArguments.surfaceScale = data.surfaceScale;
-     floatArguments.minusSurfaceScaleDividedByFour = -data.surfaceScale / 4;
--    if (m_lightingType == FELighting::DiffuseLighting)
--        floatArguments.diffuseConstant = m_diffuseConstant;
-+    if (data.filterType == FilterEffect::Type::FEDiffuseLighting)
-+        floatArguments.diffuseConstant = data.diffuseConstant;
-     else {
-         neonData.flags |= FLAG_SPECULAR_LIGHT;
--        floatArguments.diffuseConstant = m_specularConstant;
--        neonData.specularExponent = getPowerCoefficients(m_specularExponent);
--        if (m_specularExponent == 1)
-+        floatArguments.diffuseConstant = data.specularConstant;
-+        neonData.specularExponent = getPowerCoefficients(data.specularExponent);
-+        if (data.specularExponent == 1)
-             neonData.flags |= FLAG_SPECULAR_EXPONENT_IS_1;
-     }
-     if (floatArguments.diffuseConstant == 1)
-         neonData.flags |= FLAG_DIFFUSE_CONST_IS_1;
-
--    int optimalThreadNumber = ((data.widthDecreasedByOne - 1) * (data.heightDecreasedByOne - 1)) / s_minimalRectDimension;
-+    static constexpr int minimalRectDimension = 100 * 100; // Empirical data limit for parallel jobs
-+    int optimalThreadNumber = ((data.width - 2) * (data.height - 2)) / minimalRectDimension;
-     if (optimalThreadNumber > 1) {
-         // Initialize parallel jobs
--        ParallelJobs<FELightingPaintingDataForNeon> parallelJobs(&WebCore::FELighting::platformApplyNeonWorker, optimalThreadNumber);
-+        ParallelJobs<FELightingPaintingDataForNeon> parallelJobs(&FELightingSoftwareApplier::platformApplyNeonWorker, optimalThreadNumber);
-
-         // Fill the parameter array
-         int job = parallelJobs.numberOfJobs();
-         if (job > 1) {
-             int yStart = 1;
--            int yStep = (data.heightDecreasedByOne - 1) / job;
-+            int yStep = (data.height - 2) / job;
-             for (--job; job >= 0; --job) {
-                 FELightingPaintingDataForNeon& params = parallelJobs.parameter(job);
-                 params = neonData;
-                 params.yStart = yStart;
--                params.pixels += (yStart - 1) * (data.widthDecreasedByOne + 1) * 4;
-+                params.pixels += (yStart - 1) * data.width * 4;
-                 if (job > 0) {
-                     params.absoluteHeight = yStep;
-                     yStart += yStep;
-                 } else
--                    params.absoluteHeight = data.heightDecreasedByOne - yStart;
-+                    params.absoluteHeight = (data.height - 1) - yStart;
-             }
-             parallelJobs.execute();
-             return;
-@@ -199,5 +201,3 @@ inline void FELighting::platformApplyNeon(const LightingData& data, const LightS
- } // namespace WebCore
-
- #endif // CPU(ARM_NEON) && COMPILER(GCC_COMPATIBLE)
--
--#endif // FELightingNEON_h
-diff --git a/Source/WebCore/platform/graphics/filters/DistantLightSource.h b/Source/WebCore/platform/graphics/filters/DistantLightSource.h
-index 70f583b36e2c..7d5d27e5ccf8 100644
---- a/Source/WebCore/platform/graphics/filters/DistantLightSource.h
-+++ b/Source/WebCore/platform/graphics/filters/DistantLightSource.h
-@@ -26,6 +26,10 @@
- #include <wtf/ArgumentCoder.h>
- #include <wtf/Ref.h>
-
-+namespace WTF {
-+class TextStream;
-+} // namespace WTF
-+
- namespace WebCore {
-
- class DistantLightSource : public LightSource {
-diff --git a/Source/WebCore/platform/graphics/filters/FELighting.h b/Source/WebCore/platform/graphics/filters/FELighting.h
-index 179edf6dba24..694d712d56fd 100644
---- a/Source/WebCore/platform/graphics/filters/FELighting.h
-+++ b/Source/WebCore/platform/graphics/filters/FELighting.h
-@@ -35,8 +35,6 @@
-
- namespace WebCore {
-
--struct FELightingPaintingDataForNeon;
--
- class FELighting : public FilterEffect {
- public:
-     bool operator==(const FELighting&) const;
-@@ -68,11 +66,6 @@ protected:
-
-     std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
-
--#if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE)
--    static int getPowerCoefficients(float exponent);
--    inline void platformApplyNeon(const LightingData&, const LightSource::PaintingData&);
--#endif
--
-     Color m_lightingColor;
-     float m_surfaceScale;
-     float m_diffuseConstant;
-diff --git a/Source/WebCore/platform/graphics/filters/PointLightSource.h b/Source/WebCore/platform/graphics/filters/PointLightSource.h
-index a8cfdab895a9..34f867bba237 100644
---- a/Source/WebCore/platform/graphics/filters/PointLightSource.h
-+++ b/Source/WebCore/platform/graphics/filters/PointLightSource.h
-@@ -26,6 +26,10 @@
- #include "LightSource.h"
- #include <wtf/Ref.h>
-
-+namespace WTF {
-+class TextStream;
-+} // namespace WTF
-+
- namespace WebCore {
-
- class PointLightSource : public LightSource {
-diff --git a/Source/WebCore/platform/graphics/filters/SpotLightSource.h b/Source/WebCore/platform/graphics/filters/SpotLightSource.h
-index 6404467a5b6f..5cac38f22362 100644
---- a/Source/WebCore/platform/graphics/filters/SpotLightSource.h
-+++ b/Source/WebCore/platform/graphics/filters/SpotLightSource.h
-@@ -26,6 +26,10 @@
- #include "LightSource.h"
- #include <wtf/Ref.h>
-
-+namespace WTF {
-+class TextStream;
-+} // namespace WTF
-+
- namespace WebCore {
-
- class SpotLightSource : public LightSource {
-diff --git a/Source/WebCore/platform/graphics/filters/software/FELightingSoftwareApplier.h b/Source/WebCore/platform/graphics/filters/software/FELightingSoftwareApplier.h
-index c974d92115ff..e2896660cfbd 100644
---- a/Source/WebCore/platform/graphics/filters/software/FELightingSoftwareApplier.h
-+++ b/Source/WebCore/platform/graphics/filters/software/FELightingSoftwareApplier.h
-@@ -36,6 +36,7 @@
- namespace WebCore {
-
- class FELighting;
-+struct FELightingPaintingDataForNeon;
-
- class FELightingSoftwareApplier final : public FilterEffectConcreteApplier<FELighting> {
-     WTF_MAKE_FAST_ALLOCATED;
-@@ -132,8 +133,23 @@ private:
-
-     static void applyPlatformGenericPaint(const LightingData&, const LightSource::PaintingData&, int startY, int endY);
-     static void applyPlatformGenericWorker(ApplyParameters*);
-+
-+#if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE)
-+    static int getPowerCoefficients(float exponent);
-+    static void platformApplyNeonWorker(FELightingPaintingDataForNeon*);
-+    inline static void applyPlatformNeon(const LightingData&, const LightSource::PaintingData&);
-+
-+    inline static void applyPlatformGeneric(const LightingData& data, const LightSource::PaintingData& paintingData)
-+    {
-+        applyPlatformNeon(data, paintingData);
-+    }
-+#else
-     static void applyPlatformGeneric(const LightingData&, const LightSource::PaintingData&);
-+#endif
-+
-     static void applyPlatform(const LightingData&);
- };
-
- } // namespace WebCore
-+
-+#include "FELightingNEON.h"
---
-2.43.1
-
package/wpewebkit/0002-GTK-2.42.5-LowLevelInterpreter.cpp-339-21-error-t6-w.patch deleted +0 -39
deleted file mode 100644
index a15d9e647f..0000000000
@@ -1,39 +0,0 @@
-From 3d5373575695b293b8559155431d0079a6153aff Mon Sep 17 00:00:00 2001
-From: Michael Catanzaro <[email protected]>
-Date: Mon, 5 Feb 2024 11:00:49 -0600
-Subject: [PATCH] =?UTF-8?q?[GTK]=20[2.42.5]=20LowLevelInterpreter.cpp:339:?=
- =?UTF-8?q?21:=20error:=20=E2=80=98t6=E2=80=99=20was=20not=20declared=20in?=
- =?UTF-8?q?=20this=20scope=20https://bugs.webkit.org/show=5Fbug.cgi=3Fid?=
- =?UTF-8?q?=3D268739?=
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Unreviewed build fix. Seems a backport went badly, and we didn't notice
-because the code is architecture-specific.
-
-* Source/JavaScriptCore/llint/LowLevelInterpreter.cpp:
-(JSC::CLoop::execute):
-
-Upstream: https://github.com/WebKit/WebKit/commit/3d5373575695b293b8559155431d0079a6153aff
-Signed-off-by: Adrian Perez de Castro <[email protected]>
----
- Source/JavaScriptCore/llint/LowLevelInterpreter.cpp | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
-index 5064ead6cd2e..9a2e2653b121 100644
---- a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
-+++ b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
-@@ -336,8 +336,6 @@ JSValue CLoop::execute(OpcodeID entryOpcodeID, void* executableAddress, VM* vm,
-     UNUSED_VARIABLE(t2);
-     UNUSED_VARIABLE(t3);
-     UNUSED_VARIABLE(t5);
--    UNUSED_VARIABLE(t6);
--    UNUSED_VARIABLE(t7);
-
-     struct StackPointerScope {
-         StackPointerScope(CLoopStack& stack)
---
-2.43.1
-
package/wpewebkit/Config.in +0 -1
index 432aa4c3a3..e4b0320e1d 100644
@@ -54,7 +54,6 @@ config BR2_PACKAGE_WPEWEBKIT
 	select BR2_PACKAGE_LIBSOUP3
 	select BR2_PACKAGE_LIBTASN1
 	select BR2_PACKAGE_LIBXSLT
-	select BR2_PACKAGE_OPENJPEG
 	select BR2_PACKAGE_WAYLAND
 	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 	select BR2_PACKAGE_WEBP
package/wpewebkit/wpewebkit.hash +4 -3
index 71e41bb1dd..efa240a69e 100644
@@ -1,6 +1,7 @@
-# From https://wpewebkit.org/releases/wpewebkit-2.42.5.tar.xz.sums
-sha1  50a18f43452520e9f34f84c04bc0166af655ffff  wpewebkit-2.42.5.tar.xz
-sha256  4dbab6c5e6dc0c65a3d7dffc1c2390be5f9abd423faf983fe3a55fe081df0532  wpewebkit-2.42.5.tar.xz
+# From https://wpewebkit.org/releases/wpewebkit-2.44.2.tar.lz.sums
+md5  17fd8ff4044c44fc544f0f92a2619936  wpewebkit-2.44.2.tar.lz
+sha1  09dd3346b53e09ffd6bb8ae1473e61f5618bd0b3  wpewebkit-2.44.2.tar.lz
+sha256  9b9c94d608482f141c8358fca380a0b155e02f32643d8b8753a6268d1697fb0e  wpewebkit-2.44.2.tar.lz
 
 # Hashes for license files:
 sha256  0b5d3a7cc325942567373b0ecd757d07c132e0ebd7c97bfc63f7e1a76094edb4  Source/WebCore/LICENSE-APPLE
package/wpewebkit/wpewebkit.mk +23 -9
index 442709848a..e09867ac63 100644
@@ -5,9 +5,9 @@
 ################################################################################
 
 # The middle number is even for stable releases, odd for development ones.
-WPEWEBKIT_VERSION = 2.42.5
+WPEWEBKIT_VERSION = 2.44.2
 WPEWEBKIT_SITE = https://wpewebkit.org/releases
-WPEWEBKIT_SOURCE = wpewebkit-$(WPEWEBKIT_VERSION).tar.xz
+WPEWEBKIT_SOURCE = wpewebkit-$(WPEWEBKIT_VERSION).tar.lz
 WPEWEBKIT_INSTALL_STAGING = YES
 WPEWEBKIT_LICENSE = LGPL-2.1+, BSD-2-Clause
 WPEWEBKIT_LICENSE_FILES = \
@@ -17,18 +17,18 @@ WPEWEBKIT_CPE_ID_VENDOR = wpewebkit
 WPEWEBKIT_CPE_ID_PRODUCT = wpe_webkit
 WPEWEBKIT_DEPENDENCIES = host-gperf host-python3 host-ruby host-unifdef \
 	harfbuzz cairo icu jpeg libepoxy libgcrypt libgles libsoup3 libtasn1 \
-	libpng libxslt openjpeg wayland-protocols webp wpebackend-fdo
+	libpng libxslt wayland-protocols webp wpebackend-fdo
 
 WPEWEBKIT_CMAKE_BACKEND = ninja
 
 WPEWEBKIT_CONF_OPTS = \
 	-DPORT=WPE \
-	-DENABLE_ACCESSIBILITY=OFF \
 	-DENABLE_API_TESTS=OFF \
 	-DENABLE_DOCUMENTATION=OFF \
 	-DENABLE_INTROSPECTION=OFF \
 	-DENABLE_MINIBROWSER=OFF \
 	-DENABLE_WEB_RTC=OFF \
+	-DUSE_ATK=OFF \
 	-DUSE_AVIF=OFF
 
 ifeq ($(BR2_PACKAGE_WPEWEBKIT_SANDBOX),y)
@@ -44,12 +44,14 @@ endif
 ifeq ($(BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA),y)
 WPEWEBKIT_CONF_OPTS += \
 	-DENABLE_VIDEO=ON \
-	-DENABLE_WEB_AUDIO=ON
+	-DENABLE_WEB_AUDIO=ON \
+	-DENABLE_WEB_CODECS=ON
 WPEWEBKIT_DEPENDENCIES += gstreamer1 gst1-libav gst1-plugins-base
 else
 WPEWEBKIT_CONF_OPTS += \
 	-DENABLE_VIDEO=OFF \
-	-DENABLE_WEB_AUDIO=OFF
+	-DENABLE_WEB_AUDIO=OFF \
+	-DENABLE_WEB_CODECS=OFF
 endif
 
 ifeq ($(BR2_PACKAGE_WPEWEBKIT_MEDIA_STREAM),y)
@@ -78,6 +80,13 @@ else
 WPEWEBKIT_CONF_OPTS += -DUSE_LCMS=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBBACKTRACE),y)
+WPEWEBKIT_CONF_OPTS += -DUSE_LIBBACKTRACE=ON
+WPEWEBKIT_DEPENDENCIES += libbacktrace
+else
+WPEWEBKIT_CONF_OPTS += -DUSE_LIBBACKTRACE=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_WOFF2),y)
 WPEWEBKIT_CONF_OPTS += -DUSE_WOFF2=ON
 WPEWEBKIT_DEPENDENCIES += woff2
@@ -110,14 +119,19 @@ endif
 # have a check for these processors. The same goes for ARMv5 and ARMv6.
 # Disable JIT forcibly here and use the CLoop interpreter instead.
 #
-# Also, we have to disable the sampling profiler, which does NOT work
-# with ENABLE_C_LOOP.
+# Also, we have to disable the sampling profiler and WebAssembly, which
+# do NOT work with ENABLE_C_LOOP.
 #
 # Upstream bugs: https://bugs.webkit.org/show_bug.cgi?id=191258
 #                https://bugs.webkit.org/show_bug.cgi?id=172765
+#                https://bugs.webkit.org/show_bug.cgi?id=265218
 #
 ifeq ($(BR2_ARM_CPU_ARMV5)$(BR2_ARM_CPU_ARMV6)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
-WPEWEBKIT_CONF_OPTS += -DENABLE_JIT=OFF -DENABLE_C_LOOP=ON -DENABLE_SAMPLING_PROFILER=OFF
+WPEWEBKIT_CONF_OPTS += \
+	-DENABLE_JIT=OFF \
+	-DENABLE_C_LOOP=ON \
+	-DENABLE_SAMPLING_PROFILER=OFF \
+	-DENABLE_WEBASSEMBLY=OFF
 endif
 
 $(eval $(cmake-package))
Signature · 6 lines
2.45.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Re: [Buildroot] [PATCH 2/4] package/wpewebkit: security bump to version 2.44.2

Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

Update to the most recent stable release of WPE WebKit. As this is a change to a newer release series, there are a few changes in the CMake build options. Dependencies mostly remain the same. The main changes are:

- The new ENABLE_WEB_CODECS option is set along with ENABLE_VIDEO and ENABLE_WEB_RTC depending on BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA.
- The new USE_LIBBACKTRACE option is set accordingly, depending on BR2_PACKAGE_LIBBACKTRACE.
- WebAssembly does not work with ENABLE_C_LOOP, so it needs to be disabled alongside it for MIPSr6, ARMv5 and ARMv6; not that building WebAssembly support is enabled by default.
- ENABLE_ACCESSIBILITY has been removed, instead the new USE_ATK option can be used to the same effect.
- JPEG2000 is no longer supported, the openjpeg dependency is removed.

Release notes and announcement:

- https://wpewebkit.org/blog/2024-wpewebkit-2.44.html

- https://wpewebkit.org/release/wpewebkit-2.44.0.html
- https://wpewebkit.org/release/wpewebkit-2.44.1.html
- https://wpewebkit.org/release/wpewebkit-2.44.2.html

Relevant security advisories:

- https://wpewebkit.org/security/WSA-2024-0002.html
- https://wpewebkit.org/security/WSA-2024-0003.html

WPEWEBKIT_SITE = https://wpewebkit.org/releases

package/wpewebkit/wpewebkit.mk line 10

Quoted 2 lines
package/wpewebkit/wpewebkit.mk +1 -1
-WPEWEBKIT_SOURCE = wpewebkit-$(WPEWEBKIT_VERSION).tar.xz
+WPEWEBKIT_SOURCE = wpewebkit-$(WPEWEBKIT_VERSION).tar.lz

I know of the xz backdoor issue, but we use .xz in a LOT of packages and upstream provides .tar.xz, so I prefer to use that here as well to not have to pull in host-lzip.

Committed with that changed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH 2/4] package/wpewebkit: security bump to version 2.44.2

Hi Peter, all,

Quoted 33 lines · On Wed, 29 May 2024 08:16:17 +0200 Peter Korsgaard <[email protected]> wrote:
Quoted 32 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

Update to the most recent stable release of WPE WebKit. As this is a change to a newer release series, there are a few changes in the CMake build options. Dependencies mostly remain the same. The main changes are:

- The new ENABLE_WEB_CODECS option is set along with ENABLE_VIDEO and ENABLE_WEB_RTC depending on BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA.
- The new USE_LIBBACKTRACE option is set accordingly, depending on BR2_PACKAGE_LIBBACKTRACE.
- WebAssembly does not work with ENABLE_C_LOOP, so it needs to be disabled alongside it for MIPSr6, ARMv5 and ARMv6; not that building WebAssembly support is enabled by default.
- ENABLE_ACCESSIBILITY has been removed, instead the new USE_ATK option can be used to the same effect.
- JPEG2000 is no longer supported, the openjpeg dependency is removed.

Release notes and announcement:

- https://wpewebkit.org/blog/2024-wpewebkit-2.44.html

- https://wpewebkit.org/release/wpewebkit-2.44.0.html
- https://wpewebkit.org/release/wpewebkit-2.44.1.html
- https://wpewebkit.org/release/wpewebkit-2.44.2.html

Relevant security advisories:

- https://wpewebkit.org/security/WSA-2024-0002.html
- https://wpewebkit.org/security/WSA-2024-0003.html

Quoted 7 lines

package/wpewebkit/wpewebkit.mk line 10

Quoted 3 lines

WPEWEBKIT_SITE = https://wpewebkit.org/releases

package/wpewebkit/wpewebkit.mk +1 -1
-WPEWEBKIT_SOURCE = wpewebkit-$(WPEWEBKIT_VERSION).tar.xz
+WPEWEBKIT_SOURCE = wpewebkit-$(WPEWEBKIT_VERSION).tar.lz

I know of the xz backdoor issue, but we use .xz in a LOT of packages and upstream provides .tar.xz, so I prefer to use that here as well to not have to pull in host-lzip.

Yes, I've been following the discussion, and how Buildroot wasn't affected due to being somewhat slow picking updates =)

Good to know that you prefer to keep using .xz packages, I have just submitted a version bump to Cog and kept using .xz as well there.

Quoted 1 line

Committed with that changed, thanks.

Thank you!

Cheers,
—Adrián

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#7 lore raw

Re: [Buildroot] [PATCH 2/4] package/wpewebkit: security bump to version 2.44.2

In reply to Adrian Perez de Castro
Quoted 26 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

Update to the most recent stable release of WPE WebKit. As this is a change to a newer release series, there are a few changes in the CMake build options. Dependencies mostly remain the same. The main changes are:

- The new ENABLE_WEB_CODECS option is set along with ENABLE_VIDEO and ENABLE_WEB_RTC depending on BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA.
- The new USE_LIBBACKTRACE option is set accordingly, depending on BR2_PACKAGE_LIBBACKTRACE.
- WebAssembly does not work with ENABLE_C_LOOP, so it needs to be disabled alongside it for MIPSr6, ARMv5 and ARMv6; not that building WebAssembly support is enabled by default.
- ENABLE_ACCESSIBILITY has been removed, instead the new USE_ATK option can be used to the same effect.
- JPEG2000 is no longer supported, the openjpeg dependency is removed.

Release notes and announcement:

- https://wpewebkit.org/blog/2024-wpewebkit-2.44.html

- https://wpewebkit.org/release/wpewebkit-2.44.0.html
- https://wpewebkit.org/release/wpewebkit-2.44.1.html
- https://wpewebkit.org/release/wpewebkit-2.44.2.html

Quoted 6 lines

Relevant security advisories:

- https://wpewebkit.org/security/WSA-2024-0002.html
- https://wpewebkit.org/security/WSA-2024-0003.html

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

PATCH 3/4 package/libavif: new package

In reply to Adrian Perez de Castro

libavif is an implementation of the AV1F image format, which may be a frontend for different encoders and decoders. At the moment only dav1d is packaged so that is the one configured.

---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/libavif/Config.in    | 13 +++++++++++++
 package/libavif/libavif.hash |  3 +++
 package/libavif/libavif.mk   | 34 ++++++++++++++++++++++++++++++++++
 5 files changed, 52 insertions(+)
 create mode 100644 package/libavif/Config.in
 create mode 100644 package/libavif/libavif.hash
 create mode 100644 package/libavif/libavif.mk
DEVELOPERS +1 -0
index 52c9b84a9d..f9539719cc 100644
@@ -55,6 +55,7 @@ F:	package/brotli/
 F:	package/bubblewrap/
 F:	package/cage/
 F:	package/cog/
+F:	package/libavif/
 F:	package/libepoxy/
 F:	package/libmanette/
 F:	package/libpsl/
package/Config.in +1 -0
index 1b6a5b0dab..e83642823e 100644
@@ -1674,6 +1674,7 @@ menu "Graphics"
 	source "package/leptonica/Config.in"
 	source "package/lesstif/Config.in"
 	source "package/libart/Config.in"
+	source "package/libavif/Config.in"
 	source "package/libdecor/Config.in"
 	source "package/libdmtx/Config.in"
 	source "package/libdri2/Config.in"
package/libavif/Config.in new file +13 -0
new file mode 100644
index 0000000000..a15e9fc733
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LIBAVIF
+	bool "libavif"
+	depends on !BR2_STATIC_LIBS # dav1d, dlfcn.h
+	depends on BR2_TOOLCHAIN_HAS_THREADS # dav1d, pthread
+	select BR2_PACKAGE_DAV1D
+	help
+	  Friendly, portable C implementation of the AV1 Image File
+	  Format.
+
+	  https://github.com/AOMediaCodec/libavif
+
+comment "libavif needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/libavif/libavif.hash new file +3 -0
new file mode 100644
index 0000000000..f4599cdb0b
@@ -0,0 +1,3 @@
+sha256  dc56708c83a4b934a8af2b78f67f866ba2fb568605c7cf94312acf51ee57d146  libavif-1.0.4.tar.gz
+
+sha256  10952217a6d404de8bf8a997fbea9b88f682df1fe98cb9b9f467ade641525639  LICENSE
package/libavif/libavif.mk new file +34 -0
new file mode 100644
index 0000000000..fbd313114d
@@ -0,0 +1,34 @@
+################################################################################
+#
+# libavif
+#
+################################################################################
+
+LIBAVIF_VERSION = 1.0.4
+LIBAVIF_SITE = $(call github,AOMediaCodec,libavif,v$(LIBAVIF_VERSION))
+LIBAVIF_LICENSE =
+LIBAVIF_LICENSE_FILES = LICENSE
+LIBAVIF_INSTALL_STAGING = YES
+
+# Only the dav1d decoder is packaged at the moment.
+LIBAVIF_DEPENDENCIES = dav1d
+LIBAVIF_CONF_OPTS = \
+	-DAVIF_BUILD_APPS=OFF \
+	-DAVIF_BUILD_EXAMPLES=OFF \
+	-DAVIF_BUILD_MAN_PAGES=OFF \
+	-DAVIF_BUILD_TESTS=OFF \
+	-DAVIF_CODEC_AOM=OFF \
+	-DAVIF_CODEC_DAV1D=ON \
+	-DAVIF_CODEC_LIBGAV1=OFF \
+	-DAVIF_CODEC_RAV1E=OFF \
+	-DAVIF_CODEC_SVT=OFF \
+	-DAVIF_CODEC_AVM=OFF \
+	-DAVIF_ENABLE_GTEST=OFF
+
+# There is no CMake options to explicitly enable/disable usage of
+# libyuv, only autodetection :-(
+ifeq ($(BR2_PACKAGE_LIBYUV),y)
+LIBAVIF_DEPENDENCIES += libyuv
+endif
+
+$(eval $(cmake-package))
Signature · 6 lines
2.45.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw

Re: [Buildroot] [PATCH 3/4] package/libavif: new package

Quoted 5 lines · On Wed, 22 May 2024 12:16:06 +0300 Adrian Perez de Castro <[email protected]>…

libavif is an implementation of the AV1F image format, which may be a frontend for different encoders and decoders. At the moment only dav1d is packaged so that is the one configured.

Thanks, applied, with one change. See below.

package/libavif/libavif.mk line 9

Quoted 3 lines
package/libavif/libavif.mk new file +3 -0
+LIBAVIF_VERSION = 1.0.4
+LIBAVIF_SITE = $(call github,AOMediaCodec,libavif,v$(LIBAVIF_VERSION))
+LIBAVIF_LICENSE =

Too lazy to figure out the license terms? :-))

I changed to:

+LIBAVIF_LICENSE = BSD-2-Clause, IJG, Apache-2.0

and applied to master. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw

Re: [Buildroot] [PATCH 3/4] package/libavif: new package

Hello!

(Coming back slowly from being one month AFK, sorry for the delay replying.)

Quoted 17 lines · On Fri, 12 Jul 2024 23:05:53 +0200 Thomas Petazzoni via buildroot…
Quoted 5 lines · On Wed, 22 May 2024 12:16:06 +0300 Adrian Perez de Castro <[email protected]>…

libavif is an implementation of the AV1F image format, which may be a frontend for different encoders and decoders. At the moment only dav1d is packaged so that is the one configured.

Thanks, applied, with one change. See below.

package/libavif/libavif.mk line 9

Quoted 3 lines
package/libavif/libavif.mk new file +3 -0
+LIBAVIF_VERSION = 1.0.4
+LIBAVIF_SITE = $(call github,AOMediaCodec,libavif,v$(LIBAVIF_VERSION))
+LIBAVIF_LICENSE =

Too lazy to figure out the license terms? :-))

Quoted 3 lines

I changed to:

+LIBAVIF_LICENSE = BSD-2-Clause, IJG, Apache-2.0

Ouch, when I started writing the package I thought "will fill this later, let's figure out how to build first" and then completely forgot to update the empty variable. Thanks!

On a related note, I submitted a version bump for libavif earlier today:

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Cheers,
—Adrián

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#11 lore raw

Re: [Buildroot] [PATCH 3/4] package/libavif: new package

Hello Adrian,

Quoted 1 line · On Mon, 5 Aug 2024 16:19:48 +0300 Adrian Perez de Castro <[email protected]>…

(Coming back slowly from being one month AFK, sorry for the delay replying.)

Hope you had a good time AFK :-)

Quoted 3 lines

Ouch, when I started writing the package I thought "will fill this later, let's figure out how to build first" and then completely forgot to update the empty variable. Thanks!

Ah ah :-)

Quoted 3 lines

On a related note, I submitted a version bump for libavif earlier today:

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

I'll reply to it, it has another license issue :-)

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#12 lore raw

PATCH 4/4 package/wpewebkit: use libavif if enabled

In reply to Adrian Perez de Castro

Make wpewebkit pick a value for the USE_AVIF option depending on BR2_PACKAGE_LIBAVIF.

---
 package/wpewebkit/wpewebkit.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
package/wpewebkit/wpewebkit.mk +8 -2
index e09867ac63..012d0f7f0b 100644
@@ -28,8 +28,7 @@ WPEWEBKIT_CONF_OPTS = \
 	-DENABLE_INTROSPECTION=OFF \
 	-DENABLE_MINIBROWSER=OFF \
 	-DENABLE_WEB_RTC=OFF \
-	-DUSE_ATK=OFF \
-	-DUSE_AVIF=OFF
+	-DUSE_ATK=OFF
 
 ifeq ($(BR2_PACKAGE_WPEWEBKIT_SANDBOX),y)
 WPEWEBKIT_CONF_OPTS += \
@@ -61,6 +60,13 @@ else
 WPEWEBKIT_CONF_OPTS += -DENABLE_MEDIA_STREAM=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBAVIF),y)
+WPEWEBKIT_CONF_OPTS += -DUSE_AVIF=ON
+WPEWEBKIT_DEPENDENCIES += libavif
+else
+WPEWEBKIT_CONF_OPTS += -DUSE_AVIF=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_WPEWEBKIT_USE_GSTREAMER_GL),y)
 WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_GL=ON
 else
Signature · 6 lines
2.45.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#13 lore raw

Re: [Buildroot] [PATCH 4/4] package/wpewebkit: use libavif if enabled

Quoted 7 lines · On Wed, 22 May 2024 12:16:07 +0300 Adrian Perez de Castro <[email protected]>…

Make wpewebkit pick a value for the USE_AVIF option depending on BR2_PACKAGE_LIBAVIF.

---
 package/wpewebkit/wpewebkit.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot