diff options
Diffstat (limited to 'Ports/bash')
-rwxr-xr-x | Ports/bash/bash.sh | 28 | ||||
-rwxr-xr-x | Ports/bash/package.sh | 12 | ||||
-rw-r--r-- | Ports/bash/patches/configure-system.patch (renamed from Ports/bash/configure-system.patch) | 0 | ||||
-rw-r--r-- | Ports/bash/patches/disable-locale.patch (renamed from Ports/bash/disable-locale.patch) | 0 | ||||
-rw-r--r-- | Ports/bash/patches/include-stdio.patch (renamed from Ports/bash/include-stdio.patch) | 0 |
5 files changed, 12 insertions, 28 deletions
diff --git a/Ports/bash/bash.sh b/Ports/bash/bash.sh deleted file mode 100755 index fa701caa68..0000000000 --- a/Ports/bash/bash.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -PORT_DIR=bash -fetch() { - run_fetch_git "https://git.savannah.gnu.org/git/bash.git" - - # Add serenity as a system for configure - run_patch configure-system.patch -p1 - - # For some reason, the build fails due to FILE* being undefined without this. - # This is probably a LibC bug, but work around it for now. - run_patch include-stdio.patch -p1 - - # Locale calls crash right now. LibC bug, probably. - run_patch disable-locale.patch -p1 -} -configure() { - run_configure_autotools --disable-nls --without-bash-malloc -} -build() { - # Avoid some broken cross compile tests... - run_replace_in_file "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h - run_replace_in_file "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h - run_make -} -install() { - run_make_install DESTDIR="$SERENITY_ROOT"/Root -} -. ../.port_include.sh diff --git a/Ports/bash/package.sh b/Ports/bash/package.sh new file mode 100755 index 0000000000..56daeb313f --- /dev/null +++ b/Ports/bash/package.sh @@ -0,0 +1,12 @@ +#!/bin/bash ../.port_include.sh +port=bash +version=5.0 +useconfigure=true +configopts="--disable-nls --without-bash-malloc" +files="https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz bash-5.0.tar.gz" + +build() { + run_replace_in_file "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h + run_replace_in_file "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h + run make $makeopts +} diff --git a/Ports/bash/configure-system.patch b/Ports/bash/patches/configure-system.patch index 5a642d7816..5a642d7816 100644 --- a/Ports/bash/configure-system.patch +++ b/Ports/bash/patches/configure-system.patch diff --git a/Ports/bash/disable-locale.patch b/Ports/bash/patches/disable-locale.patch index c231fc5936..c231fc5936 100644 --- a/Ports/bash/disable-locale.patch +++ b/Ports/bash/patches/disable-locale.patch diff --git a/Ports/bash/include-stdio.patch b/Ports/bash/patches/include-stdio.patch index bd06d4b6f8..bd06d4b6f8 100644 --- a/Ports/bash/include-stdio.patch +++ b/Ports/bash/patches/include-stdio.patch |