username fix for 64 bit archs...

This commit is contained in:
its-pointless 2018-01-15 11:10:19 +11:00 committed by Fredrik Fornwall
parent 916990e34a
commit f63f45fc80
2 changed files with 12 additions and 1 deletions

View File

@ -4,7 +4,7 @@ TERMUX_PKG_VERSION=2.7.1
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, libflac, libmad, libvorbis, opusfile, libcue, libpulseaudio"
TERMUX_PKG_SRCURL=https://github.com/cmus/cmus/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure() {

View File

@ -0,0 +1,11 @@
--- ../cache/cmus-2.7.1/misc.c 2015-07-13 10:00:56.000000000 +0000
+++ ./misc.c 2018-01-15 00:32:11.534224662 +0000
@@ -194,7 +194,7 @@
if (user_name == NULL) {
user_name = get_non_empty_env("USERNAME");
if (user_name == NULL)
- die("error: neither USER or USERNAME environment variable set\n");
+ user_name == "Droid";
}
cmus_config_dir = get_non_empty_env("CMUS_HOME");