bump(main/watchexec): 2.3.2

- Fixes https://github.com/termux/termux-packages/issues/24733

- Apply solution proposed by Biswa96 here: https://github.com/termux/termux-packages/issues/24733#issuecomment-2891284425
This commit is contained in:
termux-pacman-bot
2026-01-04 00:53:19 +00:00
parent d15075520d
commit 1050ea337b
2 changed files with 36 additions and 5 deletions

View File

@@ -2,15 +2,31 @@ TERMUX_PKG_HOMEPAGE=https://github.com/watchexec/watchexec
TERMUX_PKG_DESCRIPTION="Executes commands in response to file modifications"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.3.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/watchexec/watchexec/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=bf508d3662fe85294a61ab39a3fbfb0a76f79202448fb3c038a3003ae3e18245
TERMUX_PKG_VERSION="2.3.2"
TERMUX_PKG_SRCURL="https://github.com/watchexec/watchexec/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=52201822ab00bfaf6757f953f667870b3aada52f887813e94b4f322f239ff8fb
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() {
termux_step_pre_configure() {
termux_setup_rust
cargo vendor
find ./vendor \
-mindepth 1 -maxdepth 1 -type d \
! -wholename ./vendor/notify-rust \
-exec rm -rf '{}' \;
local patch="$TERMUX_PKG_BUILDER_DIR/notify-rust-bump-zbus.diff"
local dir="vendor/notify-rust"
echo "Applying patch: $patch"
patch -p1 -d "$dir" < "${patch}"
echo "" >> Cargo.toml
echo '[patch.crates-io]' >> Cargo.toml
echo 'notify-rust = { path = "./vendor/notify-rust" }' >> Cargo.toml
}
termux_step_make_install() {
cargo install \
--jobs $TERMUX_PKG_MAKE_PROCESSES \
--path crates/cli \

View File

@@ -0,0 +1,15 @@
Fixes error:
zbus-5.7.0/src/connection/socket/unix.rs:342:44
no `PeerPidfd` in `sys::socket::sockopt`
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -118,7 +118,7 @@ version = "1"
optional = true
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.zbus]
-version = "5"
+version = "5.12.0"
optional = true
[target.'cfg(target_os="macos")'.dependencies.chrono]