aports/community/gitui/rust1.90.patch
mio e89beb48be community/gitui: use system zlib-ng, fix build with rust 1.90
Upstream has switched to zlib-ng in the dependencies. Add zlib-ng-dev
to makedepends and adjust `.cargo/config.toml` to use system-provided
zlib-ng.

Fix build error with rust 1.90.

Upstream issue: https://github.com/gitui-org/gitui/issues/2742

```
error: failed to run custom build command for `libz-ng-sys v1.1.21`

Caused by:
  process didn't exit successfully: `/home/buildozer/aports/community/gitui/src/gitui-0.27.0/target/release/build/libz-ng-sys-c9b8b6eaaef06469/build-script-cmake` (exit status: 101)

[...]

 --- stderr
  CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
```

```
   Compiling git2-hooks v0.4.0 (/home/builder/builds/gitui/src/gitui-0.27.0/git2-hooks)
error: associated constant `CREATE_NO_WINDOW` is never used
   --> git2-hooks/src/hookspath.rs:214:8
    |
205 | trait CommandExt {
    |       ---------- associated constant in this trait
...
214 |     const CREATE_NO_WINDOW: u32 = 0x0800_0000;
    |           ^^^^^^^^^^^^^^^^
    |
note: the lint level is defined here
   --> git2-hooks/src/lib.rs:16:2
    |
 16 |     dead_code,
    |     ^^^^^^^^^

error: could not compile `git2-hooks` (lib) due to 1 previous error
```
2025-11-04 12:20:51 +01:00

24 lines
885 B
Diff

Patch-Source: https://github.com/gitui-org/gitui/commit/950e703cab1dd37e3d02e7316ec99cc0dc70513c
---
From 950e703cab1dd37e3d02e7316ec99cc0dc70513c Mon Sep 17 00:00:00 2001
From: extrawurst <776816+extrawurst@users.noreply.github.com>
Date: Sat, 7 Jun 2025 23:21:34 +0200
Subject: [PATCH] fix nightly ci (#2663)
---
git2-hooks/src/hookspath.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/git2-hooks/src/hookspath.rs b/git2-hooks/src/hookspath.rs
index fc4db5c87a..d297e4d72a 100644
--- a/git2-hooks/src/hookspath.rs
+++ b/git2-hooks/src/hookspath.rs
@@ -276,6 +276,7 @@ trait CommandExt {
/// or if it used with either `CREATE_NEW_CONSOLE` or `DETACHED_PROCESS`.
///
/// See: <https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags>
+ #[cfg(windows)]
const CREATE_NO_WINDOW: u32 = 0x0800_0000;
fn with_no_window(&mut self) -> &mut Self;