deb3(1)

πŸ“¦
version 0.69 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

✨ deb3 β€” the glow-up your source package has been waiting for ✨

okay bestie, so you've got a deb3 situation. it's a General Commands Manual page, and it's literally the makeover artist for your debian source package. let's get into it πŸ’…


🌸 NAME 🌸

deb3 β€” converts a debian source package to the new 3.0 (quilt) format πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

deb3 [quilt|0|1|2]

πŸ’– DESCRIPTION πŸ’–

so here's the tea: deb3 takes debian source packages that use a series of patches and converts them from the 1.0 format to the new 3.0 (quilt) format, while also adjusting the contents in debian/patches. it's giving transformation arc, fr fr ✨

you run this from the package top level directory. and if you run it with no argument at all, deb3 just guesses your source structure β€” she's intuitive like that πŸ’…. these are the formats she auto-detects:

  • dh_quilt_patch/dh_quilt_unpatch 🌸
  • cdbs (simple-patchsys.mk) πŸŽ€
  • dbs (dbs-build.mk) πŸ¦‹

🌈 ARGUMENT 🌈

you can force a particular conversion by passing an argument, if you're the type who likes to be in control (respect πŸ‘‘).

  • quilt β€” conversion for dh_quilt_patch/dh_quilt_unpatch 🧡
  • 0 β€” conversion for dbs and cdbs made with -p 0 patches (this is the default) πŸ’–
  • 1 β€” conversion for dbs and cdbs made with -p 1 patches ✨
  • 2 β€” conversion for dbs and cdbs made with -p 2 patches 🌟

πŸ”₯ TERMINATING THE CONVERSION πŸ”₯

bestie. listen. deb3 is only a starting point. after she runs, your package still needs more work. do not @ me. 😭

the typical changes you're gonna have to make:

  • Build-Depends: β€” you should remove cdbs and quilt. instead, you should add debhelper (>= 7.0.50~) πŸ’…
  • add override_dh_* targets to debian/rules to handle your special cases πŸŽ€
  • remove --with quilt from the debian/rules, if it uses the dh $@ syntax βœ‚οΈ

there's a whole tutorial for packaging with this new dh $@ style and the new 3.0 (quilt) source format, and it lives in the maint-guide package. it's also available at:

http://www.debian.org/doc/manuals/maint-guide/index.en.html

go read it, it's lowkey iconic πŸ“šβœ¨


  • (c) Osamu Aoki, 2010, GPL2+ πŸ’œ
  • (c) gregor herrmann, 2007-2008, GPL2+ πŸ’œ
  • (c) Damyan Ivanov, 2007-2008, GPL2+ πŸ’œ
  • (c) Martin Quinson, 2008, GPL2+ πŸ’œ

and that's the whole page, bestie 🫢 this one's from deb3, dated Dec 25, 2012 β€” happy holidays to whoever scheduled that release, and remember: deb3(1) forever, no cap πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from