Skip to content

Commit abd7877

Browse files
committed
tectonic: rebuild with libicu78
1 parent 3d05015 commit abd7877

3 files changed

Lines changed: 39 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/crates/engine_bibtex/src/xbuf.rs
2+
+++ b/crates/engine_bibtex/src/xbuf.rs
3+
@@ -52,7 +52,7 @@ pub unsafe fn xrealloc_zeroed<T: SafelyZ
4+
old: *mut [T],
5+
new_len: usize,
6+
) -> Option<&'static mut [T]> {
7+
- let old_len = (*old).len();
8+
+ let old_len = (&(*old)).len();
9+
let new_size = new_len * mem::size_of::<T>();
10+
// SAFETY: realloc can be called with any size, even 0, that will just deallocate and return null
11+
let ptr = unsafe { xrealloc(old.cast(), new_size) }.cast::<T>();
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- a/crates/engine_xetex/build.rs
2+
+++ b/crates/engine_xetex/build.rs
3+
@@ -184,7 +184,7 @@ const C_FILES: &[&str] = &[
4+
];
5+
6+
const CXX_FLAGS: &[&str] = &[
7+
- "-std=c++14",
8+
+ "-std=c++17",
9+
"-Wall",
10+
"-Wdate-time",
11+
"-Wendif-labels",
12+
--- a/crates/xetex_layout/build.rs
13+
+++ b/crates/xetex_layout/build.rs
14+
@@ -86,7 +86,7 @@ fn main() {
15+
let mut cppcfg = cc::Build::new();
16+
17+
let cppflags = [
18+
- "-std=c++14",
19+
+ "-std=c++17",
20+
"-Wall",
21+
"-Wdate-time",
22+
"-Wendif-labels",

srcpkgs/tectonic/template

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'tectonic'
22
pkgname=tectonic
33
version=0.15.0
4-
revision=2
4+
revision=3
55
build_style=cargo
66
configure_args="--features=external-harfbuzz"
77
hostmakedepends="pkg-config"
@@ -14,7 +14,11 @@ homepage="https://tectonic-typesetting.github.io"
1414
changelog="https://raw.githubusercontent.com/tectonic-typesetting/tectonic/release/CHANGELOG.md"
1515
distfiles="https://github.com/tectonic-typesetting/tectonic/archive/tectonic@${version}.tar.gz"
1616
checksum=3c13de312c4fe39ff905ad17e64a15a3a59d33ab65dacb0a8b9482c57e6bc6aa
17-
broken=yes
17+
# broken=yes
18+
19+
pre_patch() {
20+
cargo update --package time@0.3.34 --precise 0.3.47
21+
}
1822

1923
post_install() {
2024
vlicense LICENSE

0 commit comments

Comments
 (0)