Skip to content

Commit 292fc7c

Browse files
authored
Merge pull request #280 from jonhermansen/main
build: fix aarch64-darwin build
2 parents d456097 + 1a44856 commit 292fc7c

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎flake.nix‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
fontconfig
5858
freetype
5959
harfbuzz
60-
libotf
6160
cairo
6261
pango
6362
glib
@@ -86,6 +85,7 @@
8685
# is Rust. Keep libstdc++ in both the package and development runtime
8786
# closure so freshly linked bootstrap executables are runnable.
8887
stdenv.cc.cc.lib
88+
libotf
8989
alsa-lib
9090
gst_all_1.gst-vaapi
9191
libva
@@ -117,6 +117,11 @@
117117
pkgs.pkg-config
118118
pkgs.llvmPackages.clang
119119
pkgs.makeWrapper
120+
] ++ lib.optionals pkgs.stdenv.isDarwin [
121+
# xtask's fresh-build pipeline re-signs role binaries after patching
122+
# the pdump fingerprint (xtask/src/main.rs:657). `codesign` isn't on
123+
# PATH in the Nix sandbox; sigtool provides a compatible shim.
124+
pkgs.darwin.sigtool
120125
];
121126

122127
mkNeomacsPackage = system:

‎neovm-core/src/emacs_core/process/sys/serial/termios_backend.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn open(path: &OsStr) -> io::Result<Device> {
4646
// src/sysdep.c:2985-2987): a port that does not support it is still usable.
4747
// SAFETY: `TIOCEXCL` takes no pointer argument.
4848
unsafe {
49-
libc::ioctl(fd.as_raw_fd(), libc::TIOCEXCL, 0 as libc::c_int);
49+
libc::ioctl(fd.as_raw_fd(), libc::TIOCEXCL as _, 0 as libc::c_int);
5050
}
5151
Ok(Device { fd })
5252
}

‎neovm-core/src/emacs_core/process/sys/tty.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub unsafe fn establish_pty_controlling_terminal(tty: &std::ffi::CStr) -> std::i
116116
pub fn fd_foreground_pgrp(fd: RawFd) -> Option<i32> {
117117
let mut gid: libc::pid_t = -1;
118118
// SAFETY: `TIOCGPGRP` writes the pgrp through the provided `&mut gid`.
119-
let ok = unsafe { libc::ioctl(fd, libc::TIOCGPGRP, &mut gid) } != -1;
119+
let ok = unsafe { libc::ioctl(fd, libc::TIOCGPGRP as _, &mut gid) } != -1;
120120
(ok && gid != -1).then_some(gid)
121121
}
122122

0 commit comments

Comments
 (0)