Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: Makefile
===================================================================
--- Makefile	(nonexistent)
+++ Makefile	(revision 85)
@@ -0,0 +1,58 @@
+
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
+
+
+include ../../../../build-system/constants.mk
+
+
+url         = $(DOWNLOAD_SERVER)/sources/packages/x/webkitgtk
+
+versions    = 2.40.1
+pkgname     = webkitgtk
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+patches     = $(CURDIR)/patches/webkitgtk-2.40.1-bwrap-cross.patch
+patches    += $(CURDIR)/patches/webkitgtk-2.40.1-source-brush.patch
+
+.NOTPARALLEL: $(patches)
+
+
+BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
+
+
+include ../../../../build-system/core.mk
+
+
+.PHONY: download_clean
+
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======" ; \
+	 for tarball in $(tarballs) ; do \
+	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
+	 done ; wait
+
+$(sha1s): $(tarballs)
+	@for sha in $@ ; do \
+	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
+	   touch $$sha ; \
+	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+	   sha1sum --check $$sha ; ret="$$?" ; \
+	   if [ "$$ret" == "1" ]; then \
+	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+	     exit 1 ; \
+	   fi ; \
+	 done
+
+$(patches): $(sha1s)
+	@echo -e "\n======= Create Patches =======\n" ; \
+	 ( cd create-2.40.1-bwrap-cross-patch  ; ./create.patch.sh ) ; \
+	 ( cd create-2.40.1-source-brush-patch ; ./create.patch.sh ) ; \
+	 echo -e "\n"
+
+download_clean:
+	@rm -f $(tarballs) $(sha1s) $(patches)
Index: create-2.40.1-bwrap-cross-patch/create.patch.sh
===================================================================
--- create-2.40.1-bwrap-cross-patch/create.patch.sh	(nonexistent)
+++ create-2.40.1-bwrap-cross-patch/create.patch.sh	(revision 85)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=2.40.1
+
+tar --files-from=file.list -xJvf ../webkitgtk-$VERSION.tar.xz
+mv webkitgtk-$VERSION webkitgtk-$VERSION-orig
+
+cp -rf ./webkitgtk-$VERSION-new ./webkitgtk-$VERSION
+
+diff --unified -Nr  webkitgtk-$VERSION-orig  webkitgtk-$VERSION > webkitgtk-$VERSION-bwrap-cross.patch
+
+mv webkitgtk-$VERSION-bwrap-cross.patch ../patches
+
+rm -rf ./webkitgtk-$VERSION
+rm -rf ./webkitgtk-$VERSION-orig

Property changes on: create-2.40.1-bwrap-cross-patch/create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: create-2.40.1-bwrap-cross-patch/file.list
===================================================================
--- create-2.40.1-bwrap-cross-patch/file.list	(nonexistent)
+++ create-2.40.1-bwrap-cross-patch/file.list	(revision 85)
@@ -0,0 +1 @@
+webkitgtk-2.40.1/Source/cmake/BubblewrapSandboxChecks.cmake
Index: create-2.40.1-bwrap-cross-patch/webkitgtk-2.40.1-new/Source/cmake/BubblewrapSandboxChecks.cmake
===================================================================
--- create-2.40.1-bwrap-cross-patch/webkitgtk-2.40.1-new/Source/cmake/BubblewrapSandboxChecks.cmake	(nonexistent)
+++ create-2.40.1-bwrap-cross-patch/webkitgtk-2.40.1-new/Source/cmake/BubblewrapSandboxChecks.cmake	(revision 85)
@@ -0,0 +1,19 @@
+if (ENABLE_BUBBLEWRAP_SANDBOX)
+    find_program(BWRAP_EXECUTABLE bwrap)
+    if (NOT BWRAP_EXECUTABLE)
+        message(FATAL_ERROR "bwrap executable is needed for ENABLE_BUBBLEWRAP_SANDBOX")
+    endif ()
+
+    find_package(Libseccomp)
+    if (NOT Libseccomp_FOUND)
+        message(FATAL_ERROR "libseccomp is needed for ENABLE_BUBBLEWRAP_SANDBOX")
+    endif ()
+
+    find_program(DBUS_PROXY_EXECUTABLE xdg-dbus-proxy)
+    if (NOT DBUS_PROXY_EXECUTABLE)
+        message(FATAL_ERROR "xdg-dbus-proxy not found and is needed for ENABLE_BUBBLEWRAP_SANDBOX")
+    endif ()
+
+    add_definitions(-DBWRAP_EXECUTABLE="${BWRAP_EXECUTABLE}")
+    add_definitions(-DDBUS_PROXY_EXECUTABLE="${DBUS_PROXY_EXECUTABLE}")
+endif ()
Index: create-2.40.1-source-brush-patch/create.patch.sh
===================================================================
--- create-2.40.1-source-brush-patch/create.patch.sh	(nonexistent)
+++ create-2.40.1-source-brush-patch/create.patch.sh	(revision 85)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=2.40.1
+
+tar --files-from=file.list -xJvf ../webkitgtk-$VERSION.tar.xz
+mv webkitgtk-$VERSION webkitgtk-$VERSION-orig
+
+cp -rf ./webkitgtk-$VERSION-new ./webkitgtk-$VERSION
+
+diff --unified -Nr  webkitgtk-$VERSION-orig  webkitgtk-$VERSION > webkitgtk-$VERSION-source-brush.patch
+
+mv webkitgtk-$VERSION-source-brush.patch ../patches
+
+rm -rf ./webkitgtk-$VERSION
+rm -rf ./webkitgtk-$VERSION-orig

