Giter Site home page Giter Site logo

mikroskeem / musl_root Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 220 KB

Yet another Musl-based lightweight container or distribution bootstrapper

License: MIT License

Shell 100.00%
linux musl container distribution build compile source opensource libressl

musl_root's Issues

Logging

Log everything to files out of box. It aids with debugging.

Also make colours appear on log files (See #3)

Script colors

Because... who doesn't like colors?

Of course make this option configurable using script arguments or config.sh

Stage 2

Honestly I am not sure if I should ever add stage 2 and what should it do exactly?

Missing /etc/passwd, group and shadow

makepkg requires non-root user to build packages, but to create accounts,
one needs to have /etc/passwd, group and shadow.

By default, those aren't provided

Build own musl toolchain

Replaces usage of toolchain from musl.cc introduced in commit a11627d, because given toolchain looks for libraries/headers in /$(uname -m)-linux-musl-native prefix.

Possible solution would be to configure toolchain to use system libraries/includes path, but as musl_root is compiling everything from source already, then it's better to build own toolchain.

configure: error: C++ compiler cannot create executables

configure:2749: checking for C++ compiler default output file name
configure:2771: g++    conftest.cpp  >&5
/tools/lib/gcc/x86_64-unknown-linux-musl/8.2.0/../../../../x86_64-unknown-linux-musl/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
configure:2775: $? = 1
configure:2813: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "LZMA"
| #define PACKAGE_TARNAME "lzma"
| #define PACKAGE_VERSION "4.32.7"
| #define PACKAGE_STRING "LZMA 4.32.7"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define NDEBUG 1
| #define PACKAGE "lzma"
| #define VERSION "4.32.7"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2819: error: C++ compiler cannot create executables
See `config.log' for more details.

Solution: install libstdc++

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.