From b871a00f1ad254a91eac857bc00f132d91d73eb5 Mon Sep 17 00:00:00 2001 From: George Hopkins Date: Tue, 9 Apr 2024 15:42:52 +0200 Subject: [PATCH] community/gdu: set default shell to ash --- community/gdu/APKBUILD | 7 +++++-- community/gdu/ash.patch | 13 +++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 community/gdu/ash.patch diff --git a/community/gdu/APKBUILD b/community/gdu/APKBUILD index 3a155098900..64a6a3b1ffc 100644 --- a/community/gdu/APKBUILD +++ b/community/gdu/APKBUILD @@ -3,14 +3,16 @@ pkgname=gdu pkgver=5.28.0 _majorver=${pkgver%%.*} -pkgrel=0 +pkgrel=1 pkgdesc="Fast disk usage calculator with console interface" url="https://github.com/dundee/gdu" arch="all" license="MIT" makedepends="go gzip" subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/dundee/gdu/archive/refs/tags/v$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/dundee/gdu/archive/refs/tags/v$pkgver.tar.gz + ash.patch + " export GOFLAGS="$GOFLAGS -modcacherw" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" @@ -57,4 +59,5 @@ package() { sha512sums=" cb7b71553fccbe40d294259e649ecb6b258c283375dadb565da857b277aba4d6c5e773418adf4077e9319d25f61f0f5e1d50ce9633734010d88a16064af68768 gdu-5.28.0.tar.gz +6b19ef6f63670fcca6e893fb713a96635d850b0b5063dfe96427e9f29875e314c91f1bbdcbfe156314005e3b953346f814a6dd53702f026b2242a3b73734f8bb ash.patch " diff --git a/community/gdu/ash.patch b/community/gdu/ash.patch new file mode 100644 index 00000000000..331a556dd53 --- /dev/null +++ b/community/gdu/ash.patch @@ -0,0 +1,13 @@ +diff --git a/tui/exec_other.go b/tui/exec_other.go +index 6fd0b91..04b938d 100644 +--- a/tui/exec_other.go ++++ b/tui/exec_other.go +@@ -11,7 +11,7 @@ import ( + func getShellBin() string { + shellbin, ok := os.LookupEnv("SHELL") + if !ok { +- shellbin = "/bin/bash" ++ shellbin = "/bin/ash" + } + return shellbin + }