Github messages for voidlinux
 help / color / mirror / Atom feed
From: SpidFightFR <SpidFightFR@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: zed-0.147.2
Date: Thu, 08 Aug 2024 11:46:27 +0200	[thread overview]
Message-ID: <20240808094627.E278222F7C@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50476@inbox.vuxu.org>

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

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

https://github.com/SpidFightFR/void-packages zed-voidlinux
https://github.com/void-linux/void-packages/pull/50476

New package: zed-0.147.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

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



#### Local build testing
- I built this PR locally for my native architecture, (x64-GlibC)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x64-musl
-->

Just me making a PR for Zed, it's evolving fast, the PR is not ready, but the template does work. This PR's purpose is for others to keep track of the tests i'm doing.

Take care, i'm all ears for suggestions of course. :v:

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-zed-voidlinux-50476.patch --]
[-- Type: text/x-diff, Size: 5993 bytes --]

From 75cc7cf1b5d9c149d8ab916039be150fe3b9d997 Mon Sep 17 00:00:00 2001
From: SpidFightFR <spidfight@swisscows.email>
Date: Mon, 20 May 2024 19:43:38 +0200
Subject: [PATCH] New package: zed-0.147.2

---
 .../0001-tweak-default-conf-for-privacy.patch | 94 +++++++++++++++++++
 .../zed/patches/0002-change-bin-name.patch    | 13 +++
 srcpkgs/zed/template                          | 25 +++++
 3 files changed, 132 insertions(+)
 create mode 100644 srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch
 create mode 100644 srcpkgs/zed/patches/0002-change-bin-name.patch
 create mode 100644 srcpkgs/zed/template

