Bug 2295331

Summary: perl-Net-SSLeay: FTBFS: fatal error: openssl/engine.h: No such file or directory
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: perl-Net-SSLeayAssignee: Paul Howarth <paul>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jplesnik, kasal, mspacek, paul, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/perl-Net-SSLeay
Whiteboard:
Fixed In Version: perl-Net-SSLeay-1.94-5.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 17:11:31 UTC Type: ---
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:    
Bug Blocks: 2260875    

Description Jitka Plesnikova 2024-07-03 06:32:18 UTC
Description of problem:
Package perl-Net-SSLeay fails to build from source in Fedora Rawhide.

SSLeay.xs:185:10: fatal error: openssl/engine.h: No such file or directory
  185 | #include <openssl/engine.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:354: SSLeay.o] Error 1

It is related to openssl-3.2.2-3.fc41
* Mon Jul 01 2024 Dmitry Belyavskiy <dbelyavs> - 1:3.2.2-3
- Moving engine-related files to a separate subpackage to be deprecated in future
  Resolves: rhbz#2276420

There are 2 possible solutions
1) add BR openssl-devel-engine
2) stop using OpenSSL ENGINE API by updating `perl Makefile.PL` command
   OPTIMIZE="%{optflags} -DOPENSSL_NO_ENGINE"
   For more info see:
    https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine

Version-Release number of selected component (if applicable):
1.94-4.fc41

Steps to Reproduce:
koji build --scratch f41 perl-Net-SSLeay-1.94-4.fc41.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/perl-Net-SSLeay

Reproducible: Always

Comment 1 Fedora Update System 2024-07-09 15:40:03 UTC
FEDORA-2024-c882a2d1c4 (perl-Net-SSLeay-1.94-5.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-c882a2d1c4

Comment 2 Fedora Update System 2024-07-09 17:11:31 UTC
FEDORA-2024-c882a2d1c4 (perl-Net-SSLeay-1.94-5.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.