Bug 1974247

Summary: cryptlib: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: cryptlibAssignee: Ralf Senderek <fedora>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/cryptlib
Whiteboard:
Fixed In Version: cryptlib-3.4.5-18.f35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-24 14:21:23 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:    
Bug Blocks: 1927309    

Description Tomáš Hrnčiar 2021-06-21 07:47:26 UTC
Description of problem:
Package cryptlib fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
3.4.5-17.fc35

Steps to Reproduce:
koji build --scratch f35 cryptlib-3.4.5-17.fc35.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/cryptlib

Comment 1 Ralf Senderek 2021-06-24 14:21:23 UTC
The issue with pthread_yield is resolved by amending the source file ./kernel/thread.h

2982 #include <sched.h>
...
3022   #if defined( __linux__ ) && ( OSVERSION > 3 )
3023        #define  THREAD_YIELD()          sched_yield()
3024   #endif

The package now builds fine, see: https://koji.fedoraproject.org/koji/taskinfo?taskID=70742601