Giter Club home page Giter Club logo

chimerautils's Introduction

chimerautils

This is Chimera Linux's core userland. It consists of the following:

  • Ports of FreeBSD tools
  • An internal library providing a compat interface to simplify porting
  • Custom-made new tools
  • A Meson-based build system

It replaces the following GNU projects:

  • coreutils
  • findutils
  • diffutils
  • sharutils
  • grep
  • sed
  • ed
  • m4
  • patch
  • gzip
  • gawk
  • bc (optional, bc-gh is recommended now)

It also provides the following functionality:

  • tip/cu
  • telnet
  • fetch
  • vi
  • sh
  • vis
  • unvis
  • compress
  • uncompress
  • portions of util-linux
  • and additional custom tools

In a way, chimerautils is also an alternative to projects like Busybox.

bsdutils

This project is a fork of bsdutils by David Cantrell. Chimerautils were created in order to provide a more complete package that prioritizes Chimera's needs and development pace.

Building

Chimerautils requires a Linux system with a Clang or GCC compiler.

You will also need the following:

Optionally, these are also needed:

  • ncurses or another provider of terminfo (for color ls(1) and others)
  • libedit (for bc and line editing in sh)
  • libcrypto from OpenSSL or LibreSSL (for dc, install and optionally sort)

If your C library does not provide them, you will need these:

  • libfts
  • librpmatch

To build:

$ mkdir build && cd build
$ meson ..
$ ninja all

Importing a new FreeBSD release

When a new release of FreeBSD is made, the import-src.sh script should be used to update the source tree. First edit upstream.conf and then run the import-src.sh script. The script will fetch the new release source and copy in the source for the commands we have. Any patches in patches/ will be applied. These may need updating between releases, so keep that in mind. The workflow is basically:

  1. Change VER in upstream.conf

  2. Verify URL in upstream.conf works (FreeBSD may move things around).

  3. Run ./import-src.sh. It is adviseable to capture stdout and stderr to see what patches fail to apply. Any that fail, you want to manually fix and then run import-src.sh again to get a clean import of the version you are updating to.

  4. Now build all the commands and fix any new build errors.

Once this is clean, you can commit the import of the new version of FreeBSD code. The import-src.sh and patches step is meant to make it more clear what changes I apply to FreeBSD code from release to release and also if any external projects want to use these patches and the FreeBSD source directly.

chimerautils's People

Contributors

bsdjhb avatar dcantrell avatar jimbair avatar q66 avatar

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.