Official Snap package dedicated forum thread

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Official Snap package dedicated forum thread

Post by Kunda1 »

adrianinsaval wrote: Sun Mar 26, 2023 11:20 pm It's not snap doing it, it's functionality from cmake that FreeCAD used in this case where compiling the dependency is trivial
oh, that's great news! Thx for the heads up.

Edit: would this mean that there could be unnecessary overlap between the dependencies within the current snapcraft.yml and cmake prefetching them ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Official Snap package dedicated forum thread

Post by adrianinsaval »

would this mean that there could be unnecessary overlap between the dependencies within the current snapcraft.yml and cmake prefetching them ?
Not currently, this is only used with fmt right now, and if it finds fmt in the system it does not fetch it.
User avatar
CadX
Posts: 10
Joined: Fri Mar 03, 2017 7:37 am

Re: Official Snap package dedicated forum thread

Post by CadX »

@adrianinsaval
@Kunda1

Same problem again...
Thanks in advance.
Attachments
20230402_231959.jpg
20230402_231959.jpg (94.37 KiB) Viewed 3103 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Official Snap package dedicated forum thread

Post by Kunda1 »

@CadX ty for the heads-up

Reverted. Retriggered Daily build.

Edit: daily build has successfully built.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
knipknap
Posts: 115
Joined: Sat Mar 05, 2022 1:21 pm

Re: Official Snap package dedicated forum thread

Post by knipknap »

Not sure if I am supposed to write in this thread or open a new one, but since "snap info" refers to this thread I am going to assume the latter.

I tried to install FreeCAD from snap and found that...

- the tool library setting is not remembered, I have to set it a again after every restart.
- the tool shapes that used to be in /usr/share/freecad-daily/Mod/Path/Tools/Shape/*.fcstd do not seem to exist, so I am unable to set up new tools.

Any hint on how to resolve that?

Code: Select all

$ snap info freecad
name:      freecad
summary:   An open source parametric 3D CAD modeler
publisher: FreeCAD (freecad-org)
store-url: https://snapcraft.io/freecad
contact:   https://forum.freecad.org/viewtopic.php?f=42&t=68714
license:   LGPL-2.0-or-later
description: |
  FreeCAD is a parametric 3D modeler. Parametric modeling
  allows you to easily modify your design by going back into
  your model history and changing its parameters. FreeCAD is
  open source (LGPL license) and completely modular, allowing
  for very advanced extension and customization.
  
  FreeCAD is multiplatfom, and reads and writes many open
  file formats such as STEP, IGES, STL and others.
  
  **Channels**
  
  There are three maintained channels for this snap:
  
  - `stable` contains the latest upstream release, i.e. the most recent tagged commit.
  (**Use this if you don't know what you're doing.**)
  - `beta` contains automated weekly promotions from `edge`.
  (**Use this if you want edge with fewer updates.**)
  - `edge` contains automated (daily) builds from the latest master commit.
  (**Use this to test new features. Might be unstable.**)
  
  **Apps/Commands**
  
  There are multiple apps/commands included in the snap:
  
  - `freecad`:               Run FreeCAD
  - `freecad.cmd`:      Run FreeCAD command line interface
  - `freecad.pip`:        Install python packages for user (not system-wide).
                         E.g. `freecad.pip install py_slvs` for Assembly3.
  
  
  Side note: There is a FreeCAD experimental branch called 'Link branch' created by a user named
  'realthunder' that has become popular. It is available as a Snap package named
  `freecad-realthunder` (https://snapcraft.io/freecad-realthunder).
commands:
  - freecad.cmd
  - freecad
  - freecad.pip
snap-id:      6gjU50q0lEDaMTtSUxYoVDSmjR5fERpB
tracking:     latest/edge
refresh-date: today at 09:29 CEST
channels:
  latest/stable:    0.20.2         2022-12-31 (517) 577MB -
  latest/candidate: 0.20.2         2022-12-28 (517) 577MB -
  latest/beta:      0.21-g5cd377f9 2023-04-23 (684) 582MB -
  latest/edge:      0.21-gc77b2f33 2023-04-27 (688) 582MB -
installed:          0.21-gc77b2f33            (688) 582MB -
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Official Snap package dedicated forum thread

Post by Kunda1 »

Thanks for the feedback.
There was a PR issue #9352 (that I made) that possibly broke something in Snap packaging reported in https://github.com/FreeCAD/FreeCAD/issu ... 1525505907
If that's the cause, hopefully we can figure it out ASAP and I'll re-trigger a new Snap edge build.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Official Snap package dedicated forum thread

Post by adrianinsaval »

knipknap wrote: Thu Apr 27, 2023 11:00 am - the tool shapes that used to be in /usr/share/freecad-daily/Mod/Path/Tools/Shape/*.fcstd do not seem to exist, so I am unable to set up new tools.
I don't think the install location is user writable for snap packages, you need to store your tool shapes in an user writable directory. I suggest you post your question on the path subforum: viewforum.php?f=15
knipknap
Posts: 115
Joined: Sat Mar 05, 2022 1:21 pm

Re: Official Snap package dedicated forum thread

Post by knipknap »

adrianinsaval wrote: Thu Apr 27, 2023 2:06 pm I don't think the install location is user writable for snap packages, you need to store your tool shapes in an user writable directory. I suggest you post your question on the path subforum: viewforum.php?f=15
I am neither trying to write nor to read this directory. I am saying that the files that are shipped with FreeCAD and included in e.g. a .deb package are not in the snap.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Official Snap package dedicated forum thread

Post by adrianinsaval »

they most likely are, just not in that location or anywhere near, snaps are not installed to the regular directory structure of the system, they are sandboxed and must not interfere with or use system packages. I do not remember what is the install location for snaps but there is a separate directory for them.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Official Snap package dedicated forum thread

Post by Kunda1 »

I'm going to start researching how to have split OCC dependency version between v0.20.x stable and upcoming v0.21.x development (v7.7.1 for the latter). If anyone has experience with maintaining snaps, feel free to hit me up!

Edit: related ticket https://github.com/FreeCAD/FreeCAD-snap/issues/69
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply