Description of problem: Package SFCGAL fails to build from source in Fedora Rawhide. Version-Release number of selected component (if applicable): 1.5.0-1.fc42 Steps to Reproduce: koji build --scratch f42 SFCGAL-1.5.0-1.fc42.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/SFCGAL
SFCGAL has an upstream patch in a merge-request: https://gitlab.com/sfcgal/SFCGAL/-/merge_requests/325 That merge-request was merged before the new release SFCGAL 2.0.0: https://gitlab.com/sfcgal/SFCGAL/-/releases/v2.0.0
(In reply to Laurent Rineau from comment #1) > SFCGAL has an upstream patch in a merge-request: > > https://gitlab.com/sfcgal/SFCGAL/-/merge_requests/325 There have been other changes upstream before that patch, so it doesn't apply cleanly to the f42 source. For example, if you apply this --- src/algorithm/straightSkeleton.cpp +++ src/algorithm/straightSkeleton.cpp @@ -379,10 +385,9 @@ approximateMedialAxis(const Geometry &g) -> std::unique_ptr<MultiLineString> extractPolygons(g, polys); for (auto &poly : polys) { - Kernel::Vector_2 trans; - Polygon_with_holes_2 const polygon = preparePolygon(poly, trans); - boost::shared_ptr<Straight_skeleton_2> const skeleton = - straightSkeleton(polygon); + Kernel::Vector_2 trans; + Polygon_with_holes_2 const polygon = preparePolygon(poly, trans); + SHARED_PTR<Straight_skeleton_2> const skeleton = straightSkeleton(polygon); if (skeleton == nullptr) { BOOST_THROW_EXCEPTION( you end up with this extractPolygons(g, polys); for (auto &poly : polys) { Kernel::Vector_2 trans; Polygon_with_holes_2 const polygon = preparePolygon(poly, trans); SHARED_PTR<Straight_skeleton_2> const skeleton = straightSkeleton(polygon); if (!skeleton.get()) { BOOST_THROW_EXCEPTION( where the penultimate line is not what it should be.
Results of building upstream release 1.5.2 in mock: - epel10 with CGAL-6.0.1 fails at the same point and with the same error as the koji 1.5.0-1 build. - epel10 with CGAL-5.6.2 fails at algorithm/union.cpp.o with "Error: unknown pseudo-op '.lbb7'". - epel9 with CGAL-5.6.2 succeeds. - epel9 with CGAL-6.0.1 fails at the same point and with the same error as the koji 1.5.0-1 build. Results of building upstream release 2.0.0 in mock: - epel10 with CGAL-6.0.1 succeeds building 100% but then fails in doc. - epel10 with CGAL-5.6.2 idem [100%] Built target SFCGAL gmake[1]: Leaving directory '/builddir/build/BUILD/SFCGAL-v2.0.0/redhat-linux-build' /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/SFCGAL-v2.0.0/redhat-linux-build/CMakeFiles 0 + cd doc + doxygen error: Doxyfile not found and no input file specified! The doc directory is in /builddir/build/BUILD/SFCGAL-v2.0.0/ and it does contain Doxyfile.in. There is no doc in redhat-linux-build/ .
Created attachment 2066458 [details] Buildable .spec Tested, builds correctly for both epel10 and f42
Created attachment 2066459 [details] Build log f42
*** Bug 2339865 has been marked as a duplicate of this bug. ***
In the duplicated bug #2339865#c0, the bot was warning "SFCGAL will be retired": > SFCGAL failed to build from source in Fedora rawhide/f42 > > https://koji.fedoraproject.org/koji/taskinfo?taskID=127928997 > > > For details on the mass rebuild see: > > https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild > Please fix SFCGAL 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, > SFCGAL will be orphaned. Before branching of Fedora 43, > SFCGAL will be retired, if it still fails to build.
> In the duplicated bug #2339865#c0, the bot was warning "SFCGAL will be > retired": "if it still fails to build", but now it does build. According to https://fedora.pkgs.org/rawhide/fedora-x86_64/SFCGAL-1.5.0-1.fc42.x86_64.rpm.html , only postgis depends on SFCGAL. And I have built postgis-f42 with SFCGAL-2.0.0, in its turn built against CGAL-6.0.1, so to me it seems that SFCGAL-2.0.0 can now move on to QA and into f42.
I have updated the spec file according to the patch proposed by you in 2319589#c4. It is built now in Rawhide (F43): https://bodhi.fedoraproject.org/updates/FEDORA-2025-c6022e6999 I still have to backport it to F42. And maybe in EPEL. On in EPEL10?
For F42, the build+update is done: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6a03036a2e For EPEL10, I messed-up, and I need help from releng: https://pagure.io/releng/issue/12572 ... Sorry.
FEDORA-EPEL-2025-eb821d56bd (SFCGAL-2.0.0-1.el10_0) has been submitted as an update to Fedora EPEL 10.0. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-eb821d56bd
SFCGAL v2.0.0, compiled with CGAL 6.0.1, is now is f43 (rawhide), f42, and epel10. Closing this issue.
FEDORA-EPEL-2025-eb821d56bd 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-eb821d56bd See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2025-eb821d56bd (SFCGAL-2.0.0-1.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.