Skip to content

Commit

Permalink
Merge pull request #1848 from Scille/fix-snap-ca-opengl-on-non-debian
Browse files Browse the repository at this point in the history
Fix snap ca opengl on non debian
  • Loading branch information
touilleMan authored Sep 10, 2021
2 parents 0f0ef21 + 12c4902 commit 904db7c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packaging/snap/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ apps:
command: parsec
desktop: parsec.desktop
environment:
SSL_CAFILE: ${SNAP}/cacert.pem
SENTRY_URL: https://[email protected]/1212848
PREFERRED_ORG_CREATION_BACKEND_ADDR: parsec://saas.parsec.cloud/
cli:
command: parsec-cli
environment:
SSL_CAFILE: ${SNAP}/cacert.pem
SENTRY_URL: https://[email protected]/1212848
PREFERRED_ORG_CREATION_BACKEND_ADDR: parsec://saas.parsec.cloud/

Expand Down Expand Up @@ -55,6 +57,16 @@ parts:
${VENV}/bin/python -m pip install -Ur pre-requirements.txt
${VENV}/bin/python -m pip install -U .[core]
# Bundled libssl doesn't know where host OS stores it CA certificates,
# hence we bundle them instead.
# For this, Certifi provides the Mozilla-curated certifs bundled as a
# single file and we just have to copy it into our Snap.
# Note we don't use ubuntu package's `ca-certificate` here given it
# comes as multiple pem files that must be cooked with `update-ca-certificate`
# command before being actually usable by openssl.
${VENV}/bin/python -m pip install -U certifi
cp $(${VENV}/bin/python -m certifi) ${SNAPCRAFT_PART_INSTALL}/cacert.pem
# ...then only keep the installed packages from the virtual env
# this is fine given the same python is used between build and runtime
cp -R ${VENV}/lib/python3.*/site-packages ${SNAPCRAFT_PART_INSTALL}/site-packages
Expand Down Expand Up @@ -230,6 +242,9 @@ parts:
- libxcb1
- libxkbcommon-x11-0
- libxkbcommon0
# OpenGL and friends seem needed for some widgets...
- libgl1
- libegl1
# fuse package contains fusermount which is sometime needed by libfuse2
# (see: https://github.com/Scille/parsec-cloud/issues/1253)
- fuse
Expand Down

0 comments on commit 904db7c

Please sign in to comment.