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 packages: lemmy-0.18.2, lemmy-ui-0.18.2
Date: Fri, 21 Jul 2023 15:12:57 +0200	[thread overview]
Message-ID: <20230721131257.IVFC7WoMFCbWzF1uv9jmeAYeMaYgz357cfAFilA1avQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45170@inbox.vuxu.org>

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

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

https://github.com/TinfoilSubmarine/void-packages maint/lemmy
https://github.com/void-linux/void-packages/pull/45170

New packages: lemmy-0.18.2, lemmy-ui-0.18.2
- New package: lemmy-0.18.2
- New package: lemmy-ui-0.18.2

<!-- 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
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/lemmy-45170.patch --]
[-- Type: text/x-diff, Size: 5808 bytes --]

From 0d1a071c413557ca4ed8f2c02ca865ceef341e77 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Wed, 14 Jun 2023 17:18:12 -0400
Subject: [PATCH 1/2] New package: lemmy-0.18.2

---
 srcpkgs/lemmy/files/lemmy/run                 |  6 +++
 .../disable-rustfmt-rosetta-build.patch       | 19 +++++++++
 srcpkgs/lemmy/template                        | 40 +++++++++++++++++++
 3 files changed, 65 insertions(+)
 create mode 100644 srcpkgs/lemmy/files/lemmy/run
 create mode 100644 srcpkgs/lemmy/patches/disable-rustfmt-rosetta-build.patch
 create mode 100644 srcpkgs/lemmy/template

