Git buildpackage/fr: Difference between revisions
(Created page with "Buildpackage sous Git") |
(Created page with "Les workflows de travail de développement Debian modernes impliquent un [https://wiki.debian.org/PackagingWithGit packaging avec Git] et l'outil principal pour le faire est [...") |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
Les workflows de travail de développement Debian modernes impliquent un [https://wiki.debian.org/PackagingWithGit packaging avec Git] et l'outil principal pour le faire est [http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/ gbp.html git-buildpackage]. git-buildpackage fournit une commande <code>gbp</code> avec plusieurs options similaires à la commande <code>git</code> elle-même. Beaucoup de ces commandes ne sont elles-mêmes qu'encapsuleur d'outils Debian de niveau inférieur. Par conséquent la complexité de l'apprentissage de l'empaquetage peut être assez élevée. |
|||
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. |
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. |
Revision as of 18:06, 9 December 2019
Les workflows de travail de développement Debian modernes impliquent un packaging avec Git et l'outil principal pour le faire est gbp.html git-buildpackage. git-buildpackage fournit une commande gbp
avec plusieurs options similaires à la commande git
elle-même. Beaucoup de ces commandes ne sont elles-mêmes qu'encapsuleur d'outils Debian de niveau inférieur. Par conséquent la complexité de l'apprentissage de l'empaquetage peut être assez élevée.
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