Github messages for voidlinux
 help / color / mirror / Atom feed
From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] texlab: update to 3.3.1
Date: Wed, 15 Dec 2021 17:16:00 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34557@inbox.vuxu.org> (raw)

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

There is a new pull request by cinerea0 against master on the void-packages repository

https://github.com/cinerea0/void-packages tex
https://github.com/void-linux/void-packages/pull/34557

texlab: update to 3.3.1
<!-- 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 [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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
-->
---
Closes #31093.

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

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

From 98d505f415bc5e231f59726b5a60153615ec9f39 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Wed, 15 Dec 2021 11:14:00 -0500
Subject: [PATCH] texlab: update to 3.3.1

---
 srcpkgs/texlab/patches/jsonrpc.patch |  50 ---------
 srcpkgs/texlab/patches/salsa.patch   | 151 ---------------------------
 srcpkgs/texlab/template              |  13 +--
 3 files changed, 4 insertions(+), 210 deletions(-)
 delete mode 100644 srcpkgs/texlab/patches/jsonrpc.patch
 delete mode 100644 srcpkgs/texlab/patches/salsa.patch

diff --git a/srcpkgs/texlab/patches/jsonrpc.patch b/srcpkgs/texlab/patches/jsonrpc.patch
deleted file mode 100644
index d0fef876bac3..000000000000
--- a/srcpkgs/texlab/patches/jsonrpc.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-commit 62d3567c42de318da828149759c6bb2f71c13de7
-Author: q66 <daniel@octaforge.org>
-Date:   Wed Mar 10 22:52:10 2021 +0100
-
-    fix AtomicU64 in jsonrpc (breaks build on ppc32)
-
-diff --git crates/jsonrpc/src/client.rs crates/jsonrpc/src/client.rs
-index 7d71428..3245e24 100644
---- a/crates/jsonrpc/src/client.rs
-+++ b/crates/jsonrpc/src/client.rs
-@@ -7,7 +7,7 @@ use futures::{
- };
- use serde::Serialize;
- use serde_json::json;
--use std::sync::atomic::{AtomicU64, Ordering};
-+use std::sync::atomic::{AtomicUsize, Ordering};
- 
- pub type Result<T> = std::result::Result<T, Error>;
- 
-@@ -19,7 +19,7 @@ pub trait ResponseHandler {
- #[derive(Debug)]
- pub struct Client {
-     output: mpsc::Sender<String>,
--    request_id: AtomicU64,
-+    request_id: AtomicUsize,
-     senders_by_id: CHashMap<Id, oneshot::Sender<Result<serde_json::Value>>>,
- }
- 
-@@ -27,7 +27,7 @@ impl Client {
-     pub fn new(output: mpsc::Sender<String>) -> Self {
-         Self {
-             output,
--            request_id: AtomicU64::new(0),
-+            request_id: AtomicUsize::new(0),
-             senders_by_id: CHashMap::new(),
-         }
-     }
-diff --git crates/jsonrpc/src/types.rs crates/jsonrpc/src/types.rs
-index 30036d1..c1a2dce 100644
---- a/crates/jsonrpc/src/types.rs
-+++ b/crates/jsonrpc/src/types.rs
-@@ -6,7 +6,7 @@ pub const PROTOCOL_VERSION: &str = "2.0";
- #[derive(Debug, Eq, Hash, PartialEq, Clone, Deserialize, Serialize)]
- #[serde(untagged)]
- pub enum Id {
--    Number(u64),
-+    Number(usize),
-     String(String),
- }
- 
diff --git a/srcpkgs/texlab/patches/salsa.patch b/srcpkgs/texlab/patches/salsa.patch
deleted file mode 100644
index 2162599940fb..000000000000
--- a/srcpkgs/texlab/patches/salsa.patch
+++ /dev/null
@@ -1,151 +0,0 @@
-commit e038bc231ad881a82fcec028ed307f8d007d8ae5
-Author: Daniel Kolesa <daniel@octaforge.org>
-Date:   Wed Mar 10 22:31:07 2021 +0100
-
-    fix on ppc32 (missing atomic64)
-    
-    see https://github.com/salsa-rs/salsa/commit/9c7ac99
-
-diff --git salsa/src/revision.rs salsa/src/revision.rs
-index ca7bb10..a18b581 100644
---- a/salsa/src/revision.rs
-+++ b/salsa/src/revision.rs
-@@ -1,9 +1,9 @@
--use std::num::NonZeroU64;
--use std::sync::atomic::{AtomicU64, Ordering};
-+use std::num::NonZeroUsize;
-+use std::sync::atomic::{AtomicUsize, Ordering};
- 
- /// Value of the initial revision, as a u64. We don't use 0
--/// because we want to use a `NonZeroU64`.
--const START_U64: u64 = 1;
-+/// because we want to use a `NonZeroUsize`.
-+const START: usize = 1;
- 
- /// A unique identifier for the current version of the database; each
- /// time an input is changed, the revision number is incremented.
-@@ -12,17 +12,17 @@ const START_U64: u64 = 1;
- /// directly as a user of salsa.
- #[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
- pub struct Revision {
--    generation: NonZeroU64,
-+    generation: NonZeroUsize,
- }
- 
- impl Revision {
-     pub(crate) fn start() -> Self {
--        Self::from(START_U64)
-+        Self::from(START)
-     }
- 
--    pub(crate) fn from(g: u64) -> Self {
-+    pub(crate) fn from(g: usize) -> Self {
-         Self {
--            generation: NonZeroU64::new(g).unwrap(),
-+            generation: NonZeroUsize::new(g).unwrap(),
-         }
-     }
- 
-@@ -30,7 +30,7 @@ impl Revision {
-         Self::from(self.generation.get() + 1)
-     }
- 
--    fn as_u64(self) -> u64 {
-+    fn as_usize(self) -> usize {
-         self.generation.get()
-     }
- }
-@@ -43,13 +43,13 @@ impl std::fmt::Debug for Revision {
- 
- #[derive(Debug)]
- pub(crate) struct AtomicRevision {
--    data: AtomicU64,
-+    data: AtomicUsize,
- }
- 
- impl AtomicRevision {
-     pub(crate) fn start() -> Self {
-         Self {
--            data: AtomicU64::new(START_U64),
-+            data: AtomicUsize::new(START),
-         }
-     }
- 
-@@ -58,13 +58,13 @@ impl AtomicRevision {
-     }
- 
-     pub(crate) fn store(&self, r: Revision) {
--        self.data.store(r.as_u64(), Ordering::SeqCst);
-+        self.data.store(r.as_usize(), Ordering::SeqCst);
-     }
- 
-     /// Increment by 1, returning previous value.
-     pub(crate) fn fetch_then_increment(&self) -> Revision {
-         let v = self.data.fetch_add(1, Ordering::SeqCst);
--        assert!(v != u64::max_value(), "revision overflow");
-+        assert!(v != usize::max_value(), "revision overflow");
-         Revision::from(v)
-     }
- }
-diff --git salsa/src/runtime.rs salsa/src/runtime.rs
-index 181a5ea..ada5fec 100644
---- a/salsa/src/runtime.rs
-+++ b/salsa/src/runtime.rs
-@@ -10,7 +10,7 @@ use parking_lot::{Mutex, RwLock};
- use rustc_hash::{FxHashMap, FxHasher};
- use smallvec::SmallVec;
- use std::hash::{BuildHasherDefault, Hash};
--use std::sync::atomic::{AtomicU64, Ordering};
-+use std::sync::atomic::{AtomicUsize, Ordering};
- use std::sync::Arc;
- 
- pub(crate) type FxIndexSet<K> = indexmap::IndexSet<K, BuildHasherDefault<FxHasher>>;
-@@ -558,14 +558,14 @@ struct SharedState<DB: Database> {
-     storage: DB::DatabaseStorage,
- 
-     /// Stores the next id to use for a snapshotted runtime (starts at 1).
--    next_id: AtomicU64,
-+    next_id: AtomicUsize,
- 
-     /// Whenever derived queries are executing, they acquire this lock
-     /// in read mode. Mutating inputs (and thus creating a new
-     /// revision) requires a write lock (thus guaranteeing that no
-     /// derived queries are in progress). Note that this is not needed
-     /// to prevent **race conditions** -- the revision counter itself
--    /// is stored in an `AtomicU64` so it can be cheaply read
-+    /// is stored in an `AtomicUsize` so it can be cheaply read
-     /// without acquiring the lock.  Rather, the `query_lock` is used
-     /// to ensure a higher-level consistency property.
-     query_lock: RwLock<()>,
-@@ -594,7 +594,7 @@ struct SharedState<DB: Database> {
- impl<DB: Database> SharedState<DB> {
-     fn with_durabilities(durabilities: usize) -> Self {
-         SharedState {
--            next_id: AtomicU64::new(1),
-+            next_id: AtomicUsize::new(1),
-             storage: Default::default(),
-             query_lock: Default::default(),
-             revisions: (0..durabilities).map(|_| AtomicRevision::start()).collect(),
-@@ -715,7 +715,7 @@ impl<DB: Database> ActiveQuery<DB> {
- /// complete, its `RuntimeId` may potentially be re-used.
- #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
- pub struct RuntimeId {
--    counter: u64,
-+    counter: usize,
- }
- 
- #[derive(Clone, Debug)]
-diff --git Cargo.toml Cargo.toml
-index 0847f06..7c4bb9a 100644
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -106,6 +106,9 @@ lalrpop = { version = "0.18", optional = true }
- [profile.release]
- lto = true
- 
-+[patch.crates-io]
-+salsa = { path = './salsa' }
-+
- [[bench]]
- name = "bench_main"
- harness = false
diff --git a/srcpkgs/texlab/template b/srcpkgs/texlab/template
index c61ac718f0ac..e50174bdef8e 100644
--- a/srcpkgs/texlab/template
+++ b/srcpkgs/texlab/template
@@ -1,17 +1,12 @@
 # Template file for 'texlab'
 pkgname=texlab
-version=2.2.2
+version=3.3.1
 revision=1
 build_style=cargo
 short_desc="Implementation of the Language Server Protocol for LaTeX"
 maintainer="Gabriel Sanches <gabriel@gsr.dev>"
 license="GPL-3.0-or-later"
 homepage="https://texlab.netlify.app/"
-distfiles="https://github.com/latex-lsp/${pkgname}/archive/v${version}.tar.gz
- https://github.com/salsa-rs/salsa/archive/v0.13.2.tar.gz"
-checksum="04978b118b455607b5debd0a886f0728ca6c498289d2a0c60d8f83b316dc5ebc
- 2e33e20d22692f6bcd4d638392b9c2cfb716bcd28998e809db0dd88be4f70a31"
-
-post_extract() {
-	mv ../salsa-* salsa
-}
+changelog="https://raw.githubusercontent.com/latex-lsp/texlab/master/CHANGELOG.md"
+distfiles="https://github.com/latex-lsp/${pkgname}/archive/v${version}.tar.gz"
+checksum="a39766f497dfb2cf9e370ddc430b7d275cb055b4d8a0751d718a86072747a75c"

             reply	other threads:[~2021-12-15 16:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15 16:16 cinerea0 [this message]
2021-12-15 16:48 ` cinerea0
2022-01-04  4:20 ` [PR PATCH] [Updated] [WIP] " cinerea0
2022-01-04  5:12 ` cinerea0
2022-01-04  8:36 ` [PR PATCH] [Merged]: " ericonr

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34557@inbox.vuxu.org \
    --to=cinerea0@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).