Debian: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Packaging, repository management, user environment setup, and more. | |||
= | =General Administration= | ||
== | ==Prepare a default home directory== | ||
# mkhomedir_helper $USER | |||
=Package Development= | |||
==Preparing an environment== | |||
Everything needed to build debs as the distribution maintainers do. | |||
===Development packages=== | |||
# apt install build-essential devscripts git-buildpackage | |||
===git-buildpackage cheatsheet=== | |||
Clone from salsa: | |||
gbp clone --pristine-tar https://salsa.debian.org/foo/foo.git | |||
Generate a changelog entry: | |||
gbp dch --ignore-branch | |||
Build a package | |||
gbp buildpackage --git-ignore-branch | |||
==Skip checks/tests== | |||
DEB_BUILD_OPTIONS=nocheck | |||
==GBP issues== | |||
===gbp:error: upstream/... is not a valid treeish=== | |||
If running gbp in a debianized source directory results in this error, try running gbp with {{code|inline=y|lang=bash|--git-upstream-tree{{=}}branch}} (where ''branch'' is the branch being used) | |||
==== Reference ==== | ==== Reference ==== | ||
* [https://github.com/patjak/bcwc_pcie/issues/108 GBP Error: not a valid treeish] | * [https://github.com/patjak/bcwc_pcie/issues/108 GBP Error: not a valid treeish] | ||
==Reference== | |||
* [https://wiki.debian.org/UsingQuilt Using Quilt - Debian Wiki] | |||
* [https://www.guyrutenberg.com/2016/07/15/creating-a-personal-apt-repository-using-dpkg-scanpackages/ Creating a personal apt repository using `dpkg-scanpackages` - Guy Rutenberg] | |||
* [https://wiki.debian.org/Diaspora/Packaging/Salsa Diaspora/Packaging/Salsa - Debian Wiki] | |||
=Package repositories= | |||
Generate the Packages file: | |||
dpkg-scanpackages -m -a ppc64el pool/trixie/callisto | gzip -c > dists/trixie/callisto/binary-ppc64el/Packages.gz | |||
[[Category:Packaging]] | [[Category:Packaging]] |
Latest revision as of 00:56, 9 May 2025
Packaging, repository management, user environment setup, and more.
General Administration
Prepare a default home directory
# mkhomedir_helper $USER
Package Development
Preparing an environment
Everything needed to build debs as the distribution maintainers do.
Development packages
# apt install build-essential devscripts git-buildpackage
git-buildpackage cheatsheet
Clone from salsa:
gbp clone --pristine-tar https://salsa.debian.org/foo/foo.git
Generate a changelog entry:
gbp dch --ignore-branch
Build a package
gbp buildpackage --git-ignore-branch
Skip checks/tests
DEB_BUILD_OPTIONS=nocheck
GBP issues
gbp:error: upstream/... is not a valid treeish
If running gbp in a debianized source directory results in this error, try running gbp with
(where branch is the branch being used)
--git-upstream-tree=branch
Reference
Reference
- Using Quilt - Debian Wiki
- Creating a personal apt repository using `dpkg-scanpackages` - Guy Rutenberg
- Diaspora/Packaging/Salsa - Debian Wiki
Package repositories
Generate the Packages file:
dpkg-scanpackages -m -a ppc64el pool/trixie/callisto | gzip -c > dists/trixie/callisto/binary-ppc64el/Packages.gz