[Rpm-maint] [rpm-software-management/rpm] Failed to delete files during the rmbuild execution (Issue #2380)
xujing
notifications at github.com
Mon Feb 6 03:13:23 UTC 2023
When Non-privileged user was used to build the "rpm" package, the file deletion failed during the final rmbuild cleanup phase. The problem is caused by the lack of write permission on the testing directory.
```
...
[ 209s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILDROOT/rpm-4.18.0-1.oe1.x86_64
[ 209s] Wrote: /home/abuild/rpmbuild/SRPMS/rpm-4.18.0-1.oe1.src.rpm
[ 209s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/rpm-plugin-systemd-inhibit-4.18.0-1.oe1.x86_64.rpm
[ 209s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/rpm-build-4.18.0-1.oe1.x86_64.rpm
[ 209s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/python3-rpm-4.18.0-1.oe1.x86_64.rpm
[ 209s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/rpm-devel-4.18.0-1.oe1.x86_64.rpm
[ 209s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/rpm-libs-4.18.0-1.oe1.x86_64.rpm
[ 209s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/rpm-4.18.0-1.oe1.x86_64.rpm
[ 209s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/rpm-debugsource-4.18.0-1.oe1.x86_64.rpm
[ 210s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/rpm-debuginfo-4.18.0-1.oe1.x86_64.rpm
[ 210s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/rpm-help-4.18.0-1.oe1.noarch.rpm
[ 210s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.2fUx5e
[ 210s] + umask 022
[ 210s] + cd /home/abuild/rpmbuild/BUILD
[ 210s] + cd rpm-4.18.0
[ 210s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/rpm-4.18.0-1.oe1.x86_64
[ 210s] + RPM_EC=0
[ 210s] ++ jobs -p
[ 210s] + exit 0
[ 210s] Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.jaZtVz
[ 210s] + umask 022
[ 210s] + cd /home/abuild/rpmbuild/BUILD
[ 210s] + rm -rf rpm-4.18.0 rpm-4.18.0.gemspec
[ 210s] rm: cannot remove 'rpm-4.18.0/tests/testing/usr/share/locale/br/LC_MESSAGES/rpm.mo': Permission denied
[ 210s] rm: cannot remove 'rpm-4.18.0/tests/testing/usr/share/locale/ko/LC_MESSAGES/rpm.mo': Permission denied
[ 210s] rm: cannot remove 'rpm-4.18.0/tests/testing/usr/share/locale/uk/LC_MESSAGES/rpm.mo': Permission denied
...
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2380
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2380 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230205/d5b5a606/attachment.html>
More information about the Rpm-maint
mailing list