Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831086 - media-gfx/freecad-9999: freecad-9999-Gentoo-specific-fix-install-locations-of-Ext-and-Mod.patch fails
Summary: media-gfx/freecad-9999: freecad-9999-Gentoo-specific-fix-install-locations-of...
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
Depends on:
Blocks:
 
Reported: 2022-01-12 21:25 UTC by Jernej Jakob
Modified: 2022-01-28 08:24 UTC (History)
4 users (show)

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


Attachments
freecad-9999-Gentoo-specific-fix-install-locations-of-Ext-and-Mod.patch.xz (freecad-9999-Gentoo-specific-fix-install-locations-of-Ext-and-Mod.patch.xz,4.33 KB, patch)
2022-01-14 11:38 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jernej Jakob 2022-01-12 21:25:46 UTC
Ebuild fails with error:

Applying freecad-9999-Gentoo-specific-fix-install-locations-of-Ext-and-Mod.patch ...
patching file cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake
patching file src/3rdParty/lazy_loader/CMakeLists.txt
patching file src/Gui/CMakeLists.txt
Hunk #1 succeeded at 1343 (offset 1 line).
patching file src/Mod/AddonManager/CMakeLists.txt
Hunk #1 succeeded at 41 (offset 2 lines).
patching file src/Mod/Arch/CMakeLists.txt
patching file src/Mod/Assembly/CMakeLists.txt
patching file src/Mod/Cam/CMakeLists.txt
patching file src/Mod/Cloud/CMakeLists.txt
patching file src/Mod/Complete/CMakeLists.txt
patching file src/Mod/Draft/CMakeLists.txt
patching file src/Mod/Drawing/CMakeLists.txt
patching file src/Mod/Fem/CMakeLists.txt
patching file src/Mod/Fem/Gui/CMakeLists.txt
Hunk #1 succeeded at 405 (offset 2 lines).
patching file src/Mod/Idf/CMakeLists.txt
patching file src/Mod/Image/CMakeLists.txt
patching file src/Mod/Import/CMakeLists.txt
patching file src/Mod/Inspection/CMakeLists.txt
patching file src/Mod/JtReader/CMakeLists.txt
patching file src/Mod/Material/CMakeLists.txt
patching file src/Mod/Measure/CMakeLists.txt
patching file src/Mod/Mesh/CMakeLists.txt
patching file src/Mod/MeshPart/CMakeLists.txt
patching file src/Mod/MeshPart/Gui/CMakeLists.txt
patching file src/Mod/OpenSCAD/CMakeLists.txt
patching file src/Mod/Part/CMakeLists.txt
Hunk #1 succeeded at 90 (offset 1 line).
patching file src/Mod/PartDesign/CMakeLists.txt
patching file src/Mod/Path/CMakeLists.txt
Hunk #2 succeeded at 300 (offset 6 lines).
Hunk #3 FAILED at 323.
1 out of 3 hunks FAILED -- saving rejects to file src/Mod/Path/CMakeLists.txt.rej
patching file src/Mod/Plot/CMakeLists.txt
patching file src/Mod/Points/CMakeLists.txt
patching file src/Mod/Raytracing/CMakeLists.txt
patching file src/Mod/ReverseEngineering/CMakeLists.txt
patching file src/Mod/Robot/CMakeLists.txt
patching file src/Mod/Sandbox/CMakeLists.txt
patching file src/Mod/Show/CMakeLists.txt
patching file src/Mod/Sketcher/CMakeLists.txt
Hunk #1 succeeded at 47 (offset 1 line).
patching file src/Mod/Spreadsheet/CMakeLists.txt
patching file src/Mod/Start/CMakeLists.txt
patching file src/Mod/Start/StartPage/CMakeLists.txt
patching file src/Mod/Surface/CMakeLists.txt
patching file src/Mod/TechDraw/CMakeLists.txt
patching file src/Mod/TemplatePyMod/CMakeLists.txt
patching file src/Mod/Test/CMakeLists.txt
patching file src/Mod/Test/Gui/CMakeLists.txt
patching file src/Mod/Tux/CMakeLists.txt
patching file src/Mod/Web/CMakeLists.txt
patching file src/Tools/_TEMPLATE_/CMakeLists.txt

Reproducible: Always
Comment 1 Fabio Rossi 2022-01-14 11:38:39 UTC
Created attachment 762145 [details, diff]
freecad-9999-Gentoo-specific-fix-install-locations-of-Ext-and-Mod.patch.xz

fixed patch, reported also to waebbl in:

https://github.com/waebbl/waebbl-gentoo/issues/354#issuecomment-1012434300

anyway that is not enough to run correctly the application, I get the error:

FreeCAD 0.20, Libs: 0.20RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

No modules found in /usr/Mod
User path has changed to /home/fabio/.local/share/FreeCAD/. Please move user modules and macros
connect failed: No such file or directory

because the path to the modules is changed by the patch. So I had to use also the patch in https://github.com/waebbl/waebbl-gentoo/issues/354#issue-1088806545

The cumulative patch is here attached
Comment 2 Michael Moon 2022-01-16 07:29:08 UTC
I just ran into this one
Comment 3 Larry the Git Cow gentoo-dev 2022-01-28 08:24:13 UTC
The bug has been closed via the following commit(s):

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

commit c0d511652d855d453231c9e301c1516586889131
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-01-16 11:13:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-28 08:24:01 +0000

    media-gfx/freecad: fix patchset
    
    Split the patchset and use several patches instead of a compressed
    patch set stored elsewhere. This way, the patches can be handled
    more easily in case of upstream changes to some of the files.
    
    Some of the source code files have to be patched in order to use
    the settings.
    
    Bug: https://github.com/waebbl/waebbl-gentoo/issues/354
    Bug: https://github.com/waebbl/waebbl-gentoo/issues/355
    Closes: https://bugs.gentoo.org/831086
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/23825
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/freecad/Manifest            |  1 -
 media-gfx/freecad/freecad-9999.ebuild | 30 +++++++++++-------------------
 2 files changed, 11 insertions(+), 20 deletions(-)