diff --git a/srcpkgs/lemmy/files/lemmy/run b/srcpkgs/lemmy/files/lemmy/run
new file mode 100644
index 0000000000000..8e7871ac50ffb
--- /dev/null
+++ b/srcpkgs/lemmy/files/lemmy/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+export LEMMY_CONFIG_LOCATION=${LEMMY_CONFIG_LOCATION:-/etc/lemmy/lemmy.hjson}
+cd /var/lib/lemmy || exit 1
+exec chpst -u _lemmy:_lemmy lemmy_server
diff --git a/srcpkgs/lemmy/patches/disable-rustfmt-rosetta-build.patch b/srcpkgs/lemmy/patches/disable-rustfmt-rosetta-build.patch
new file mode 100644
index 0000000000000..8b05cdd016b2a
--- /dev/null
+++ b/srcpkgs/lemmy/patches/disable-rustfmt-rosetta-build.patch
@@ -0,0 +1,19 @@
+From ea7f83c4dcae490752a45b0ab3c4d07613c40eda Mon Sep 17 00:00:00 2001
+From: Joel Beckmeyer <joel@beckmeyer.us>
+Date: Fri, 21 Jul 2023 05:50:47 -0400
+Subject: [PATCH] disable rustfmt feature on rosetta-build (#3679)
+
+---
+ crates/utils/Cargo.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/crates/utils/Cargo.toml b/crates/utils/Cargo.toml
+index b97ce8bdc..9cafd0c11 100644
+--- a/crates/utils/Cargo.toml
++++ b/crates/utils/Cargo.toml
+@@ -55,4 +55,4 @@ enum-map = "2.6"
+ reqwest = { workspace = true }
+ 
+ [build-dependencies]
+-rosetta-build = "0.1.3"
++rosetta-build = { version = "0.1.3", default-features = false }
diff --git a/srcpkgs/lemmy/template b/srcpkgs/lemmy/template
new file mode 100644
index 0000000000000..88ae628ebf7a9
--- /dev/null
+++ b/srcpkgs/lemmy/template
@@ -0,0 +1,40 @@
+# Template file for 'lemmy'
+pkgname=lemmy
+version=0.18.2
+revision=1
+_translation_commit=3638cde3b3d59a969872d5f8e65f80faa9d3ab1c
+build_style=cargo
+configure_args="--features=embed-pictrs"
+hostmakedepends="pkg-config protobuf"
+makedepends="openssl-devel libpqxx-devel libzstd-devel"
+depends="ImageMagick ffmpeg exiftool"
+short_desc="Link aggregator and forum for the fediverse"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only"
+homepage="https://join-lemmy.org/"
+changelog="https://raw.githubusercontent.com/LemmyNet/lemmy/main/RELEASES.md"
+distfiles="https://github.com/LemmyNet/lemmy/archive/refs/tags/${version}.tar.gz
+ https://github.com/LemmyNet/lemmy-translations/archive/${_translation_commit}.tar.gz"
+checksum="2a00f68d6250ea0da2c33facd96d4c08377f3285f394c787d05a27194e2b8452
+ 170e9526be77fb6370aa76ce86f9f96a7c08460da91304518c047e819a1d26ab"
+system_accounts="_lemmy"
+make_dirs="/var/lib/lemmy 0700 _lemmy _lemmy"
+_lemmy_homedir="/var/lib/lemmy"
+conf_files="/etc/lemmy/lemmy.hjson"
+
+post_extract() {
+	cp -r lemmy-${version}/. .
+	cp -r lemmy-translations-${_translation_commit}/. crates/utils/translations
+	rm -rf lemmy-${version} lemmy-translations-${_translation_commit}
+}
+
+post_patch() {
+	vsed -i "s/unknown version/$version/" crates/utils/src/version.rs
+}
+
+post_install() {
+	vsconf config/defaults.hjson
+	vinstall config/config.hjson 644 etc/lemmy lemmy.hjson
+	vsv lemmy
+	vlicense LICENSE
+}

From a3072d40543c68271a0a0b663bb689a9f8fa4f60 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 16 Jun 2023 10:09:22 -0400
Subject: [PATCH 2/2] New package: lemmy-ui-0.18.2

---
 srcpkgs/lemmy-ui/files/lemmy-ui/run |  5 ++++
 srcpkgs/lemmy-ui/template           | 42 +++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 srcpkgs/lemmy-ui/files/lemmy-ui/run
 create mode 100644 srcpkgs/lemmy-ui/template

diff --git a/srcpkgs/lemmy-ui/files/lemmy-ui/run b/srcpkgs/lemmy-ui/files/lemmy-ui/run
new file mode 100644
index 0000000000000..26535bea510c0
--- /dev/null
+++ b/srcpkgs/lemmy-ui/files/lemmy-ui/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+cd /usr/lib/lemmy-ui || exit 1
+exec chpst -u _lemmyui:_lemmyui node dist/js/server.js
diff --git a/srcpkgs/lemmy-ui/template b/srcpkgs/lemmy-ui/template
new file mode 100644
index 0000000000000..44ec25b80f4f1
--- /dev/null
+++ b/srcpkgs/lemmy-ui/template
@@ -0,0 +1,42 @@
+# Template file for 'lemmy-ui'
+pkgname=lemmy-ui
+version=0.18.2
+revision=1
+_translation_commit=3638cde3b3d59a969872d5f8e65f80faa9d3ab1c
+hostmakedepends="yarn pkg-config"
+makedepends="libvips-devel"
+depends="nodejs"
+short_desc="Official web app for lemmy"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only"
+homepage="https://join-lemmy.org/"
+distfiles="https://github.com/LemmyNet/lemmy-ui/archive/refs/tags/${version}.tar.gz
+ https://github.com/LemmyNet/lemmy-translations/archive/${_translation_commit}.tar.gz"
+checksum="ffadc85c71248379670943eecd6102d99b732425009c54ebad74c6559b9787bb
+ 170e9526be77fb6370aa76ce86f9f96a7c08460da91304518c047e819a1d26ab"
+python_version=3
+system_accounts="_lemmyui"
+
+post_extract() {
+	cp -r lemmy-ui-${version}/. .
+	cp -r lemmy-translations-${_translation_commit}/. lemmy-translations
+	rm -rf lemmy-${version} lemmy-translations-${_translation_commit}
+
+	yarn install --pure-lockfile
+}
+
+post_patch() {
+	vsed -i "s/unknown version/$version/" src/shared/version.ts
+}
+
+do_build() {
+	yarn build:prod
+}
+
+do_install() {
+	vmkdir usr/lib/lemmy-ui
+	vcopy dist usr/lib/lemmy-ui
+	vcopy node_modules usr/lib/lemmy-ui
+	vlicense LICENSE
+	vsv lemmy-ui
+}

  reply	other threads:[~2023-07-21 13:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-21 12:28 [PR PATCH] " TinfoilSubmarine
2023-07-21 13:12 ` TinfoilSubmarine [this message]
2023-07-21 14:10 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-07-28 17:04 ` TinfoilSubmarine
2023-08-08 15:35 ` TinfoilSubmarine
2023-08-17 14:27 ` [PR PATCH] [Updated] New packages: lemmy-0.18.4, lemmy-ui-0.18.4 TinfoilSubmarine
2023-09-29 14:39 ` TinfoilSubmarine
2023-12-29  1:43 ` github-actions
2024-01-12  1:47 ` [PR PATCH] [Closed]: " github-actions

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=20230721131257.IVFC7WoMFCbWzF1uv9jmeAYeMaYgz357cfAFilA1avQ@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).