New RPM has stricter requirements for the user/group management.
Packages now have to specify new user and groups in the 'Provides'
section if they are being created by this package, or have the
'sysusers' file that defines the users and groups accordingly.
Without that it's not possible to install the built RPMs:
- package openvswitch-3.7.90-1.fc43.x86_64 from @commandline
requires user(openvswitch), but none of the providers can be
installed
- package openvswitch-3.7.90-1.fc43.x86_64 from @commandline
requires group(openvswitch), but none of the providers can be
installed
As a solution for our current branches, let's simply add the
provided user and groups to the 'Provides' section. May need
to migrate to the 'sysusers' method in the future releases.
Moving CI to Fedora 43 in the process. 41 is EoL.
Signed-off-by: Ilya Maximets <[email protected]>
---
.github/workflows/build-and-test.yml | 2 +-
rhel/openvswitch-fedora.spec.in | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build-and-test.yml
b/.github/workflows/build-and-test.yml
index 96a503ca5..5f9e337de 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -670,7 +670,7 @@ jobs:
build-linux-rpm:
name: linux rpm fedora
runs-on: ubuntu-latest
- container: fedora:41
+ container: fedora:43
timeout-minutes: 30
strategy:
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index 38fbee727..39abb4daf 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -70,6 +70,11 @@ BuildRequires: /usr/bin/sphinx-build-3
BuildRequires: procps-ng
%if %{with libcapng}
BuildRequires: libcap-ng libcap-ng-devel
+Provides: user(openvswitch)
+Provides: group(openvswitch)
+%if %{with dpdk}
+Provides: group(hugetlbfs)
+%endif
%endif
%if %{with dpdk}
BuildRequires: libpcap-devel numactl-devel
--
2.52.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev