Bug 2157788

Summary: Requires: systemd-udev which is not available for epel7
Product: [Fedora] Fedora EPEL Reporter: Jean-Philippe Pialasse <tests>
Component: beepAssignee: Hans Ulrich Niedermann <rhbugs>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: carl, rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: beep-1.4.12-7.el8 beep-1.4.12-7.el9 beep-1.4.12-7.fc36 beep-1.4.12-7.el7 beep-1.4.12-7.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-06 00:41:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jean-Philippe Pialasse 2023-01-02 23:46:09 UTC
Description of problem:
trying to install beep on CentOS7 from EPEL7

Version-Release number of selected component (if applicable):
beep.x86_64 0:1.4.11-2.el7


How reproducible:
every time


Steps to Reproduce:
1.# yum install beep --enablerepo=epel


Actual results:
Résolution des dépendances
--> Lancement de la transaction de test
---> Le paquet beep.x86_64 0:1.4.11-2.el7 sera installé
--> Traitement de la dépendance : systemd-udev pour le paquet : beep-1.4.11-2.el7.x86_64
--> Résolution des dépendances terminée
Erreur : Paquet : beep-1.4.11-2.el7.x86_64 (smecontribs)
             Requiert : systemd-udev
 Vous pouvez essayer d'utiliser --skip-broken pour contourner le problème


Expected results:
beep.x86_64 0:1.4.11-2.el7 a été installé

Additional info:

Comment 1 Jean-Philippe Pialasse 2023-01-02 23:47:42 UTC
# rpm -qf /etc/udev/rules.d/
systemd-219-78.el7_9.7.x86_64

Comment 2 Carl George 🎩 2023-01-26 21:42:13 UTC
https://src.fedoraproject.org/rpms/beep/pull-request/1

Comment 3 Jean-Philippe Pialasse 2023-01-27 05:02:57 UTC
(In reply to Carl George 🤠 from comment #2)
> https://src.fedoraproject.org/rpms/beep/pull-request/1

Hi Carl, thank you for working on it.
I might be wrong but shouldn't the patch rather be the following with systemd used for el7 and systemd-udev for other ?


@@ -65,7 +65,11 @@ 
  # /etc/modprobe.d/
  Requires:       kmod
  # /etc/udev/rules.d/  and  /usr/lib/udev/rules.d/
+ %if %{defined el7}
  Requires:       systemd
+ %else
+ Requires:       systemd-udev
+ %endif
	

  %description

Comment 4 Hans Ulrich Niedermann 2023-01-27 12:36:57 UTC
I plan on using the following:

 # /etc/udev/rules.d/  and  /usr/lib/udev/rules.d/
+%if 0%{?rhel} <= 7
+Requires:       systemd
+%else
 Requires:       systemd-udev
+%endif

Comment 5 Fedora Update System 2023-01-27 16:01:30 UTC
FEDORA-2023-5f62fc0861 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5f62fc0861

Comment 6 Fedora Update System 2023-01-27 16:01:36 UTC
FEDORA-EPEL-2023-ee68ccffc9 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-ee68ccffc9

Comment 7 Fedora Update System 2023-01-27 16:01:37 UTC
FEDORA-EPEL-2023-1f09b6d1d6 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-1f09b6d1d6

Comment 8 Fedora Update System 2023-01-27 16:01:38 UTC
FEDORA-EPEL-2023-8fc9ff0f97 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-8fc9ff0f97

Comment 9 Fedora Update System 2023-01-27 16:01:39 UTC
FEDORA-2023-e42fd6bca8 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e42fd6bca8

Comment 10 Hans Ulrich Niedermann 2023-01-28 00:44:42 UTC
My last fix was buggy (cf. https://src.fedoraproject.org/rpms/beep/pull-request/1#comment-128524), so I have revoked the above updates.

As `beep.spec` already contains

    %{!?el7:BuildRequires:  libubsan}

it makes sense to follow that pattern, so I have committed and test-built the following two conditional `Requires:` lines:

    # /etc/udev/rules.d/  and  /usr/lib/udev/rules.d/
    %{?el7:Requires:  systemd}
    %{!?el7:Requires: systemd-udev}

I have verified the `Requires: systemd` for el7 and `Requires: systemd-udev` for everything else with a series of `fedpkg mockbuild` with subsequent `rpm -q --requires` and by looking at the koji built RPMs in koji.

I will create bodhi updates tomorrow if nobody finds another problem.

Comment 11 Carl George 🎩 2023-01-28 03:59:14 UTC
> I might be wrong but shouldn't the patch rather be the following with systemd used for el7 and systemd-udev for other ?

Yes, I accidentally inverted those lines while writing out the conditional.  But as shown above the maintainer fixed it a different way that has the same end result.

Comment 12 Fedora Update System 2023-01-28 13:00:15 UTC
FEDORA-EPEL-2023-8353251535 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-8353251535

Comment 13 Fedora Update System 2023-01-28 13:00:16 UTC
FEDORA-2023-63305f26e2 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-63305f26e2

Comment 14 Fedora Update System 2023-01-28 13:00:17 UTC
FEDORA-2023-ab1ace8be2 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ab1ace8be2

Comment 15 Fedora Update System 2023-01-28 13:00:18 UTC
FEDORA-EPEL-2023-a8841ab89f has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-a8841ab89f

Comment 16 Fedora Update System 2023-01-28 13:00:19 UTC
FEDORA-EPEL-2023-ee23e37c1f has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-ee23e37c1f

Comment 17 Fedora Update System 2023-01-29 00:22:09 UTC
FEDORA-EPEL-2023-a8841ab89f has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-a8841ab89f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2023-01-29 01:48:51 UTC
FEDORA-2023-ab1ace8be2 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ab1ace8be2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ab1ace8be2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2023-01-29 01:52:13 UTC
FEDORA-2023-63305f26e2 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-63305f26e2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-63305f26e2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2023-01-29 02:38:52 UTC
FEDORA-EPEL-2023-8353251535 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-8353251535

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2023-01-29 02:40:35 UTC
FEDORA-EPEL-2023-ee23e37c1f has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-ee23e37c1f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2023-02-06 00:41:22 UTC
FEDORA-EPEL-2023-8353251535 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2023-02-06 01:00:26 UTC
FEDORA-EPEL-2023-a8841ab89f has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2023-02-06 01:32:41 UTC
FEDORA-2023-63305f26e2 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2023-02-06 01:34:11 UTC
FEDORA-EPEL-2023-ee23e37c1f has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Fedora Update System 2023-02-06 01:37:38 UTC
FEDORA-2023-ab1ace8be2 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.