To debug a ksynaptics crash, I need to install -dbg packages for all dependencies of ksynaptics.
We do not have a tool for automatically doing so, right?
If I am right, the following scriptlet seems to do the trick.
#!/bin/bash
set -e
PARENT=“$1”
DBGPACKAGES=“”
for package in $PARENT $(debfoster -d $PARENT | tail -n +2); do
for source in $(grep-available --no-field-names --field=Package $package --show-field Source); do
DBGPACKAGES=“$DBGPACKAGES $(grep-available --no-field-names --field=Source $source --show-field Package |
grep -- ‘-dbg$’ || true )”
done
done
echo $DBGPACKAGES
Just in case the combination of this blog software and your browser tries to do smart things with the quotes, pull the
script from
https://ivanova.notwork.de/~mh/stuff/listdbgpackages
I am open for suggestions.
Comments