Skip to content
Snippets Groups Projects
Commit 5e8b82c1 authored by Nuno Teixeira's avatar Nuno Teixeira
Browse files

editors/lapce: Unbreak arm64

 - add upstream patch for process_path 0.1.4 crate
   https://github.com/wesleywiser/process_path/pull/13
 - bump PORTREVISION
parent f1548b88
No related branches found
No related tags found
No related merge requests found
PORTNAME= lapce
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.0 # remove openssl-src-* from CARGO-CRATES each update
PORTREVISION= 1
CATEGORIES= editors
MAINTAINER= eduardo@FreeBSD.org
......@@ -8,10 +9,10 @@ COMMENT= Lightning-fast and Powerful Code Editor
WWW= https://lapce.dev/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= i386 arm64
NOT_FOR_ARCHS= i386
NOT_FOR_ARCHS_REASON_i386= doesn't build: [zstd-sys 2.0.1+zstd.1.5.2] AR_i686_unknown_freebsd = None
NOT_FOR_ARCHS_REASON_arm64= doesn't build: https://github.com/lapce/lapce/issues/1185
BUILD_DEPENDS= p5-Cairo-GObject>0:devel/p5-Cairo-GObject \
p5-FindBin-libs>0:devel/p5-FindBin-libs
......@@ -19,7 +20,9 @@ LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libgit2.so:devel/libgit2 \
libssh2.so:security/libssh2
USES= cargo gmake gnome localbase:ldflags perl5 pkgconfig ssl
USES= cargo dos2unix gmake gnome localbase:ldflags perl5 pkgconfig \
ssl
DOS2UNIX_FILES= cargo-crates/process_path-0.1.4/src/bsd.rs
USE_GITHUB= yes
USE_GNOME= atk gdkpixbuf2 gtk30 pango
......
--- cargo-crates/process_path-0.1.4/src/bsd.rs.orig 2022-10-06 14:01:42 UTC
+++ cargo-crates/process_path-0.1.4/src/bsd.rs
@@ -35,7 +35,7 @@ pub fn get_executable_path() -> Option<PathBuf> {
// FreeBSD without procfs
if result == 0 {
// Convert the string allocated on the stack to a Rust string.
- let len = unsafe { strlen(buf.as_ptr() as *const i8) };
+ let len = unsafe { strlen(buf.as_ptr() as *const libc::c_char) };
unsafe { buf.set_len(len) };
match String::from_utf8(buf).ok() {
Some(path) => {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment