Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Various release fixes #605

Merged
merged 9 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ RDEPENDS:${PN} = " \
\
luneos-default-wallpapers \
\
https-everywhere \
storaged \
messwerk \
fingerterm \
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ EnvironmentFile=-/var/systemd/system/env/appinstalld.env
Environment=CHARSET=UTF-8
ExecStart=/usr/sbin/appinstalld
Restart=on-failure

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 46dc5f09dd85a6ff24fa6bff1d3f3b23cfc1f59f Mon Sep 17 00:00:00 2001
From add7e7fca94c0a159c8ab82054b96b51f7359aba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
Date: Sun, 16 Jul 2023 18:18:02 +0300
Subject: [PATCH] avcodec/x86/mathops: clip constants used with shift
Expand All @@ -11,7 +11,7 @@ Fixes assembling with binutil as >= 2.41
Fixes:
http://gecko.lge.com:8000/Errors/Details/651713

FAILED: obj/third_party/ffmpeg/ffmpeg_internal/opus_rc.o
FAILED: obj/third_party/ffmpeg/ffmpeg_internal/opus_rc.o
x86_64-webos-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/BUILD/work/qemux86_64-webos-linux/webruntime/94.0.4606.128-39-r66.2/recipe-sysroot -MMD -MF obj/third_party/ffmpeg/ffmpeg_internal/opus_rc.o.d -DHAVE_AV_CONFIG_H -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DFFMPEG_CONFIGURATION=NULL -D_ISOC99_SOURCE -D_LARGEFILE_SOURCE -DENABLE_BROWSER_CONTROL_WEBAPI=1 -DENABLE_SAMPLE_WEBAPI=1 -DENABLE_MEMORYMANAGER_WEBAPI=1 -DENABLE_WEBOS_SERVICE_BRIDGE_WEBAPI=1 -DENABLE_WEBOS_SYSTEM_WEBAPI=1 -DNEVA_DCHECK_ALWAYS_ON=1 -DOZONE_PLATFORM_WAYLAND_EXTERNAL=1 -DNEVA_OZONE_PLATFORM_WAYLAND=1 -DOS_WEBOS=1 -DNEVA_VIDEO_HOLE=1 -DUSE_NEVA_APPRUNTIME=1 -DUSE_NEVA_MEDIA=1 -DUSE_GAV=1 -DUSE_NEVA_BROWSER_SERVICE=1 -DUSE_WEBRISK_SERVICE=1 -DUSE_NEVA_PUNCH_HOLE=1 -DUSE_GST_MEDIA=1 -DUSE_CBE=1 -DUSE_PMLOG=1 -DUSE_NEVA_SUSPEND_MEDIA_CAPTURE=1 -DUSE_FILESCHEME_CODECACHE=1 -DWEBOS_SUBMISSION_NUMBER=39 -DUSE_LOCAL_STORAGE_TRACKER=1 -DUSE_LTTNG=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../git/src/third_party/ffmpeg/chromium/config/Chrome/linux/x64 -I../../git/src/third_party/ffmpeg -I../../git/src/neva -Igen/neva -I../../git/src -Igen -I../../git/src/third_party/opus/src/include -fPIC -Wno-deprecated-declarations -fomit-frame-pointer -w -std=c99 -pthread -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Wno-unused-variable -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -g0 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-attributes -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fdata-sections -ffunction-sections -std=gnu11 -c ../../git/src/third_party/ffmpeg/libavcodec/opus_rc.c -o obj/third_party/ffmpeg/ffmpeg_internal/opus_rc.o
../../git/src/third_party/ffmpeg/libavcodec/x86/mathops.h: Assembler messages:
../../git/src/third_party/ffmpeg/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
Expand All @@ -24,7 +24,7 @@ x86_64-webos-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fsta
../../git/src/third_party/ffmpeg/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
[4005/43247] CC obj/third_party/ffmpeg/ffmpeg_internal/vorbis_data.o

