[neon/snap-packaging/kf6-core/work.core24] /: comment the cleanup that is suddenly a problem. will have to investigate later.

Scarlett Moore null at kde.org
Mon Jul 6 11:21:01 BST 2026


Git commit 74a215e858fd3c2a9f7a8ad618562b086be28fd8 by Scarlett Moore.
Committed on 06/07/2026 at 10:20.
Pushed by scarlettmoore into branch 'work.core24'.

comment the cleanup that is suddenly a problem. will have to investigate later.

M  +50   -50   snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kf6-core/-/commit/74a215e858fd3c2a9f7a8ad618562b086be28fd8

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 080f35b..8dc1ad1 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -695,56 +695,56 @@ parts:
       - PLATFORM_PLUG=$CRAFT_PROJECT_NAME
       - WITH_GRAPHICS=false
 
-  cleanup:
-    after: [ caches, applications-menu ]
-    plugin: nil
-    source: https://github.com/canonical/gpu-snap.git
-    build-snaps:
-      - gtk-common-themes
-      - gtk-theme-breeze
-      - icon-theme-breeze
-    build-packages:
-      - python3-pip
-      - zip
-      - python3-apt
-    stage:
-      - -usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libxml2.so.2.9.14
-    build-environment: *buildenvironment
-    override-prime: |
-      craftctl default
-      set -eux
-
-      cd /snap/gtk-common-themes/current
-      find . -type f,l ! -name index.theme -exec rm -f $CRAFT_PRIME/usr/{} \;
-      cd $CRAFT_PRIME
-      for dir in usr/share/icons/*; do
-        if [ -f "$dir/index.theme" ]; then
-          $CRAFT_STAGE/usr/bin/gtk-update-icon-cache --force "$dir"
-        fi
-      done
-      cd /snap/gtk-theme-breeze/current
-      find . -type f,l ! -name index.theme -exec rm -f $CRAFT_PRIME/usr/{} \;
-      cd $CRAFT_PRIME
-      for dir in usr/share/icons/*; do
-        if [ -f "$dir/index.theme" ]; then
-          $CRAFT_STAGE/usr/bin/gtk-update-icon-cache --force "$dir"
-        fi
-      done
-      cd /snap/icon-theme-breeze/current
-      find . -type f,l ! -name index.theme -exec rm -f $CRAFT_PRIME/usr/{} \;
-      cd $CRAFT_PRIME
-      for dir in usr/share/icons/*; do
-        if [ -f "$dir/index.theme" ]; then
-          $CRAFT_STAGE/usr/bin/gtk-update-icon-cache --force "$dir"
-        fi
-      done
-      $CRAFT_STAGE/usr/bin/kbuildsycoca6 --noincremental
-      rm -rf usr/share/doc
-      rm -rf usr/share/man
-
-      find . -type d -empty -delete
-
-      ${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404
+  # cleanup:
+  #   after: [ caches, applications-menu ]
+  #   plugin: nil
+  #   source: https://github.com/canonical/gpu-snap.git
+  #   build-snaps:
+  #     - gtk-common-themes
+  #     - gtk-theme-breeze
+  #     - icon-theme-breeze
+  #   build-packages:
+  #     - python3-pip
+  #     - zip
+  #     - python3-apt
+  #   stage:
+  #     - -usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libxml2.so.2.9.14
+  #   build-environment: *buildenvironment
+  #   override-prime: |
+  #     craftctl default
+  #     set -eux
+  #
+  #     cd /snap/gtk-common-themes/current
+  #     find . -type f,l ! -name index.theme -exec rm -f $CRAFT_PRIME/usr/{} \;
+  #     cd $CRAFT_PRIME
+  #     for dir in usr/share/icons/*; do
+  #       if [ -f "$dir/index.theme" ]; then
+  #         $CRAFT_STAGE/usr/bin/gtk-update-icon-cache --force "$dir"
+  #       fi
+  #     done
+  #     cd /snap/gtk-theme-breeze/current
+  #     find . -type f,l ! -name index.theme -exec rm -f $CRAFT_PRIME/usr/{} \;
+  #     cd $CRAFT_PRIME
+  #     for dir in usr/share/icons/*; do
+  #       if [ -f "$dir/index.theme" ]; then
+  #         $CRAFT_STAGE/usr/bin/gtk-update-icon-cache --force "$dir"
+  #       fi
+  #     done
+  #     cd /snap/icon-theme-breeze/current
+  #     find . -type f,l ! -name index.theme -exec rm -f $CRAFT_PRIME/usr/{} \;
+  #     cd $CRAFT_PRIME
+  #     for dir in usr/share/icons/*; do
+  #       if [ -f "$dir/index.theme" ]; then
+  #         $CRAFT_STAGE/usr/bin/gtk-update-icon-cache --force "$dir"
+  #       fi
+  #     done
+  #     $CRAFT_STAGE/usr/bin/kbuildsycoca6 --noincremental
+  #     rm -rf usr/share/doc
+  #     rm -rf usr/share/man
+  #
+  #     find . -type d -empty -delete
+  #
+  #     ${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404
 
   alsa-pulseaudio:
     plugin: dump


More information about the Neon-commits mailing list