--- devel/rust-cbindgen/Makefile (revision 490723) +++ devel/rust-cbindgen/Makefile (working copy) @@ -14,7 +14,7 @@ RUN_DEPENDS= cargo:lang/${RUST_DEFAULT} -USES= cargo +USES= cargo compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= eqrion PLIST_FILES= bin/cbindgen --- devel/rust-cbindgen/files/patch-tier2 (nonexistent) +++ devel/rust-cbindgen/files/patch-tier2 (working copy) @@ -0,0 +1,88 @@ +--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/mod.rs.orig 2018-05-21 17:06:47.000000000 +0200 ++++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/mod.rs 2019-01-19 15:50:24.657324000 +0100 +@@ -1,4 +1,3 @@ +-pub type c_char = i8; + pub type dev_t = u32; + pub type mode_t = u16; + pub type pthread_attr_t = *mut ::c_void; +@@ -80,13 +79,6 @@ s! { + pub sa_sigaction: ::sighandler_t, + pub sa_flags: ::c_int, + pub sa_mask: sigset_t, +- } +- +- pub struct stack_t { +- // In FreeBSD 11 and later, ss_sp is actually a void* +- pub ss_sp: *mut ::c_char, +- pub ss_size: ::size_t, +- pub ss_flags: ::c_int, + } + + pub struct sched_param { +--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/mod.rs.orig 2018-05-21 17:06:47.000000000 +0200 ++++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/mod.rs 2019-01-19 15:51:04.686746000 +0100 +@@ -157,6 +157,13 @@ s! { + pub sdl_slen: ::c_uchar, + pub sdl_data: [::c_char; 46], + } ++ ++ pub struct stack_t { ++ pub ss_sp: *mut ::c_void, ++ pub ss_size: ::size_t, ++ pub ss_flags: ::c_int, ++ } ++ + } + + pub const SIGEV_THREAD_ID: ::c_int = 4; +@@ -1006,6 +1013,9 @@ cfg_if! { + } else if #[cfg(target_arch = "aarch64")] { + mod aarch64; + pub use self::aarch64::*; ++ } else if #[cfg(target_arch = "powerpc64")] { ++ mod powerpc64; ++ pub use self::powerpc64::*; + } else { + // Unknown target_arch + } +--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs.orig 2019-01-19 15:40:07.392580000 +0100 ++++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs 2019-01-19 15:09:12.118962000 +0100 +@@ -0,0 +1,31 @@ ++pub type c_char = u8; ++pub type c_long = i64; ++pub type c_ulong = u64; ++pub type time_t = i64; ++pub type suseconds_t = i64; ++ ++s! { ++ pub struct stat { ++ pub st_dev: ::dev_t, ++ pub st_ino: ::ino_t, ++ pub st_mode: ::mode_t, ++ pub st_nlink: ::nlink_t, ++ pub st_uid: ::uid_t, ++ pub st_gid: ::gid_t, ++ pub st_rdev: ::dev_t, ++ pub st_atime: ::time_t, ++ pub st_atime_nsec: ::c_long, ++ pub st_mtime: ::time_t, ++ pub st_mtime_nsec: ::c_long, ++ pub st_ctime: ::time_t, ++ pub st_ctime_nsec: ::c_long, ++ pub st_size: ::off_t, ++ pub st_blocks: ::blkcnt_t, ++ pub st_blksize: ::blksize_t, ++ pub st_flags: ::fflags_t, ++ pub st_gen: ::uint32_t, ++ pub st_lspare: ::int32_t, ++ pub st_birthtime: ::time_t, ++ pub st_birthtime_nsec: ::c_long, ++ } ++} +--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/aarch64.rs.orig 2019-01-19 16:51:17.722265000 +0100 ++++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/aarch64.rs 2019-01-19 16:51:28.539267000 +0100 +@@ -1,3 +1,4 @@ ++pub type c_char = u8; + pub type c_long = i64; + pub type c_ulong = u64; + pub type time_t = i64;