Git buildpackage: Difference between revisions
Kkremitzki (talk | contribs) (Created page with "Modern Debian development workflows involve [https://wiki.debian.org/PackagingWithGit packaging with Git] and the primary tool for doing that is [http://honk.sigxcpu.org/proje...") |
Renatorivo (talk | contribs) No edit summary |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
<translate> |
|||
<!--T:1--> |
|||
Modern Debian development workflows involve [https://wiki.debian.org/PackagingWithGit packaging with Git] and the primary tool for doing that is [http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html git-buildpackage]. git-buildpackage provides a <code>gbp</code> command with several options similar to the <code>git</code> command itself. Many of these commands are themselves just a wrapper of lower-level Debian tools, so the complexity to learning packaging can be quite high. |
Modern Debian development workflows involve [https://wiki.debian.org/PackagingWithGit packaging with Git] and the primary tool for doing that is [http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html git-buildpackage]. git-buildpackage provides a <code>gbp</code> command with several options similar to the <code>git</code> command itself. Many of these commands are themselves just a wrapper of lower-level Debian tools, so the complexity to learning packaging can be quite high. |
||
<!--T:2--> |
|||
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 [[ |
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|Debian Unstable]] virtual machine. |
||
<!--T:3--> |
|||
# Install it with <code>sudo apt install git-buildpackage</code> |
# Install it with <code>sudo apt install git-buildpackage</code> |
||
# Grab the dotfiles at the end of this page. You'll need: <code>~/.gbp.conf</code>, <code>~/.pbuilderrc</code>, and <code>~/.quiltrc</code> |
# Grab the dotfiles at the end of this page. You'll need: <code>~/.gbp.conf</code>, <code>~/.pbuilderrc</code>, and <code>~/.quiltrc</code> |
||
Line 12: | Line 18: | ||
# When it's finished, your packages will be at <code>../build-area/</code>. |
# When it's finished, your packages will be at <code>../build-area/</code>. |
||
===== |
===== gbp.conf ===== <!--T:4--> |
||
Location: <code>~/.gbp.conf</code> |
|||
</translate> |
|||
https://gitlab.com/kkremitzki/dotfiles/blob/master/.gbp.conf |
https://gitlab.com/kkremitzki/dotfiles/blob/master/.gbp.conf |
||
<translate> |
|||
⚫ | |||
Location: <code>~/.pbuilderrc</code> |
|||
</translate> |
|||
⚫ | |||
https://gitlab.com/kkremitzki/dotfiles/blob/master/.pbuilderrc |
https://gitlab.com/kkremitzki/dotfiles/blob/master/.pbuilderrc |
||
<translate> |
|||
⚫ | |||
Location: <code>~/.quiltrc</code> |
|||
</translate> |
|||
⚫ | |||
https://gitlab.com/kkremitzki/dotfiles/blob/master/.quiltrc |
https://gitlab.com/kkremitzki/dotfiles/blob/master/.quiltrc |
||
{{Userdocnavi{{#translation:}}}} |
|||
[[Category:Packaging{{#translation:}}]] |
|||
[[Category:Developer Documentation{{#translation:}}]] |
|||
{{clear}} |
Latest revision as of 14:41, 25 August 2020
Modern Debian development workflows involve packaging with Git and the primary tool for doing that is git-buildpackage. git-buildpackage provides a gbp
command with several options similar to the git
command itself. Many of these commands are themselves just a wrapper of lower-level Debian tools, so the complexity to learning packaging can be quite high.
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.
- Install it with
sudo apt install git-buildpackage
- Grab the dotfiles at the end of this page. You'll need:
~/.gbp.conf
,~/.pbuilderrc
, and~/.quiltrc
- The package build will occur in a clean environment. Create it with
sudo git-pbuilder create
- Find the URL of a package you want to build on https://salsa.debian.org, the Debian project's self-hosted GitLab instance
- Create a clone of it with
gbp clone --all <URL>
- Enter the cloned repo's directory with
cd
- Run the build with
gbp buildpackage -us -uc
- 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
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub