commit:     fa2d85ae2f0359da898eade63495c35abc8537cf
Author:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
AuthorDate: Sat Oct 11 19:45:16 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Oct 11 20:11:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fa2d85ae

dev-tex/tectonic: fix the "implicit autoref" error

Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev>

 ...ctonic-0.15.0-fix-the-implicit-autoref-error.patch | 19 +++++++++++++++++++
 dev-tex/tectonic/tectonic-0.15.0-r1.ebuild            |  1 +
 2 files changed, 20 insertions(+)

diff --git 
a/dev-tex/tectonic/files/tectonic-0.15.0-fix-the-implicit-autoref-error.patch 
b/dev-tex/tectonic/files/tectonic-0.15.0-fix-the-implicit-autoref-error.patch
new file mode 100644
index 0000000000..41a7ba5d80
--- /dev/null
+++ 
b/dev-tex/tectonic/files/tectonic-0.15.0-fix-the-implicit-autoref-error.patch
@@ -0,0 +1,19 @@
+From: Pavel Sobolev <[email protected]>
+Subject: [PATCH] Fix the "implicit autoref" error.
+
+Fixes the "implicit autoref creates a reference to the dereference of a raw
+pointer" error.
+
+Signed-off-by: Pavel Sobolev <[email protected]>
+
+--- a/crates/engine_bibtex/src/xbuf.rs
++++ b/crates/engine_bibtex/src/xbuf.rs
+@@ -52,7 +52,7 @@ pub unsafe fn xrealloc_zeroed<T: SafelyZero>(
+     old: *mut [T],
+     new_len: usize,
+ ) -> Option<&'static mut [T]> {
+-    let old_len = (*old).len();
++    let old_len = old.len();
+     let new_size = new_len * mem::size_of::<T>();
+     // SAFETY: realloc can be called with any size, even 0, that will just 
deallocate and return null
+     let ptr = unsafe { xrealloc(old.cast(), new_size) }.cast::<T>();

diff --git a/dev-tex/tectonic/tectonic-0.15.0-r1.ebuild 
b/dev-tex/tectonic/tectonic-0.15.0-r1.ebuild
index 1283dc316b..33d28bd387 100644
--- a/dev-tex/tectonic/tectonic-0.15.0-r1.ebuild
+++ b/dev-tex/tectonic/tectonic-0.15.0-r1.ebuild
@@ -379,6 +379,7 @@ BDEPEND="media-libs/harfbuzz"
 QA_FLAGS_IGNORED="usr/bin/${PN}"
 
 PATCHES=(
+       "${FILESDIR}/${PN}-0.15.0-fix-the-implicit-autoref-error.patch"
        "${FILESDIR}/${P}-fix-internal-consistency-problem-bbl.patch"
        "${FILESDIR}/${P}-fix-xetex_layout-build.patch"
        "${FILESDIR}/${P}-rust-1.80.patch"

Reply via email to