diff --git a/.tito/packages/mock b/.tito/packages/mock index 6cccbd8fe..f993edcec 100644 --- a/.tito/packages/mock +++ b/.tito/packages/mock @@ -1 +1 @@ -5.7-1 mock/ +5.8-1 mock/ diff --git a/docs/Release-Notes-5.8.md b/docs/Release-Notes-5.8.md new file mode 100644 index 000000000..3fb701483 --- /dev/null +++ b/docs/Release-Notes-5.8.md @@ -0,0 +1,23 @@ +--- +layout: default +title: Release Notes - Mock 5.8 +--- + +## [Release 5.8](https://rpm-software-management.github.io/mock/Release-Notes-5.8) - 2024-09-27 + + +### Bugfixes + +- Mock v5.7 introduced a regression in the `chroot_scan` plugin that prevented the + result directory from being created properly. This issue has been + [fixed][PR#1472] - and is the major reason for doing v5.8 bugfix release. + +- The ownership of the tarball provided by `chroot_scan` (when `write_tar = + True`) has been corrected, ensuring the file is no longer root-owned. + +- The `chroot_scan` plugin now consistently uses the `util.do` method instead of + custom `subprocess.call` calls. This ensures that the `mock --verbose` output + properly displays the commands (like `cp`, or `tar`) being executed. + + +[PR#1472]: https://github.com/rpm-software-management/mock/pull/1472 diff --git a/docs/index.md b/docs/index.md index f1cb0caa0..472968bc5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -69,6 +69,7 @@ Versions in Linux distributions: ## Release Notes +* [5.8](Release-Notes-5.8) - Bug-fixed regression in `chroot_scan` plugin. * [5.7 and Configs 41.3](Release-Notes-5.7) - Support for isolated builds added. DNF4 = DNF. Option `--scrub-all-chroots` added. * [Configs 41.1 (and 41.2)](Release-Notes-Configs-41.1) - EL7 configs EOL. F38 EOL. F41 branched. * [Configs 40.6](Release-Notes-Configs-40.6) - CentOS Stream 10 uses mirrored repositories. diff --git a/mock/mock.spec b/mock/mock.spec index d231b7a72..337ff5a64 100644 --- a/mock/mock.spec +++ b/mock/mock.spec @@ -6,7 +6,7 @@ Summary: Builds packages inside chroots Name: mock -Version: 5.7 +Version: 5.8 Release: 1%{?dist} License: GPL-2.0-or-later # Source is created by @@ -313,6 +313,11 @@ pylint-3 py/mockbuild/ py/*.py py/mockbuild/plugins/* || : %config(noreplace) %{_sysusersdir}/mock.conf %changelog +* Fri Sep 27 2024 Pavel Raiskup 5.8-1 +- chroot_scan: make sure the tarball is owned by non-priv user +- chroot_scan: use util.do to display command in --verbose +- chroot_scan: correctly create the result directory + * Thu Sep 26 2024 Pavel Raiskup 5.7-1 - hermetic: new mode to do fully-offline builds - new --scrub-all-chroots option diff --git a/releng/release-notes-next/chroot-scan-permissions.bugfix b/releng/release-notes-next/chroot-scan-permissions.bugfix deleted file mode 100644 index ef97387b3..000000000 --- a/releng/release-notes-next/chroot-scan-permissions.bugfix +++ /dev/null @@ -1,2 +0,0 @@ -The ownership of the `chroot_scan` plugin "output tarball" (when `write_tar = -True`) has been corrected, ensuring the file is no longer root-owned. diff --git a/releng/release-notes-next/chroot-scan-util-do.bugfix b/releng/release-notes-next/chroot-scan-util-do.bugfix deleted file mode 100644 index 31704a452..000000000 --- a/releng/release-notes-next/chroot-scan-util-do.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -The `chroot_scan` plugin now consistently uses the `util.do` method instead of -custom `subprocess.call` calls. This ensures that the `mock --verbose` output -properly displays the commands (like `cp`, or `tar`) being executed. diff --git a/releng/release-notes-next/chroot_scan_resultdir.bugfix b/releng/release-notes-next/chroot_scan_resultdir.bugfix deleted file mode 100644 index 6c172b65f..000000000 --- a/releng/release-notes-next/chroot_scan_resultdir.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Mock v5.7 introduced a regression in the `chroot_scan` plugin that prevented the -result directory from being created properly. This issue has been -[fixed][PR#1472].