Giter Site home page Giter Site logo

python-quilt's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m Bjรถrn a Software Developer at @Greenbone and responsible for what's known as OpenVAS
  • ๐Ÿ‘€ Iโ€™m interested in Python, motorcyles and music with heavy guitars
  • ๐Ÿ’ž๏ธ Iโ€™m looking forward for poeple interested in our stack and working with me @Greenbone
  • ๐Ÿ“ซ You can reach me @mastodon

python-quilt's People

Contributors

bjoernricks avatar jayvdb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

python-quilt's Issues

Add command setup

A critical part of openSUSE's use of quilt is the setup command, especially supporting starting from a .spec file.

You can see it mentioned at https://en.opensuse.org/openSUSE:Fixing_bugs and https://en.opensuse.org/openSUSE:Build_Service_Tutorial#Using_quilt

In the unpacked source area, patches becomes a symlink to .. , but the .pc/ folder is the same as usual.

It would be nice if this is re-implemented using python from the ground up, not using rpm cmdline tools like quilt does.

setup has two modes, slow and fast, but the differences don't seem to be especially relevant for a Python rewrite. It looks like we would use the slow approach if not using rpmbuild.

The guts of the spec reading is done with, where fuzz factor is a setup command line option

	rpmbuild --eval "%define _sourcedir $abs_sourcedir" \
		 --eval "%define _specdir   $specdir" \
		 --eval "%define _builddir  $tmpdir/build" \
		 --eval "%define __patch    $tmpdir/bin/patch" \
		 --eval "%define __tar      $tmpdir/bin/tar" \
		 --eval "%define __unzip    $tmpdir/bin/unzip" \
		 --eval "%define __7zip     $tmpdir/bin/7z" \
		 --eval "$DEFINE_FUZZ" \
		 --nodeps \
		 -bp "$specdir/$specfile" 

My guess is that we can do most of the setup without rpmbuild if we can parse the spec fairly reliably.
The library most used for .spec reading seems to be https://github.com/bkircher/python-rpm-spec .

IMO that would be preferred, even if setup is not quite complete, or as accurate/fast/etc .

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.