FAILED: obj/third_party/ffmpeg/ffmpeg_internal/vorbis_parser.o
FAILED: obj/third_party/ffmpeg/ffmpeg_internal/vorbis_parser.o
x86_64-webos-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/BUILD/work/qemux86_64-webos-linux/webruntime/94.0.4606.128-39-r66.2/recipe-sysroot -MMD -MF obj/third_party/ffmpeg/ffmpeg_internal/vorbis_parser.o.d -DHAVE_AV_CONFIG_H -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DFFMPEG_CONFIGURATION=NULL -D_ISOC99_SOURCE -D_LARGEFILE_SOURCE -DENABLE_BROWSER_CONTROL_WEBAPI=1 -DENABLE_SAMPLE_WEBAPI=1 -DENABLE_MEMORYMANAGER_WEBAPI=1 -DENABLE_WEBOS_SERVICE_BRIDGE_WEBAPI=1 -DENABLE_WEBOS_SYSTEM_WEBAPI=1 -DNEVA_DCHECK_ALWAYS_ON=1 -DOZONE_PLATFORM_WAYLAND_EXTERNAL=1 -DNEVA_OZONE_PLATFORM_WAYLAND=1 -DOS_WEBOS=1 -DNEVA_VIDEO_HOLE=1 -DUSE_NEVA_APPRUNTIME=1 -DUSE_NEVA_MEDIA=1 -DUSE_GAV=1 -DUSE_NEVA_BROWSER_SERVICE=1 -DUSE_WEBRISK_SERVICE=1 -DUSE_NEVA_PUNCH_HOLE=1 -DUSE_GST_MEDIA=1 -DUSE_CBE=1 -DUSE_PMLOG=1 -DUSE_NEVA_SUSPEND_MEDIA_CAPTURE=1 -DUSE_FILESCHEME_CODECACHE=1 -DWEBOS_SUBMISSION_NUMBER=39 -DUSE_LOCAL_STORAGE_TRACKER=1 -DUSE_LTTNG=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../git/src/third_party/ffmpeg/chromium/config/Chrome/linux/x64 -I../../git/src/third_party/ffmpeg -I../../git/src/neva -Igen/neva -I../../git/src -Igen -I../../git/src/third_party/opus/src/include -fPIC -Wno-deprecated-declarations -fomit-frame-pointer -w -std=c99 -pthread -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Wno-unused-variable -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -g0 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-attributes -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fdata-sections -ffunction-sections -std=gnu11 -c ../../git/src/third_party/ffmpeg/libavcodec/vorbis_parser.c -o obj/third_party/ffmpeg/ffmpeg_internal/vorbis_parser.o
../../git/src/third_party/ffmpeg/libavcodec/x86/mathops.h: Assembler messages:
../../git/src/third_party/ffmpeg/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
From 87537c2d6e2fd32c251c72b0cdf79f3dc28ee0c3 Mon Sep 17 00:00:00 2001
From 228678afe57795a36dbb2cf9f4458d8cdcaf2e20 Mon Sep 17 00:00:00 2001
From: Christophe Chapuis <chris.chapuis@gmail.com>
Date: Wed, 16 Mar 2022 18:48:35 +0000
Subject: [PATCH] run_app_shell: fix XDG_RUNTIME_DIR for LuneOS

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Upstream-Status: Pending
---
Upstream-Status: Pending

src/webos/install/app_shell/run_app_shell | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
From 942feee3f959de1dbc84fe2927de8c63f0d7247b Mon Sep 17 00:00:00 2001
From 76d9418bbed76f80799e458589232d0707c39b9a Mon Sep 17 00:00:00 2001
From: Herman van Hazendonk <github.com@herrie.org>
Date: Wed, 7 Dec 2022 07:42:34 +0100
Subject: [PATCH] Add window.open support

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Upstream-Status: Pending

%% original patch: 0004-Add-window.open-support.patch
---
.../browser/web_contents/web_contents_impl.cc | 14 +++++
Upstream-Status: Pending

.../browser/web_contents/web_contents_impl.cc | 14 ++++++
.../browser/web_contents/web_contents_impl.h | 5 ++
src/content/public/browser/web_contents.h | 3 ++
.../common/common_param_traits_macros.h | 1 +
.../renderer/window_features_converter.cc | 2 +
.../app_runtime/public/webview_delegate.h | 7 +++
src/neva/app_runtime/webview.cc | 51 +++++++++++++++----
src/neva/app_runtime/webview.h | 16 +++++-
src/neva/app_runtime/webview.cc | 47 ++++++++++++++----
src/neva/app_runtime/webview.h | 16 ++++++-
.../window_features/window_features.mojom | 6 +++
.../blink/public/web/web_window_features.h | 2 +
.../renderer/core/page/chrome_client_impl.h | 2 +
.../blink/renderer/core/page/create_window.cc | 24 ++++++++-
src/webos/webview_base.cc | 48 +++++++++++++----
src/webos/webview_base.h | 14 +++++
14 files changed, 174 insertions(+), 21 deletions(-)
.../blink/renderer/core/page/create_window.cc | 24 +++++++++-
src/webos/webview_base.cc | 48 +++++++++++++++----
src/webos/webview_base.h | 14 ++++++
14 files changed, 170 insertions(+), 21 deletions(-)

diff --git a/src/content/browser/web_contents/web_contents_impl.cc b/src/content/browser/web_contents/web_contents_impl.cc
index eabbbc6e95..6c1f8d1d6b 100644
Expand Down Expand Up @@ -151,7 +152,7 @@ index f4fc4ef7cf..90cea2dc18 100644
virtual void SendCookiesForHostname(const std::string& cookies) {}

