Giter Club home page Giter Club logo

chisel-slice-generator's Introduction

chisel-slice-generator

A generator script for chisel slice definition files. The script will only output one slice per package, listing all dependencies (package names not slices) and contents under that slice. The output will include a list of dependency package names and a list of file paths for contents. The output will need manual alteration to convert package names to slices, and/or to simplify the path patterns or use Chisel directives if applicable. It can serve as a good basis to create the desired slice definition files.

How to run

Run:

./slice_generator.py <release_number> <arch> <package>

For example:

./slice_generator.py 24.04 amd64 libcap2

The output of the above example command will look like something like the following:

package: libcap2
essentials:
  - libcap2_copyright
slices:
  all:
    essentials:
      - libc6
    contents:
      /usr/lib/*-linux-*/libcap.so.2*:
      /usr/lib/*-linux-*/libpsx.so.2*:
  copyright:
    contents:
      /usr/share/doc/libcap2/copyright:

After running the script, you need to apply few manual changes to the output:

  1. Change the slice name from all to something more suitable if needed.
  2. Divide the main slice all into multiple slices if needed.
  3. Replace the packages under essentials by their slice couterparts (e.g. libc6 -> libc6_libs).

Implemented features

  • Dependency generation
  • Content generation
  • Support for maintainer scripts
  • Recognition of arch-specific dependencies
  • Simplification of contents list using glob patterns
  • Usage of arch-agnostic paths in contents list
  • Support for chisel directives
  • Support for copyright slices

chisel-slice-generator's People

Contributors

linostar avatar

Stargazers

 avatar  avatar

Watchers

 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.