DH_ASTERISK(1)

πŸ“¦
version 22.10.0 Β· 4 versions
, in ubuntu stonking

πŸ’… DH_ASTERISK β€” the bestie that fixes your Asterisk deps

okay so real talk, <rainbow>dh_asterisk</rainbow> is a lil helper from the Asterisk packaging tools, and its whole job is: Add dependency on the ABI version of Asterisk. that's it. that's the gig. πŸ’–


✨ SYNOPSIS ✨

dh_asterisk [debhelper options]

πŸ¦‹ DESCRIPTION πŸ¦‹

so <pink>dh_asterisk</pink> is a debhelper program, and its entire main character moment is setting the dependency on <cyan>asterisk-abi-asterisk-ABI-version</cyan> for a package. correctly. no cap. πŸ’…

here's the situation: you're writing a package that builds an Asterisk module, but it is not built with Asterisk itself β€” which means it depends on the exact binary version 🫢. when that's you, you gotta:

  1. add <green>${asterisk:Depends}</green> to the package's <green>Depends:</green> field in debian/control
  2. run <pink>dh_asterisk</pink>

and that's it, slay. πŸ”₯

a debhelper addon is also provided πŸ‘‘ β€” which means you can literally just use this for debian/rules:

#!/usr/bin/make -f
%:
    dh $@ --with asterisk

lowkey iconic.

alternatively (because we love options bestie 🌸), you can just build-depend on <cyan>dh-sequence-asterisk</cyan> and omit the <green>"--with asterisk"</green> part entirely. the way that works is so clean. 😭


πŸ’œ SEE ALSO πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

  • Tzafrir Cohen <tzafrir@debian.org>
  • Jonas Smedegaard <dr@jones.dk>

Copyright 2022, Jonas Smedegaard <dr@jones.dk>

This packaging is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.


fr fr, that license clause is doing the most but she's valid. πŸ’€

and that's the whole page babes β€” this one shipped as part of the asterisk package, version 22.10.0+dfsg+~cs6.17.6..., dated 2026-09-04. go set those deps, bestie, you're gonna ate. πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from