diff --git a/src/neva/app_runtime/webview.cc b/src/neva/app_runtime/webview.cc
index 4078d3bb7e..517fde854a 100644
index 43676772a6..83aa2aa4df 100644
--- a/src/neva/app_runtime/webview.cc
+++ b/src/neva/app_runtime/webview.cc
@@ -133,11 +133,16 @@ void WebView::SetFileAccessBlocked(bool blocked) {
Expand Down Expand Up @@ -202,7 +203,7 @@ index 4078d3bb7e..517fde854a 100644
// OpenURLFromTab() method is implemented for transition from old_url to new_url
// where old_url.SchemeIs(url::kFileScheme) == false
// and new_url.SchemeIs(url::kFileScheme) == true
@@ -430,14 +451,26 @@ content::WebContents* WebView::OpenURLFromTab(
@@ -434,14 +451,26 @@ content::WebContents* WebView::OpenURLFromTab(
return nullptr;
}

Expand Down Expand Up @@ -235,7 +236,7 @@ index 4078d3bb7e..517fde854a 100644

void WebView::NavigationStateChanged(content::WebContents* source,
diff --git a/src/neva/app_runtime/webview.h b/src/neva/app_runtime/webview.h
index ce9ea7143d..d560ee5f0a 100644
index dd02a144ff..8a5b642579 100644
--- a/src/neva/app_runtime/webview.h
+++ b/src/neva/app_runtime/webview.h
@@ -92,7 +92,7 @@ class WebView : public content::WebContentsDelegate,
Expand All @@ -247,7 +248,7 @@ index ce9ea7143d..d560ee5f0a 100644
~WebView() override;

void SetDelegate(WebViewDelegate* delegate);
@@ -195,6 +195,14 @@ class WebView : public content::WebContentsDelegate,
@@ -196,6 +196,14 @@ class WebView : public content::WebContentsDelegate,
content::WebContents* source,
const content::OpenURLParams& params) override;

Expand All @@ -262,14 +263,14 @@ index ce9ea7143d..d560ee5f0a 100644
void NavigationStateChanged(content::WebContents* source,
content::InvalidateTypes changed_flags) override;
void CloseContents(content::WebContents* source) override;
@@ -298,6 +306,12 @@ class WebView : public content::WebContentsDelegate,
@@ -302,6 +310,12 @@ class WebView : public content::WebContentsDelegate,
void SwitchFullscreenModeForTab(content::WebContents* web_contents,
bool enter_fullscreen);

+ content::WebContents *CreateWindowForContents(std::unique_ptr<content::WebContents> new_contents,
+ content::WebContents *CreateWindowForContents(std::unique_ptr<content::WebContents> new_contents,
+ const GURL& target_url,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ bool user_gesture);
+
WebViewDelegate* webview_delegate_ = nullptr;
Expand All @@ -287,7 +288,7 @@ index dac13c3861..1ca165b262 100644
+ // NOTE: WebWindowFeatures::additional_features is not mirrored by this
+ // mojom struct as it's never used by the browser and therefore doesn't need
+ // to be sent.
+ // ... but webOS/LuneOS apps need that to send additional info to the OS
+ // ... but webOS/LuneOS apps need that to send additional info to the OS
+ array<string> additional_features;
};
diff --git a/src/third_party/blink/public/web/web_window_features.h b/src/third_party/blink/public/web/web_window_features.h
Expand Down Expand Up @@ -366,7 +367,7 @@ index ed0fcc8906..081d6da9c9 100644
}

diff --git a/src/webos/webview_base.cc b/src/webos/webview_base.cc
index b7c3432f56..8e9305000b 100644
index 98b24fb9b7..7aa6979a2a 100644
--- a/src/webos/webview_base.cc
+++ b/src/webos/webview_base.cc
@@ -75,10 +75,40 @@ void WebViewBase::SetFileAccessBlocked(bool blocked) {
Expand All @@ -389,7 +390,7 @@ index b7c3432f56..8e9305000b 100644
+
+ webview_ = new neva_app_runtime::WebView(width, height);
+ }
+
+
+ webview_->SetDelegate(this);
+ webview_->SetControllerDelegate(this);
+}
Expand Down Expand Up @@ -432,12 +433,12 @@ index b7c3432f56..8e9305000b 100644
+ neva_app_runtime::WebView *webview = new neva_app_runtime::WebView(width, height, nullptr, std::move(new_contents));
+ return CreateWindowForWebView(newUrl, webview, height, additional_features);
+}
+
+
void WebViewBase::Initialize(const std::string& app_id,
const std::string& app_path,
const std::string& trust_level,
diff --git a/src/webos/webview_base.h b/src/webos/webview_base.h
index 59bbc5526e..4252abe631 100644
index 5ca0a55aed..7eb81b8a24 100644
--- a/src/webos/webview_base.h
+++ b/src/webos/webview_base.h
@@ -100,11 +100,25 @@ class WEBOS_EXPORT WebViewBase
Expand Down
Loading