Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1865255

Summary: primesieve: FTBFS in Fedora rawhide/f33
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: primesieveAssignee: Kim Walisch <kim.walisch>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kim.walisch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-09 10:38:28 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: 1803234    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2020-08-03 20:44:35 UTC
primesieve failed to build from source in Fedora rawhide/f33

https://koji.fedoraproject.org/koji/taskinfo?taskID=48349999


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Please fix primesieve at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
primesieve will be orphaned. Before branching of Fedora 34,
primesieve will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://fedoraproject.org/wiki/Fails_to_build_from_source

Comment 1 Fedora Release Engineering 2020-08-03 20:44:36 UTC
Created attachment 1708948 [details]
build.log

Comment 2 Fedora Release Engineering 2020-08-03 20:44:38 UTC
Created attachment 1708949 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2020-08-03 20:44:39 UTC
Created attachment 1708950 [details]
state.log

Comment 4 Kim Walisch 2020-08-04 06:35:21 UTC
Hi,

This bug is not a primesieve bug but has been caused by a change in how CMake builds are handled by Fedora. This blog post https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds explains the change and how to change the spec of projects that are using CMake: 

"%cmake and %cmake_kf5 macros will be adjusted (-B parameter) to use separate build folder (already standardized %{_vpath_builddir} macro). Additionally, %cmake_build, %cmake_install and %ctest macro will be created (and backported to the older supported Fedora releases) to perform various operations that are commonly used with CMake in a backend-agnostic (Makefiles, Ninja, etc.) way. Packages that will stop building are trivial to fix and will be adjusted either by maintainers or change owners."

In the build.log file we can see that currently CMake creates the makefile in the /builddir/build/BUILD/primesieve-7.5/x86_64-redhat-linux-gnu directory but then when make is launched from the /builddir/build/BUILD/primesieve-7.5 directory. Based on the blog post I guess that make_build and make_install have to be replaced by cmake_build and cmake_install.

Comment 5 Kim Walisch 2020-08-04 10:06:31 UTC
I have now fixed the bug. I changed make_build and make_install to cmake_build and cmake_install.

Here is a link to the successful koji build on rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=48611204

P.S. Note that the new primesieve.spec will not build on Fedora 32 (and earlier versions) as I had to hardcode the documentation path to %{_vpath_builddir}/doc/html.

Comment 6 Igor Raits 2020-08-09 10:38:28 UTC
There has been at least one successfull build after mass rebuild.

primesieve-7.5-6.fc33: https://koji.fedoraproject.org/koji/buildinfo?buildID=1582531