-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-text/typst: fix compile error with rust 1.80
Signed-off-by: Yuhang Zeng <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app-text/typst/files/typst-0.11.1-alt-bump-time-version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
This patch updates time to 0.3.16 which makes compiling typst with rust 1.80.0 possible | ||
|
||
diff --git a/Cargo.lock b/Cargo.lock | ||
index 0a9e82ce..a613f4d9 100644 | ||
--- a/Cargo.lock | ||
+++ b/Cargo.lock | ||
@@ -2376,9 +2376,9 @@ dependencies = [ | ||
|
||
[[package]] | ||
name = "time" | ||
-version = "0.3.34" | ||
+version = "0.3.36" | ||
source = "registry+https://github.com/rust-lang/crates.io-index" | ||
-checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749" | ||
+checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" | ||
dependencies = [ | ||
"deranged", | ||
"itoa", | ||
@@ -2397,9 +2397,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" | ||
|
||
[[package]] | ||
name = "time-macros" | ||
-version = "0.2.17" | ||
+version = "0.2.18" | ||
source = "registry+https://github.com/rust-lang/crates.io-index" | ||
-checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774" | ||
+checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" | ||
dependencies = [ | ||
"num-conv", | ||
"time-core", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,8 +265,8 @@ CRATES=" | |
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected].17 | ||
[email protected].34 | ||
[email protected].18 | ||
[email protected].36 | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
|
@@ -391,6 +391,11 @@ QA_FLAGS_IGNORED="usr/bin/typst" | |
|
||
DOCS=( README.md ) | ||
|
||
src_prepare() { | ||
eapply "${FILESDIR}/typst-0.11.1-alt-bump-time-version.patch" | ||
eapply_user | ||
} | ||
|
||
src_compile() { | ||
local GIT_HASH=$(gunzip < "${DISTDIR}/${P}.tar.gz" | git get-tar-commit-id) | ||
export TYPST_VERSION="${PV} (${GIT_HASH::8})" | ||
|