Git budowa paczek

From FreeCAD Documentation
Revision as of 13:46, 19 March 2024 by Kaktus (talk | contribs) (Created page with "Współczesne przepływy pracy w Debianie obejmują [https://wiki.debian.org/PackagingWithGit tworzenie pakietów za pomocą Git] i podstawowym narzędziem do tego jest [http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html git-buildpackage]. git-buildpackage udostępnia polecenie <code>gbp</code> z kilkoma opcjami podobnymi do polecenia <code>git</code> samego w sobie. Wiele z tych poleceń to po prostu nakładka na niższopoziomowe narzędzia Debiana,...")

Współczesne przepływy pracy w Debianie obejmują tworzenie pakietów za pomocą Git i podstawowym narzędziem do tego jest git-buildpackage. git-buildpackage udostępnia polecenie gbp z kilkoma opcjami podobnymi do polecenia git samego w sobie. Wiele z tych poleceń to po prostu nakładka na niższopoziomowe narzędzia Debiana, więc złożoność nauki pakietowania może być dość wysoka.

To get around that, here are the short & simple steps to getting started with git-buildpackage. This should work on nearly any Debian-based distribution, but I recommend working on this in a clean and separate environment a Debian Unstable virtual machine.

  1. Install it with sudo apt install git-buildpackage
  2. Grab the dotfiles at the end of this page. You'll need: ~/.gbp.conf, ~/.pbuilderrc, and ~/.quiltrc
  3. The package build will occur in a clean environment. Create it with sudo git-pbuilder create
  4. Find the URL of a package you want to build on https://salsa.debian.org, the Debian project's self-hosted GitLab instance
  5. Create a clone of it with gbp clone --all <URL>
  6. Enter the cloned repo's directory with cd
  7. Run the build with gbp buildpackage -us -uc
  8. When it's finished, your packages will be at ../build-area/.
gbp.conf

Location: ~/.gbp.conf

https://gitlab.com/kkremitzki/dotfiles/blob/master/.gbp.conf

pbuilderrc

Location: ~/.pbuilderrc

https://gitlab.com/kkremitzki/dotfiles/blob/master/.pbuilderrc

quiltrc

Location: ~/.quiltrc

https://gitlab.com/kkremitzki/dotfiles/blob/master/.quiltrc