Property changes on: create-2.40.1-source-brush-patch/create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: create-2.40.1-source-brush-patch/file.list
===================================================================
--- create-2.40.1-source-brush-patch/file.list	(nonexistent)
+++ create-2.40.1-source-brush-patch/file.list	(revision 85)
@@ -0,0 +1 @@
+webkitgtk-2.40.1/Source/WebCore/platform/graphics/SourceBrush.cpp
Index: create-2.40.1-source-brush-patch/webkitgtk-2.40.1-new/Source/WebCore/platform/graphics/SourceBrush.cpp
===================================================================
--- create-2.40.1-source-brush-patch/webkitgtk-2.40.1-new/Source/WebCore/platform/graphics/SourceBrush.cpp	(nonexistent)
+++ create-2.40.1-source-brush-patch/webkitgtk-2.40.1-new/Source/WebCore/platform/graphics/SourceBrush.cpp	(revision 85)
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2022 Apple Inc.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "SourceBrush.h"
+
+namespace WebCore {
+
+SourceBrush::SourceBrush(const Color& color, std::optional<Brush>&& brush)
+    : m_color(color)
+    , m_brush(WTFMove(brush))
+{
+}
+
+const AffineTransform& SourceBrush::gradientSpaceTransform() const
+{
+    if (!m_brush)
+        return identity;
+
+    if (auto* gradient = std::get_if<Brush::LogicalGradient>(&m_brush->brush))
+        return gradient->spaceTransform;
+
+    return identity;
+}
+
+Gradient* SourceBrush::gradient() const
+{
+    if (!m_brush)
+        return nullptr;
+    if (auto* gradient = std::get_if<Brush::LogicalGradient>(&m_brush->brush))
+        return gradient->gradient.ptr();
+    return nullptr;
+}
+
+Pattern* SourceBrush::pattern() const
+{
+    if (!m_brush)
+        return nullptr;
+    if (auto* pattern = std::get_if<Ref<Pattern>>(&m_brush->brush))
+        return pattern->ptr();
+    return nullptr;
+}
+
+void SourceBrush::setGradient(Ref<Gradient>&& gradient, const AffineTransform& spaceTransform)
+{
+    m_brush = Brush { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } };
+}
+
+void SourceBrush::setPattern(Ref<Pattern>&& pattern)
+{
+    m_brush = Brush { Brush::Variant { std::in_place_type<Ref<Pattern>>, WTFMove(pattern) } };
+}
+
+WTF::TextStream& operator<<(TextStream& ts, const SourceBrush& brush)
+{
+    ts.dumpProperty("color", brush.color());
+
+    if (auto gradient = brush.gradient()) {
+        ts.dumpProperty("gradient", *gradient);
+        ts.dumpProperty("gradient-space-transform", brush.gradientSpaceTransform());
+    }
+
+    if (auto pattern = brush.pattern())
+        ts.dumpProperty("pattern", pattern);
+
+    return ts;
+}
+
+} // namespace WebCore
Index: patches/README
===================================================================
--- patches/README	(nonexistent)
+++ patches/README	(revision 85)
@@ -0,0 +1,6 @@
+
+/* begin *
+
+   TODO: Leave some comment here.
+
+ * end */
Index: patches
===================================================================
--- patches	(nonexistent)
+++ patches	(revision 85)

Property changes on: patches
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 85)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~