Discussion: State of the snap (Snap Packaging)

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Discussion: State of the snap (Snap Packaging)

Post by vejmarie »

Kunda1 wrote: Sun Dec 20, 2020 1:19 pm Can any of the snap users/maintainers comment on this PR #4110 please as it may impact packaging
I don't think it is going to break the snap. If it did, I will workaround it. I didn't updated the snap lately, as I am waiting for 0.19 to be released.
User avatar
Ivo Cavalcante
Posts: 3
Joined: Wed Jun 24, 2020 12:46 am

Re: Discussion: State of the snap (Snap Packaging)

Post by Ivo Cavalcante »

Hi @vejmarie,

Had to reinstall my system (disk died), however I wasn't able to install FreeCAD Snap again.

Code: Select all

$ snap install freecad
error: snap "freecad" not found
It used to work before. Asking on Snapcraft forum, general suspicious is that it might be blocked on some countries. Do you happen to have such restrictions enabled?
User avatar
kkremitzki
Veteran
Posts: 2509
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Discussion: State of the snap (Snap Packaging)

Post by kkremitzki »

vejmarie wrote: Sun Dec 20, 2020 2:03 pm
Just tried the 0.19 snap quickly a bit ago, seems to work well although the window title still says 0.18?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Discussion: State of the snap (Snap Packaging)

Post by vejmarie »

Hi,

I do not think that I made any restriction, I will double check (it could be the case since their is SSL dependency activated now)

vejmarie
Ivo Cavalcante wrote: Sat Jan 16, 2021 12:57 am Hi @vejmarie,

Had to reinstall my system (disk died), however I wasn't able to install FreeCAD Snap again.

Code: Select all

$ snap install freecad
error: snap "freecad" not found
It used to work before. Asking on Snapcraft forum, general suspicious is that it might be blocked on some countries. Do you happen to have such restrictions enabled?
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Discussion: State of the snap (Snap Packaging)

Post by vejmarie »

Argh that is weird. I will recheck that. Did you tried from channel/beta ?

I built a new version last week, it shall be fully updated presently
kkremitzki wrote: Fri Mar 05, 2021 9:19 pm
vejmarie wrote: Sun Dec 20, 2020 2:03 pm
Just tried the 0.19 snap quickly a bit ago, seems to work well although the window title still says 0.18?
mp01
Posts: 1
Joined: Fri Apr 09, 2021 2:12 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by mp01 »

Hi,
source still needs to be changed for 0.19
snap_source.png
snap_source.png (22.68 KiB) Viewed 7560 times
And I especially miss some permissions to access files and folders outside the home directory. e.g. NAS or removable media.
freacad_pemissions.png
freacad_pemissions.png (90.41 KiB) Viewed 7560 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

Not sure this affects snap packaging but we've renamed the git repo that we're serving FreeCAD development builds from. Please see https://forum.freecadweb.org/viewtopic.php?f=4&t=57958

Edit: please pass the word on, TIA!
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
boy007
Posts: 6
Joined: Thu Sep 10, 2015 8:10 am
Contact:

Re: Discussion: State of the snap (Snap Packaging) - BUG REPORTS TO SNAP TEAM ?

Post by boy007 »

BUG REPORTING !

Yes, application could have built in BUG REPORT TOOL
that copyes software, enviromnet and note.

For example my Ubuntu 20.4 snap dose not regonize SpaceNav spaceball
but AppImage dose.

Also I need personaly functionatialityes only available at SOURCE code
but it's PAIN to get source compiled!

So i use now AppImage instead snap and when time more i will compile
whit all bell's and whisrtles.

joni
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Discussion: State of the snap (Snap Packaging)

Post by ppd »

I've decided to set up a proper snap build and to publish it on the store:

https://snapcraft.io/freecad-ppd

Source is here: https://github.com/ppd/freecad-ppd
Report issues with the snap here: https://github.com/ppd/freecad-ppd/issues
CI/CD is here: https://github.com/ppd/freecad-ppd/actions

There are two 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.
- edge contains automated (daily) builds from the latest master commit. Use this to test new features. Might be unstable.

It is a self-contained packaging repo; you don't need anything else aside from snapcraft to build it.
It follows the ideas I outlined in my initial post.

I decided to revisit this snap when I discovered that the official snap had problems with downloading addons due to /etc/gitconfig being present on the host. Development there is very sporadic, and I still believe this packaging should find its way into some repository controlled by the FreeCAD organization.

@kkremitzki You've taken an interest in the snap before (https://forum.snapcraft.io/t/freecad-sn ... unity/7636). Would you be open to maintaining a packaging repo under the FreeCAD umbrella and also publish an official package on the store?
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

ppd wrote: Wed Nov 10, 2021 1:12 pm - edge contains automated (daily) builds from the latest master commit. Use this to test new features. Might be unstable.
Sorry if you explained this already, what is 'edge' based on ? Is it HEAD or is it generated on a weekly/daily basis ?
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