[Pkg-mpd-commits] [pkg-mpd] 09/13: Add files missing in upstream tarball

Florian Schlichting fsfs at alioth.debian.org
Fri Nov 1 22:21:34 UTC 2013


This is an automated email from the git hooks/post-receive script.

fsfs pushed a commit to branch master
in repository pkg-mpd.

commit 7c62dfe8992694461974bdab6417946299aa3e1a
Author: Florian Schlichting <fsfs at debian.org>
Date:   Fri Nov 1 21:39:31 2013 +0100

    Add files missing in upstream tarball
---
 debian/patches/add_missing_files_for_test.patch |  119 +++++++++++++++++++++++
 debian/patches/series                           |    1 +
 2 files changed, 120 insertions(+)

diff --git a/debian/patches/add_missing_files_for_test.patch b/debian/patches/add_missing_files_for_test.patch
new file mode 100644
index 0000000..89ab960
--- /dev/null
+++ b/debian/patches/add_missing_files_for_test.patch
@@ -0,0 +1,119 @@
+Description: add files present in upstream git but not in the released tarball
+ These are needed for --enable-test
+Author: upstream
+Forwarded: http://bugs.musicpd.org/view.php?id=3852
+
+--- /dev/null
++++ b/src/pcm/dsd2pcm/dsd2pcm.hpp
+@@ -0,0 +1,39 @@
++#ifndef DSD2PCM_HXX_INCLUDED
++#define DSD2PCM_HXX_INCLUDED
++
++#include <algorithm>
++#include <stdexcept>
++#include "dsd2pcm.h"
++
++/**
++ * C++ PImpl Wrapper for the dsd2pcm C library
++ */
++
++class dxd
++{
++	dsd2pcm_ctx *handle;
++public:
++	dxd() : handle(dsd2pcm_init()) {}
++
++	dxd(dxd const& x) : handle(dsd2pcm_clone(x.handle)) {}
++
++	~dxd() { dsd2pcm_destroy(handle); }
++
++	friend void swap(dxd & a, dxd & b)
++	{ std::swap(a.handle,b.handle); }
++
++	dxd& operator=(dxd x)
++	{ swap(*this,x); return *this; }
++
++	void translate(size_t samples,
++		const unsigned char *src, ptrdiff_t src_stride,
++		bool lsbitfirst,
++		float *dst, ptrdiff_t dst_stride)
++	{
++		dsd2pcm_translate(handle,samples,src,src_stride,
++			lsbitfirst,dst,dst_stride);
++	}
++};
++
++#endif // DSD2PCM_HXX_INCLUDED
++
+--- /dev/null
++++ b/src/pcm/dsd2pcm/noiseshape.hpp
+@@ -0,0 +1,43 @@
++#ifndef NOISE_SHAPE_HXX_INCLUDED
++#define NOISE_SHAPE_HXX_INCLUDED
++
++#include <stdexcept>
++#include "noiseshape.h"
++
++/**
++ * C++ wrapper for the noiseshape C library
++ */
++
++class noise_shaper
++{
++	noise_shape_ctx ctx;
++public:
++	noise_shaper(int sos_count, const float *bbaa)
++	{
++		noise_shape_init(&ctx, sos_count, bbaa);
++	}
++
++	noise_shaper(noise_shaper const& x)
++	{
++		noise_shape_clone(&x.ctx,&ctx);
++	}
++
++	~noise_shaper()
++	{ noise_shape_destroy(&ctx); }
++
++	noise_shaper& operator=(noise_shaper const& x)
++	{
++		if (this != &x) {
++			noise_shape_destroy(&ctx);
++			noise_shape_clone(&x.ctx,&ctx);
++		}
++		return *this;
++	}
++
++	float get() { return noise_shape_get(&ctx); }
++
++	void update(float error) { noise_shape_update(&ctx,error); }
++};
++
++#endif /* NOISE_SHAPE_HXX_INCLUDED */
++
+--- /dev/null
++++ b/test/test_archive_bzip2.sh
+@@ -0,0 +1,10 @@
++#!/bin/sh -e
++
++SRC_BASE=configure
++SRC="$(dirname $0)/../${SRC_BASE}"
++DST="$(pwd)/test/tmp/${SRC_BASE}.bz2"
++
++mkdir -p test/tmp
++rm -f "$DST"
++bzip2 -c "$SRC" >"$DST"
++./test/run_input "$DST/${SRC_BASE}" |diff "$SRC" -
+--- /dev/null
++++ b/test/test_archive_iso9660.sh
+@@ -0,0 +1,10 @@
++#!/bin/sh -e
++
++SRC_BASE=configure
++SRC="$(dirname $0)/../${SRC_BASE}"
++DST="$(pwd)/test/tmp/${SRC_BASE}.iso"
++
++mkdir -p test/tmp
++rm -f "$DST"
++mkisofs -quiet -l -o "$DST" "$SRC"
++./test/run_input "$DST/${SRC_BASE}" |diff "$SRC" -
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8aa850e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+add_missing_files_for_test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/pkg-mpd.git



More information about the Pkg-mpd-commits mailing list