From ba1ab43415fb02a61c135dc3a3d31c8925ff03a4 Mon Sep 17 00:00:00 2001 From: wangtsingx Date: Fri, 14 Nov 2025 08:51:18 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=20ERROR:=20"getgrna?= =?UTF-8?q?m():=20name=20not=20found:=20'mock'"=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=EF=BC=9A=20ERROR:=20"getgrnam():=20name=20not=20found:=20'mock?= =?UTF-8?q?'"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitee.com/src-openeuler/mock/pulls/26 Signed-off-by: wangtsingx (cherry picked from commit bb864e8c6ffbb19b84fa653f8ca46d50002a2b97) --- mock.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mock.spec b/mock.spec index 56b22f8..b55e724 100644 --- a/mock.spec +++ b/mock.spec @@ -8,7 +8,7 @@ Summary: Builds packages inside chroots Name: mock Version: 5.6 -Release: 3 +Release: 4 License: GPL-2.0-or-later Source: https://github.com/rpm-software-management/mock/releases/download/mock-2.2-1/%{name}-%{version}.tar.gz URL: https://github.com/rpm-software-management/mock/ @@ -176,6 +176,9 @@ install -p -m 0644 docs/site-defaults.cfg %{buildroot}%{_pkgdocdir} sed -i 's/^_MOCK_NVR = None$/_MOCK_NVR = "%name-%version-%release"/' \ %{buildroot}%{_libexecdir}/mock/mock +%pre filesystem +getent group 'mock' >/dev/null || groupadd -f -g '135' -r 'mock' || : + %check %if %{with lint} # ignore the errors for now, just print them and hopefully somebody will fix it one day @@ -242,6 +245,9 @@ pylint-3 py/mockbuild/ py/*.py py/mockbuild/plugins/* || : %dir %{_datadir}/cheat %changelog +* Wed Nov 12 2025 wangqing - 5.6-4 +- fix: ERROR: "getgrnam(): name not found: 'mock'" + * Mon May 26 2025 samshichao - 5.6-3 - Add installation dependencies -- Gitee