From f3ebddd1713b501ccf12477b846fecb60948e277 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 22 Oct 2026 09:28:27 +0000 Subject: automatic import of ros-humble-cwiid --- ros-humble-cwiid.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ros-humble-cwiid.spec b/ros-humble-cwiid.spec index 75e7d01..a557c22 100644 --- a/ros-humble-cwiid.spec +++ b/ros-humble-cwiid.spec @@ -6,7 +6,7 @@ Name: ros-humble-cwiid Version: 0.6.00 -Release: 3%{?dist} +Release: 4%{?dist} Summary: CWiid Wiimote Interface — libcwiid and tools (wmgui/wminput/lswm) License: GPLv2 @@ -58,8 +58,14 @@ Requires: bluetooth-devel Header files, static library, development symlink and pkg-config file for %{name}. +# 用 %setup + 显式 %patch -p1 替代 %autosetup:本 chroot 的 rpm 中 +# %autosetup 展开后调用 patch 不带 -p 参数(-p0),对 git diff 多层路径 +# (a/wmgui/main.c)报 "No file to patch";单层路径(a/defs.mak.in)靠 +# patch 智能重试偶然成功。显式 -p1 剥掉 a//b/ 前缀,两层 patch 均可靠应用。 %prep -%autosetup -n %{name}-%{version} +%setup -n %{name}-%{version} +%patch0 -p1 +%patch1 -p1 %build # 源码仅含 configure.ac,需先生成 configure 脚本 @@ -94,6 +100,11 @@ autoreconf -if %{_libdir}/pkgconfig/cwiid.pc %changelog +* Thu Oct 22 2026 openEuler Builder - 0.6.00-4 +- Fix Patch1 apply failure ("No file to patch"): replace %autosetup with + explicit %setup + %patch -p1; this chroot's rpm expands %autosetup to + patch without -p, which fails on multi-path git diffs (a/wmgui/main.c). + * Thu Oct 22 2026 openEuler Builder - 0.6.00-3 - Fix -Werror=format-security in wmgui/main.c: use "%s" format literal for gtk_message_dialog_new. -- cgit v1.2.3