Bug 2312457

Summary: Please branch and build mosquitto in epel10
Product: [Fedora] Fedora EPEL Reporter: Robert Scheck <redhat-bugzilla>
Component: mosquittoAssignee: Rich Mattes <richmattes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel10CC: cllang, farrotin, jonathan, linville, mail, richmattes
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mosquitto-2.0.20-5.el10_0 mosquitto-2.0.20-5.el10_1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-22 01:18:35 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:
Bug Depends On: 2311677, 2325868    
Bug Blocks: 2303880, 2345748    

Description Robert Scheck 2024-09-15 18:46:06 UTC
Will you be able to branch and build mosquitto in epel10?

My package baresip depends on at least mosquitto-devel during build-time.

Comment 1 Fabian Affolter 2024-09-19 07:10:17 UTC
libwebsockets should be done shortly. I will go from there.

Comment 2 Fabian Affolter 2024-10-12 19:52:04 UTC
libwebsockets: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-24dcbc2fd6

Comment 3 Robert Scheck 2024-11-10 20:11:12 UTC
No matching package to install: 'openssl-devel-engine'

However: "The openssl-devel-engine package contains include files needed to develop applications which use deprecated OpenSSL ENGINE functionality."

Comment 4 Clemens Lang 2024-11-13 12:26:16 UTC
It seems mosquitto already correctly uses `#if !defined(OPENSSL_NO_ENGINE)` almost everywhere. I've found a use of an unguarded definition of `ENGINE *engine = NULL;` in `net__init_ssl_ctx` in `lib/net_mosq.c` that probably need to be fixed to also be inside of an ifdef. The same seems to apply to the declaration `ENGINE *eng` in `mosquitto_string_option` in `lib/options.c`, and then mosquitto should compile just fine against CentOS 10 Stream, although you will have to make the `openssl-devel-engine` BuildRequires specific to Fedora.

Comment 5 Clemens Lang 2024-11-13 12:33:39 UTC
In fact, mosquitto already builds fine for me in EPEL 10 with this patch:

```
diff --git a/mosquitto.spec b/mosquitto.spec
index 1ba604e..9f810b2 100644
--- a/mosquitto.spec
+++ b/mosquitto.spec
@@ -20,7 +20,9 @@ BuildRequires:  libwebsockets-devel
 BuildRequires:  libxslt
 BuildRequires:  cmake
 BuildRequires:  openssl-devel
+%if 0%{?fedora}
 BuildRequires:  openssl-devel-engine
+%endif
 BuildRequires:  systemd-devel
 %if 0%{?with_tests}
 BuildRequires:  CUnit-devel
```

Comment 6 Fedora Update System 2025-02-13 23:02:51 UTC
FEDORA-EPEL-2025-00834e18bf (mosquitto-2.0.20-5.el10_0) has been submitted as an update to Fedora EPEL 10.0.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-00834e18bf

Comment 7 Fabian Affolter 2025-02-13 23:04:00 UTC
*** Bug 2345581 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2025-02-14 02:18:22 UTC
FEDORA-EPEL-2025-00834e18bf has been pushed to the Fedora EPEL 10.0 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-00834e18bf

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

Comment 9 Fabian Affolter 2025-02-16 16:13:49 UTC
*** Bug 2345780 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2025-02-22 01:18:35 UTC
FEDORA-EPEL-2025-00834e18bf (mosquitto-2.0.20-5.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2025-02-22 12:50:57 UTC
FEDORA-EPEL-2025-c4881d356e (mosquitto-2.0.20-5.el10_1) has been submitted as an update to Fedora EPEL 10.1.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-c4881d356e

Comment 12 Fedora Update System 2025-02-23 02:12:12 UTC
FEDORA-EPEL-2025-c4881d356e has been pushed to the Fedora EPEL 10.1 testing repository.

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

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

Comment 13 Fedora Update System 2025-03-03 00:56:08 UTC
FEDORA-EPEL-2025-c4881d356e (mosquitto-2.0.20-5.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository.
If problem still persists, please make note of it in this bug report.