diff options
author | Nathan Pratta Teodosio <nathan.teodosio@canonical.com> | 2025-01-16 17:01:01 +0100 |
---|---|---|
committer | Nathan Pratta Teodosio <nathan.teodosio@canonical.com> | 2025-01-16 22:18:17 +0100 |
commit | e5da5fd7bf12b69efb923d265f5c264e0513c9f3 (patch) | |
tree | 0eebf07168834daf5543bf652f3e2dce1d5761a2 | |
parent | bc1e213748b526933d3f5d699b3880ae0b36df44 (diff) |
Remove $CRAFT_PART_SRC when entering override-build.
To fix the out of space condition.
-rw-r--r-- | snapcraft.yaml | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml index 1f9be6b..a06dc5f 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -235,6 +235,22 @@ parts: "$CRAFT_PRIME" set -u + # Generate and install the man page (see the "manpage" part) + mkdir -p $CRAFT_PART_INSTALL/man1 + sed \ + -e "s/@@PACKAGE@@/chromium/g" \ + -e "s/@@MENUNAME@@/chromium/g" \ + -e "s:\$HOME/.config:\$SNAP_USER_DATA/.config:g" \ + -e "s:\$HOME/.cache:\$SNAP_USER_COMMON/.cache:g" \ + $CRAFT_PART_SRC/chrome/app/resources/manpage.1.in \ + > $CRAFT_PART_INSTALL/man1/chrome.1 + gzip -9n $CRAFT_PART_INSTALL/man1/chrome.1 + + # Builder gets out of space because of the duplication of + # SRC->BUILD. Remove SRC then. + # https://forum.snapcraft.io/t/duplicated-directories-src-and-build-are-a-space-issue/44618 + rm -rf "$CRAFT_PART_SRC" + # Find all patches that don't apply anymore before running Quilt, as it # stops at the 1st unappliable and doesn't tells us how the file looks. d=$CRAFT_PROJECT_DIR/patches @@ -298,17 +314,6 @@ parts: # Fix setuid bits on the sandbox executable # (ref: https://forum.snapcraft.io/t/call-for-testing-chromium-snap/1714/16) chmod 4555 $CRAFT_PART_INSTALL/usr/lib/chromium-browser/chrome-sandbox - - # Generate and install the man page (see the "manpage" part) - mkdir -p $CRAFT_PART_INSTALL/man1 - sed \ - -e "s/@@PACKAGE@@/chromium/g" \ - -e "s/@@MENUNAME@@/chromium/g" \ - -e "s:\$HOME/.config:\$SNAP_USER_DATA/.config:g" \ - -e "s:\$HOME/.cache:\$SNAP_USER_COMMON/.cache:g" \ - $CRAFT_PART_SRC/chrome/app/resources/manpage.1.in \ - > $CRAFT_PART_INSTALL/man1/chrome.1 - gzip -9n $CRAFT_PART_INSTALL/man1/chrome.1 override-stage: | # Workaround copied from Firefox for empty libdrm LP:2054887 LP:2055273 # https://git.launchpad.net/~mozilla-snaps/firefox-snap/+git/firefox-snap/commit/?id=00059b6a9aea8e4ce5a239bd9e649f60736dd947 |