From 78198f4e5acc836e80cc15ef06bc7e74afd642ff Mon Sep 17 00:00:00 2001 From: qoijjj <129108030+qoijjj@users.noreply.github.com> Date: Sun, 18 Aug 2024 18:35:56 -0700 Subject: [PATCH] feat: patch brew installation just command to not require wheel --- files/scripts/enable-wheelless-brew-installation.patch | 7 +++++++ files/scripts/enablewheellessbrewjust.sh | 7 +++++++ recipes/common/common-scripts.yml | 1 + 3 files changed, 15 insertions(+) create mode 100644 files/scripts/enable-wheelless-brew-installation.patch create mode 100644 files/scripts/enablewheellessbrewjust.sh diff --git a/files/scripts/enable-wheelless-brew-installation.patch b/files/scripts/enable-wheelless-brew-installation.patch new file mode 100644 index 0000000..76f8eeb --- /dev/null +++ b/files/scripts/enable-wheelless-brew-installation.patch @@ -0,0 +1,7 @@ +20,25d19 +< # if /etc/profile.d/brew.sh already exists, replace it with /usr/etc/profile.d/brew.sh +< if [ -f /etc/profile.d/brew.sh ]; then +< if [ -f /usr/etc/profile.d/brew.sh ]; then +< sudo cp /usr/etc/profile.d/brew.sh /etc/profile.d/brew.sh +< fi +< fi diff --git a/files/scripts/enablewheellessbrewjust.sh b/files/scripts/enablewheellessbrewjust.sh new file mode 100644 index 0000000..e9c7107 --- /dev/null +++ b/files/scripts/enablewheellessbrewjust.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -oue pipefail + +patch /usr/share/ublue-os/just/05-brew.just < enable-wheelless-brew-installation.patch + diff --git a/recipes/common/common-scripts.yml b/recipes/common/common-scripts.yml index e030721..5482084 100644 --- a/recipes/common/common-scripts.yml +++ b/recipes/common/common-scripts.yml @@ -8,3 +8,4 @@ scripts: - createmissingdirectories.sh - removesuid.sh - disablegeoclue.sh + - enablewheellessbrewjust.sh