[pulseaudio] 01/05: Add bugscript to the pulseaudio package
Felipe Sateler
fsateler at moszumanska.debian.org
Thu Jul 24 21:25:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
fsateler pushed a commit to branch master
in repository pulseaudio.
commit aba7ae461641d80561cc34bf140d917413b7802b
Author: Felipe Sateler <fsateler at debian.org>
Date: Fri Apr 18 19:22:44 2014 -0300
Add bugscript to the pulseaudio package
---
debian/changelog | 1 +
debian/pulseaudio.bug-script | 54 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 67ce22c..98fb4c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,7 @@ pulseaudio (5.0-3) UNRELEASED; urgency=medium
- New patch from upstream, fixes crash on empty UDP packets.
Fixes CVE-2014-397
* zsh-completion: Fix completion for default sink/source
+ * Add bugscript to the pulseaudio package. Closes: #739294
[ Jelmer Vernooij ]
* Disable building against tdb on the hurd, where it is not available.
diff --git a/debian/pulseaudio.bug-script b/debian/pulseaudio.bug-script
new file mode 100644
index 0000000..99fa6f5
--- /dev/null
+++ b/debian/pulseaudio.bug-script
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+
+REPORTBUG_VERSION=$(dpkg-query -f '${source:Version}' -W reportbug)
+HAVE_ATTACHMENTS=$(dpkg --compare-versions "$REPORTBUG_VERSION" ge "6.5.0" && echo yes || echo no)
+
+function include_file() {
+ while [ -n "$1" ] ; do
+ if [ ! -f "$1" ] ; then
+ # file doesn't exist, just note that fact
+ echo "File '$1' does not exist" >&3
+ echo >&3
+ elif [ $HAVE_ATTACHMENTS = yes ] ; then
+ echo "-- BEGIN ATTACHMENTS --" >&3
+ echo $1 >&3
+ echo "-- END ATTACHMENTS --" >&3
+ else
+ echo "${1}:" >&3
+ cat "$1" >&3
+ echo >&3
+ fi
+ shift
+ done
+}
+
+function include_command() {
+ desc=$(echo "$@" | sed -e 's/[^[:alnum:]:_-]\+/_/g')
+ tmp=$(mktemp --tmpdir bug-pulseaudio-${desc}.XXXXXX)
+ "$@" &>$tmp
+ include_file $tmp
+ # delete cruft if possible
+ # for attachments we can't because it is not known when reportbug exits
+ if [ $HAVE_ATTACHMENTS = no ] ; then
+ rm $tmp
+ fi
+}
+
+# to see if we have a systemwide pulseaudio
+include_file /etc/default/pulseaudio
+
+# pulseaudio configuration
+include_file /etc/pulse/client.conf /etc/pulse/daemon.conf /etc/pulse/default.pa /etc/pulse/system.pa
+
+# Get alsa devices if possible
+if which aplay &>/dev/null ; then
+ include_command aplay -L
+fi
+
+include_command pactl list cards
+include_command pactl list sinks
+include_command pactl list sources
+include_command pactl list modules
+include_command pactl info
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git
More information about the pkg-pulseaudio-devel
mailing list