Giter Club home page Giter Club logo

bash-static's Introduction

robert xu


Currently maintaining (of which I'm actively using for one reason or another):

bash-static's People

Contributors

caseyduquettesc avatar cspotcode avatar dependabot[bot] avatar josegonzalez avatar robxu9 avatar thesonicmaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bash-static's Issues

Does this package work with armv7l?

I'd like to build a version of dokku/plugn - which uses this library - with raspberry pi support. I believe that means 32-bit for armv7l, but its not clear to me if the release is 32 or 64 bit.

Also, do we have an armv8 release?

Cannot build bash-5.2 (`strtoimax` related error)

Distro: Arch Linux

Using the latest build scripts.

Commands and outputs:

> ./build.sh linux x86_64
[...]
/home/miketsu/Projects/bash-static/build/musl-install/bin/musl-gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh  -L./lib/termcap -rdynamic -static -Os   -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o  dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o bashline.o  list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o  -lbuiltins -lglob -lsh -lreadline -lhistory ./lib/termcap/libtermcap.a -ltilde     -ldl 
/usr/bin/ld: /home/miketsu/Projects/bash-static/build/musl-install/lib/libc.a(strtol.lo): in function `strtoimax':
strtol.c:(.text.strtoimax+0x0): multiple definition of `strtoimax'; ./lib/sh/libsh.a(strtoimax.o):strtoimax.c:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:595: bash] Error 1

I can successfully build bash-5.1.16 using the same build script, but I cannot build bash-5.2, instead I get the above error.

bash 3.2/4.4 static versions

From #17 - there are use cases for testing with old bash versions - mainly for macOS, which still uses bash 3.2 and may utilise deployment scripts. Consider building 3.2/4.4 versions.

Compilation requires c89

If I try to build on macos 11.5, bash 3.2 and 4.4 fail because of implicit function declarations. Bash 5.1 works ok.

Based on this - https://www.gnu.org/software/bash/manual/html_node/Compilers-and-Options.html, the solution seems to be to enable c89 mode.

./support/bashversion.c:138:21: error: implicit declaration of function 'shell_version_string' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    printf ("%s\n", shell_version_string ());
                    ^
./support/bashversion.c:140:5: error: implicit declaration of function 'show_shell_version' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    show_shell_version (0);
    ^

Can we get a bash 5.0 release?

Is it possible to make a release for bash 5.0? I tried building locally on my Mac and it seems to have worked.

All I had to do was change the version number in build.sh to "5.0"

`libintl.8.dylib` is required on OSX

Trying to run bash 5.1.016-1.2.3 (the macos-x86_64 build) on the M1 seems to fail with:

dyld[28034]: Library not loaded: '/usr/local/opt/gettext/lib/libintl.8.dylib'
  Referenced from: '.../tools/bash--5.1.16/bash--darwin'
  Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file)
/usr/local/opt/gettext/lib/libintl.8.dylib

Installing gettext from Homebrew doesn't help, because on the ARM OSX they've changed the URL to /opt/homebrew/....

(I know there is also an ARM build, but I was trying to support both Intel and ARM architectures with a single executable...)

plain code loaded in the binary

โžœ releases git:(master) ./bashc ~/Desktop/prog/bin/install.sh in.bin
โžœ releases git:(master) tail in.bin
echo "Installation complete, use prog --help to get started"
}

main
#00000000000038318697%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.