Github messages for voidlinux
 help / color / mirror / Atom feed
From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: element-web-1.11.8 (and move element/riot-desktop as subpackages)
Date: Sat, 01 Oct 2022 01:05:03 +0200	[thread overview]
Message-ID: <20220930230503.MkE2HD1wbFgXeuCWLpjEHoqwpigfbrG-b1e4nEVblds@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39554@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

There is an updated pull request by TinfoilSubmarine against master on the void-packages repository

https://github.com/TinfoilSubmarine/void-packages update/element
https://github.com/void-linux/void-packages/pull/39554

New package: element-web-1.11.8 (and move element/riot-desktop as subpackages)
Move element-desktop, riot-desktop to subpackage of element-web

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->

I've had `element-desktop` installed on my server and just pointing reverse proxy at `/usr/lib/element-desktop/resources/webapp`, but I also had to `ignorepkg` all of the dependencies. This fixes that :)

I didn't bump the revision since there aren't any functional changes to `element-desktop`, but I can if needed.

A patch file from https://github.com/void-linux/void-packages/pull/39554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update/element-39554.patch --]
[-- Type: text/x-diff, Size: 4309 bytes --]

From ed9e7e59d453e19c653ff976aedc147a50d557d0 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 30 Sep 2022 19:02:21 -0400
Subject: [PATCH] New package: element-web-1.11.8

---
 ...web_0001-remove-dependency-on-sentry.patch | 55 +++++++++++++++++++
 srcpkgs/element-web/template                  | 35 ++++++++++++
 2 files changed, 90 insertions(+)
 create mode 100644 srcpkgs/element-web/patches/element-web_0001-remove-dependency-on-sentry.patch
 create mode 100644 srcpkgs/element-web/template

diff --git a/srcpkgs/element-web/patches/element-web_0001-remove-dependency-on-sentry.patch b/srcpkgs/element-web/patches/element-web_0001-remove-dependency-on-sentry.patch
new file mode 100644
index 000000000000..e8d1003a8cec
--- /dev/null
+++ b/srcpkgs/element-web/patches/element-web_0001-remove-dependency-on-sentry.patch
@@ -0,0 +1,55 @@
+From 464305f785b65f7b2e552fb449bb7d230e9b0715 Mon Sep 17 00:00:00 2001
+From: q66 <daniel@octaforge.org>
+Date: Sat, 11 Dec 2021 21:22:44 +0100
+Subject: [PATCH] remove dependency on sentry
+
+This is unused and breaks ppc64 because it downlaods binaries.
+---
+ package.json      |  1 -
+ webpack.config.js | 11 -----------
+ 2 files changed, 12 deletions(-)
+
+diff --git a/package.json b/package.json
+index 89c0ba12e..c31f84fad 100644
+--- a/package.json
++++ b/package.json
+@@ -88,7 +88,6 @@
+     "@babel/register": "^7.12.10",
+     "@babel/runtime": "^7.12.5",
+     "@principalstudio/html-webpack-inject-preload": "^1.2.7",
+-    "@sentry/webpack-plugin": "^1.18.1",
+     "@svgr/webpack": "^5.5.0",
+     "@types/flux": "^3.1.9",
+     "@types/jest": "^28.0.0",
+diff --git a/webpack.config.js b/webpack.config.js
+index 8d1f27330..b56a11566 100644
+--- a/webpack.config.js
++++ b/webpack.config.js
+@@ -8,7 +8,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
+ const TerserPlugin = require('terser-webpack-plugin');
+ const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
+ const HtmlWebpackInjectPreload = require('@principalstudio/html-webpack-inject-preload');
+-const SentryCliPlugin = require("@sentry/webpack-plugin");
+ 
+ dotenv.config();
+ let ogImageUrl = process.env.RIOT_OG_IMAGE_URL;
+@@ -626,16 +625,6 @@ module.exports = (env, argv) => {
+                 files: [{ match: /.*Inter.*\.woff2$/ }],
+             }),
+ 
+-            // upload to sentry if sentry env is present
+-            process.env.SENTRY_DSN &&
+-                new SentryCliPlugin({
+-                    release: process.env.VERSION,
+-                    include: "./webapp/bundles",
+-                    errorHandler: (err, invokeErr, compilation) => {
+-                        compilation.warnings.push('Sentry CLI Plugin: ' + err.message);
+-                        console.log(`::warning title=Sentry error::${err.message}`);
+-                    },
+-                }),
+             new webpack.EnvironmentPlugin(['VERSION']),
+         ].filter(Boolean),
+ 
+-- 
+2.37.2
+
diff --git a/srcpkgs/element-web/template b/srcpkgs/element-web/template
new file mode 100644
index 000000000000..be2638590ea3
--- /dev/null
+++ b/srcpkgs/element-web/template
@@ -0,0 +1,35 @@
+# Template file for 'element-web'
+pkgname=element-web
+version=1.11.8
+revision=1
+conf_files="/etc/webapps/element/config.json"
+hostmakedepends="yarn jq moreutils"
+short_desc="Glossy Matrix collaboration client - web version"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0"
+homepage="https://element.io"
+changelog="https://raw.githubusercontent.com/vector-im/element-web/develop/CHANGELOG.md"
+distfiles="https://github.com/vector-im/element-web/archive/v${version}.tar.gz"
+checksum="9d9bb42a3d004ab4659d2945e6752aa278c59bc3b7f75919ce076bf3fb2b5f73"
+
+post_patch() {
+	# Disable auto-updating
+	jq '.update_base_url = ""' element.io/app/config.json | sponge element.io/app/config.json
+}
+
+pre_build() {
+	# Build dependencies for element-web
+	yarn install
+}
+
+do_build() {
+	yarn build
+}
+
+do_install() {
+	vmkdir usr/share/webapps/element
+	vcopy webapp/. /usr/share/webapps/element
+	vsconf config.sample.json
+	vinstall config.sample.json 644 /etc/webapps/element/ config.json
+	ln -s /etc/webapps/element/config.json "${DESTDIR}"/usr/share/webapps/element/config.json
+}

  parent reply	other threads:[~2022-09-30 23:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-30 21:17 [PR PATCH] " TinfoilSubmarine
2022-09-30 23:02 ` TinfoilSubmarine
2022-09-30 23:05 ` TinfoilSubmarine [this message]
2022-09-30 23:43 ` New package: element-web-1.11.8 paper42
2022-10-03  1:31 ` [PR PATCH] [Updated] " TinfoilSubmarine
2022-10-03  1:33 ` TinfoilSubmarine
2022-10-14 13:00 ` [PR PATCH] [Updated] " TinfoilSubmarine
2022-10-27 12:31 ` [PR PATCH] [Updated] New package: element-web-1.11.10 TinfoilSubmarine
2022-11-01 13:28 ` [PR PATCH] [Updated] New package: element-web-1.11.12 TinfoilSubmarine
2023-01-20 15:01 ` [PR PATCH] [Closed]: New package: element-web-1.11.13 TinfoilSubmarine

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=20220930230503.MkE2HD1wbFgXeuCWLpjEHoqwpigfbrG-b1e4nEVblds@z \
    --to=tinfoilsubmarine@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).