Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883073 - media-gfx/freecad-0.20.1 fails to build against sci-libs/opencascade-7.7.0
Summary: media-gfx/freecad-0.20.1 fails to build against sci-libs/opencascade-7.7.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
: 905939 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-11-25 21:53 UTC by Nowa Ammerlaan
Modified: 2023-05-08 14:25 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.gz,81.19 KB, application/gzip)
2022-11-25 21:54 UTC, Nowa Ammerlaan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nowa Ammerlaan gentoo-dev 2022-11-25 21:53:26 UTC
After upgrading opencascade to version 7.7.0 freecad fails to build due to Standard_TooManyUsers.hxx no longer being installed by opencascade 7.7.0.
Comment 1 Nowa Ammerlaan gentoo-dev 2022-11-25 21:54:58 UTC
Created attachment 836805 [details]
build log
Comment 2 Bernd 2022-11-26 08:53:49 UTC
Looks like this is already fixed in master. I see, if I can apply the patch isolated or take some other measures.

https://github.com/FreeCAD/FreeCAD/commit/9a41845a417189776741297c50a3827ce292bc4f
Comment 3 Thomas Capricelli 2022-11-26 12:34:11 UTC
confirmed here.
Comment 4 Bernd 2022-11-27 11:37:30 UTC
Unfortunately the patch from comment #2 doesn't cleanly apply and needs additional patches, some of them really big and intrusive.

As there's already plans to release a 0.20.2 version[1], I'd prefer to not go through the hassle of identifying and applying all patches related to building against OCC 7.7.0, but instead wait until the new version gets released and restrict 0.20.1 to <sci-libs/opencascade-7.7.0.

There's no guarantee, that all OCC 7.7.0 related patches will apply selectively and don't break the build or the app either.

If someone needs FC build against OCC 7.7.0, I recommend using the live ebuild, which succeeds to build against v7.7.0, as of a test I ran today.

[1] https://forum.freecadweb.org/viewtopic.php?f=10&t=73645&sid=2c7e974d3c1234abf9963fb604f89385
Comment 5 Larry the Git Cow gentoo-dev 2022-11-27 13:23:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=734858c39ae95ae5fcdaa3178583d43b8ea52de4

commit 734858c39ae95ae5fcdaa3178583d43b8ea52de4
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-11-27 11:38:54 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2022-11-27 13:23:01 +0000

    media-gfx/freecad: restrict to <sci-libs/opencascade-7.7.0
    
    Several issues when trying to build against OCC 7.7.0.
    
    They have been updated upstream already and there's an v0.20.2 version
    planed for release, so just restrict the dependency for now. If you rely
    on FreeCAD build against OCC 7.7.0, you can use the live ebuild.
    
    Closes: https://bugs.gentoo.org/883073
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/28447
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 media-gfx/freecad/freecad-0.20.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Thomas Capricelli 2022-11-27 15:36:57 UTC
(In reply to Bernd from comment #4)
> but instead wait until the new version gets
> released and restrict 0.20.1 to <sci-libs/opencascade-7.7.0.

Fair enough and fine with me. Thx for fixing the dependancy in current ebuild !
Comment 7 Bernd 2022-12-12 07:08:24 UTC
The 0.20 series will stay at 7.6.3.
I got an issue, while packaging 0.20.2 which is related to OCC 7.7.0 as well and upstream confirmed the policy is to stay with 7.6.x with the 0.20 series.

See https://forum.freecadweb.org/viewtopic.php?f=10&t=73645&p=647036#p647028
Comment 8 Andreas Sturmlechner gentoo-dev 2023-05-08 14:25:02 UTC
*** Bug 905939 has been marked as a duplicate of this bug. ***