Skip to content

Commit

Permalink
Attempt to fix LibEGL Version mismatch
Browse files Browse the repository at this point in the history
Lib EGL mismatches with installed mesa packages. According to an online bug report[1],
this might be because we are conflicting with the installed packages that gnome was built with.

This cleans up packages to try and avoid conflicts with the gnome extension.

[1]: https://forum.snapcraft.io/t/issues-with-gnome-extension-on-core22-mesa-version-mismatch/39260
  • Loading branch information
patviafore-kudzera committed Apr 17, 2024
1 parent a385242 commit 806697c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ apps:
packetsender:
command: usr/local/bin/packetsender
desktop: usr/share/applications/packetsender.desktop

plugs:
- desktop
- desktop-legacy
Expand Down Expand Up @@ -62,4 +61,22 @@ parts:
- qt6-qpa-plugins
- qt6-wayland
- cups-client
# This part removes all the files in this snap which already exist in
# connected content and base snaps. Since these files will be available
# at runtime from the content and base snaps, they do not need to be
# included in this snap itself.
#
# More info: https://forum.snapcraft.io/t/reducing-the-size-of-desktop-snaps/17280#heading--cleanup-part
#
cleanup:
after: # Make this part run last; list all your other parts here
- packetsender
plugin: nil
build-snaps: # List all content-snaps and base snaps you're using here
- core22
override-prime: |
set -eux
for snap in "core22" "gnome" ; do # List all content-snaps and base snaps you're using here
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
done

0 comments on commit 806697c

Please sign in to comment.