diff --git a/srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch b/srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch
new file mode 100644
index 00000000000000..2a279491dfdf33
--- /dev/null
+++ b/srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch
@@ -0,0 +1,94 @@
+diff --git a/assets/settings/default.json b/assets/settings/default.json
+index 743ec54..47b356c 100644
+--- a/assets/settings/default.json
++++ b/assets/settings/default.json
+@@ -21,8 +21,10 @@
+   "base_keymap": "VSCode",
+   // Features that can be globally enabled or disabled
+   "features": {
++    //disables copilot by default
++    "copilot": false,
+     // Which inline completion provider to use.
+-    "inline_completion_provider": "copilot"
++    "inline_completion_provider": "none"
+   },
+   // The name of a font to use for rendering text in the editor
+   "buffer_font_family": "Zed Plex Mono",
+@@ -377,7 +379,7 @@
+     // Version of this setting.
+     "version": "2",
+     // Whether the assistant is enabled.
+-    "enabled": true,
++    "enabled": false,
+     // Whether to show the assistant panel button in the status bar.
+     "button": true,
+     // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
+@@ -497,13 +499,13 @@
+   // Control what info is collected by Zed.
+   "telemetry": {
+     // Send debug info like crash reports.
+-    "diagnostics": true,
++    "diagnostics": false,
+     // Send anonymized usage data like what languages you're using Zed with.
+-    "metrics": true
++    "metrics": false
+   },
+   // Automatically update Zed. This setting may be ignored on Linux if
+   // installed through a package manager.
+-  "auto_update": true,
++  "auto_update": false,
+   // Diagnostics configuration.
+   "diagnostics": {
+     // Whether to show warnings or not by default.
+@@ -559,7 +561,7 @@
+     // May take 2 values:
+     // 1. hour12
+     // 2. hour24
+-    "hour_format": "hour12"
++    "hour_format": "hour24"
+   },
+   // Settings specific to the terminal
+   "terminal": {
+diff --git a/assets/settings/initial_user_settings.json b/assets/settings/initial_user_settings.json
+index 705dc30..eee9d55 100644
+--- a/assets/settings/initial_user_settings.json
++++ b/assets/settings/initial_user_settings.json
+@@ -7,11 +7,38 @@
+ // custom settings, run the `zed: Open Default Settings` command
+ // from the command palette
+ {
++  //The default font size for text in the UI
+   "ui_font_size": 16,
++  //The default font size for text in the editor
+   "buffer_font_size": 16,
+   "theme": {
+     "mode": "system",
+     "light": "One Light",
+     "dark": "One Dark"
+   }
++
++// The following settings have been changed from the upstream defaults to
++// improve security and privacy. Here are the upstream defaults, you can
++// uncomment them if you like.
++//
++// "features": {
++//   // Enable copilot (provided by an online service).
++//   "copilot": true,
++//   "inline_completion_provider": "copilot"
++// },
++// "assistant": {
++//   "version": "1",
++//   // Enable the assistant (provided by an online service).
++//   "enabled": true
++// },
++// "telemetry": {
++//   // Send debug info like crash reports to Zed Industries.
++//   "diagnostics": true,
++//   // Send anonymized usage data like what languages you're using Zed with
++//   // to Zed Industries.
++//   "metrics": true
++// },
++// "journal": {
++//   "hour_format": "hour12"
++// }
+ }
diff --git a/srcpkgs/zed/patches/0002-change-bin-name.patch b/srcpkgs/zed/patches/0002-change-bin-name.patch
new file mode 100644
index 00000000000000..670dfd4ec67eb1
--- /dev/null
+++ b/srcpkgs/zed/patches/0002-change-bin-name.patch
@@ -0,0 +1,13 @@
+diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml
+index 54d16da..1ced68d 100644
+--- a/crates/zed/Cargo.toml
++++ b/crates/zed/Cargo.toml
+@@ -11,7 +11,7 @@ authors = ["Zed Team <hi@zed.dev>"]
+ workspace = true
+ 
+ [[bin]]
+-name = "zed"
++name = "zedit"
+ path = "src/main.rs"
+ 
+ [dependencies]
diff --git a/srcpkgs/zed/template b/srcpkgs/zed/template
new file mode 100644
index 00000000000000..9080d5dbd0f777
--- /dev/null
+++ b/srcpkgs/zed/template
@@ -0,0 +1,25 @@
+# Template file for 'zed'
+pkgname=zed
+version=0.147.2
+revision=1
+archs="x86_64* aarch64*"
+build_style=cargo
+make_install_args="--path crates/zed"
+hostmakedepends="pkg-config protobuf gettext mold clang18"
+makedepends="alsa-lib-devel fontconfig-devel libxcb-devel libxkbcommon-devel
+libzstd-devel wayland-devel vulkan-loader openssl-devel libgit2-1.8-devel"
+depends="git"
+checkdepends="noto-fonts-ttf"
+short_desc="High-performance, multiplayer code editor"
+maintainer="SpidFightFR <spidfight@swisscows.email>"
+license="GPL-3.0-or-later, Apache-2.0, AGPL-3.0-or-later"
+homepage="https://zed.dev/"
+distfiles="https://github.com/zed-industries/zed/archive/v${version}.tar.gz"
+checksum="eec86197970729ee5d8acad578417e0c18f4909991e31b6f48ad623af5949042"
+
+post_install() {
+	vlicense ${wrksrc}/LICENSE-AGPL
+	APP_NAME="Zed" DO_STARTUP_NOTIFY="true" APP_ICON="zed" APP_CLI="zedit" envsubst < ${wrksrc}/crates/zed/resources/zed.desktop.in > ${wrksrc}/crates/zed/resources/zed.desktop
+	vinstall ${wrksrc}/crates/zed/resources/zed.desktop 644 usr/share/applications/
+	vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png
+}

  parent reply	other threads:[~2024-08-08  9:46 UTC|newest]

Thread overview: 183+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-22 19:05 [PR PATCH] New package: zed-0.135.2 SpidFightFR
2024-05-22 19:06 ` SpidFightFR
2024-05-22 19:13 ` SpidFightFR
2024-05-22 19:21 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-22 19:23 ` SpidFightFR
2024-05-22 19:26 ` [PR PATCH] [Updated] New package: Zed-0.136.2 SpidFightFR
2024-05-22 19:27 ` SpidFightFR
2024-05-22 19:32 ` SpidFightFR
2024-05-22 20:03 ` SpidFightFR
2024-05-22 20:38 ` [PR REVIEW] " Calandracas606
2024-05-22 20:41 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-22 21:28 ` SpidFightFR
2024-05-22 21:31 ` [PR REVIEW] " SpidFightFR
2024-05-23  1:05 ` classabbyamp
2024-05-23 17:31 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-23 17:32 ` [PR REVIEW] " SpidFightFR
2024-05-23 17:39 ` classabbyamp
2024-05-23 17:39 ` classabbyamp
2024-05-23 17:49 ` SpidFightFR
2024-05-23 17:50 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-23 17:52 ` [PR REVIEW] " SpidFightFR
2024-05-23 17:57 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-23 19:29 ` SpidFightFR
2024-05-23 19:29 ` SpidFightFR
2024-05-23 19:33 ` SpidFightFR
2024-05-23 19:34 ` SpidFightFR
2024-05-23 19:36 ` SpidFightFR
2024-05-23 19:36 ` SpidFightFR
2024-05-23 19:57 ` SpidFightFR
2024-05-23 20:09 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-23 20:12 ` SpidFightFR
2024-05-23 20:16 ` Calandracas606
2024-05-23 20:24 ` meator
2024-05-23 20:25 ` classabbyamp
2024-05-23 20:43 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-23 20:48 ` SpidFightFR
2024-05-23 20:55 ` [PR REVIEW] " someone13574
2024-05-23 20:58 ` SpidFightFR
2024-05-23 21:06 ` Calandracas606
2024-05-23 21:07 ` someone13574
2024-05-23 21:22 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-23 21:25 ` [PR REVIEW] " someone13574
2024-05-23 21:26 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-23 21:27 ` SpidFightFR
2024-05-23 21:27 ` [PR REVIEW] " SpidFightFR
2024-05-23 21:27 ` SpidFightFR
2024-05-23 21:28 ` SpidFightFR
2024-05-24 14:40 ` someone13574
2024-05-24 14:40 ` someone13574
2024-05-24 14:51 ` someone13574
2024-05-24 15:27 ` SpidFightFR
2024-05-24 17:27 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-24 17:29 ` SpidFightFR
2024-05-24 17:36 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-24 17:36 ` SpidFightFR
2024-05-24 17:44 ` someone13574
2024-05-24 17:52 ` [PR REVIEW] " someone13574
2024-05-24 18:09 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-24 22:43 ` SpidFightFR
2024-05-24 22:46 ` SpidFightFR
2024-05-24 22:47 ` SpidFightFR
2024-05-24 23:57 ` New package: zed-0.136.2 SpidFightFR
2024-05-25  0:00 ` [PR REVIEW] " classabbyamp
2024-05-25  0:02 ` someone13574
2024-05-25  0:05 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-25  0:06 ` [PR REVIEW] " SpidFightFR
2024-05-25  0:06 ` SpidFightFR
2024-05-25  0:20 ` Calandracas606
2024-05-25  0:27 ` Calandracas606
2024-05-25  0:29 ` Calandracas606
2024-05-25  0:33 ` someone13574
2024-05-25  0:40 ` Calandracas606
2024-05-25  0:40 ` someone13574
2024-05-25  0:40 ` someone13574
2024-05-25  0:43 ` someone13574
2024-05-25  7:16 ` SpidFightFR
2024-05-25  7:44 ` SpidFightFR
2024-05-25 12:53 ` someone13574
2024-05-25 19:37 ` AnInternetTroll
2024-05-25 19:59 ` someone13574
2024-05-25 21:49 ` AnInternetTroll
2024-05-29 21:20 ` [PR PATCH] [Updated] " SpidFightFR
2024-05-31 18:35 ` [PR PATCH] [Updated] New package: zed-0.137.3 SpidFightFR
2024-06-04 11:11 ` someone13574
2024-06-04 14:13 ` SpidFightFR
2024-06-04 16:45 ` AnInternetTroll
2024-06-04 17:28 ` someone13574
2024-06-04 18:14 ` someone13574
2024-06-04 18:18 ` SpidFightFR
2024-06-04 18:19 ` SpidFightFR
2024-06-04 18:22 ` someone13574
2024-06-04 18:25 ` SpidFightFR
2024-06-04 18:32 ` someone13574
2024-06-04 18:35 ` someone13574
2024-06-04 18:41 ` SpidFightFR
2024-06-04 20:14 ` someone13574
2024-06-04 20:14 ` someone13574
2024-06-04 20:14 ` someone13574
2024-06-04 20:24 ` SpidFightFR
2024-06-04 20:26 ` SpidFightFR
2024-06-04 20:50 ` someone13574
2024-06-04 22:56 ` someone13574
2024-06-04 22:57 ` someone13574
2024-06-04 22:58 ` someone13574
2024-06-04 23:38 ` Calandracas606
2024-06-05 21:08 ` [PR PATCH] [Updated] " SpidFightFR
2024-06-06  4:02 ` New package: zed-0.138.4 Calandracas606
2024-06-06  4:03 ` Calandracas606
2024-06-06 21:15 ` [PR PATCH] [Updated] " SpidFightFR
2024-06-07 23:20 ` SpidFightFR
2024-06-07 23:25 ` New package: zed-0.138.6 SpidFightFR
2024-06-07 23:25 ` SpidFightFR
2024-06-14  6:14 ` [PR PATCH] [Updated] " SpidFightFR
2024-06-14 11:06 ` [PR REVIEW] " someone13574
2024-06-14 16:40 ` SpidFightFR
2024-06-14 16:41 ` SpidFightFR
2024-06-14 16:57 ` Calandracas606
2024-06-14 17:03 ` someone13574
2024-06-14 17:20 ` AnInternetTroll
2024-06-14 17:30 ` someone13574
2024-06-14 17:33 ` someone13574
2024-06-14 18:03 ` [PR PATCH] [Updated] " SpidFightFR
2024-06-14 20:52 ` SpidFightFR
2024-06-14 21:47 ` someone13574
2024-06-19 19:34 ` SpidFightFR
2024-06-19 19:48 ` New package: zed-0.139.3 Calandracas606
2024-06-19 20:01 ` SpidFightFR
2024-06-19 20:24 ` SpidFightFR
2024-06-19 20:27 ` Calandracas606
2024-06-19 20:43 ` SpidFightFR
2024-06-19 20:58 ` SpidFightFR
2024-06-19 21:01 ` [PR PATCH] [Updated] " SpidFightFR
2024-06-26 19:32 ` New package: zed-0.140.5 SpidFightFR
2024-07-09 17:10 ` mikayla-maki
2024-07-09 17:11 ` mikayla-maki
2024-07-09 17:12 ` mikayla-maki
2024-07-09 17:12 ` mikayla-maki
2024-07-09 17:12 ` mikayla-maki
2024-07-09 17:14 ` mikayla-maki
2024-07-09 17:54 ` mikayla-maki
2024-07-10 21:35 ` Vaelatern
2024-07-10 22:50 ` someone13574
2024-07-11  4:34 ` SpidFightFR
2024-07-11  4:50 ` SpidFightFR
2024-08-05 15:18 ` [PR PATCH] [Updated] " SpidFightFR
2024-08-08  0:26 ` [PR PATCH] [Updated] New package: zed-0.146.5 SpidFightFR
2024-08-08  0:52 ` [PR PATCH] [Updated] New package: zed-0.147.2 SpidFightFR
2024-08-08  0:58 ` SpidFightFR
2024-08-08  1:34 ` someone13574
2024-08-08  1:35 ` someone13574
2024-08-08  1:37 ` someone13574
2024-08-08  1:41 ` Calandracas606
2024-08-08  1:43 ` Calandracas606
2024-08-08  2:12 ` SpidFightFR
2024-08-08  2:14 ` SpidFightFR
2024-08-08  3:48 ` Calandracas606
2024-08-08  9:46 ` SpidFightFR [this message]
2024-08-08 10:49 ` SpidFightFR
2024-08-08 10:59 ` Calandracas606
2024-08-08 11:21 ` SpidFightFR
2024-08-08 11:26 ` Calandracas606
2024-08-08 11:49 ` SpidFightFR
2024-08-20 21:02 ` [PR PATCH] [Updated] " SpidFightFR
2024-09-06 19:50 ` [PR PATCH] [Updated] New package: zed-0.149.3 SpidFightFR
2024-09-19 18:27 ` [PR PATCH] [Updated] New package: zed-0.151.2 SpidFightFR
2024-09-26 18:18 ` SpidFightFR
2024-09-26 18:20 ` SpidFightFR
2024-09-29 11:05 ` [PR PATCH] [Updated] " SpidFightFR
2024-10-05  9:33 ` SpidFightFR
2024-10-12  8:53 ` [PR PATCH] [Updated] New package: zed-0.155.2 SpidFightFR
2024-10-24 20:17 ` [PR PATCH] [Updated] New package: zed-0.156.1 SpidFightFR
2024-10-31 20:33 ` SpidFightFR
2024-10-31 20:35 ` New package: zed-0.159.6 SpidFightFR
2024-10-31 21:14 ` SpidFightFR
2024-11-09 12:48 ` [PR PATCH] [Updated] " SpidFightFR
2024-11-13 13:41 ` New package: zed-0.160.7 trizey
2024-11-13 14:45 ` someone13574
2024-11-13 21:32 ` [PR PATCH] [Updated] " SpidFightFR
2024-11-14  9:56 ` jansol
2024-11-14 12:03 ` jansol
2024-11-14 12:04 ` jansol
2024-11-16 12:28 ` [PR PATCH] [Updated] " SpidFightFR
2024-11-16 12:29 ` New package: zed-0.161.2 SpidFightFR

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=20240808094627.E278222F7C@inbox.vuxu.org \
    --to=spidfightfr@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).