Bug 1466746 - Debian packages for python-zstandard; r?glandium
python-zstandard's 0.9.1 source distribution contains a debian/
directory.
On Squeeze, producing a Debian package is straightforward.
On Wheezy, we need to hack up Build-Depends because Wheezy doesn't
have a package for the Hypothesis fuzzing library. This package is
only used for testing and our package building disables testing,
so we don't even need to further hack up the packaging to disable
tests.
MozReview-Commit-ID: 6raXjdzggCH
new file mode 100644
--- /dev/null
+++ b/build/debian-packages/python-zstandard-wheezy.diff
@@ -0,0 +1,27 @@
+diff --git a/debian/changelog b/debian/changelog
+index 84028db..d6c86c4 100644
+--- a/debian/changelog
++++ b/debian/changelog
+@@ -1,3 +1,9 @@
++python-zstandard (0.9.1-1.deb7moz1) unstable; urgency=low
++
++ * Remove build dependencies so package builds on Wheezy.
++
++ -- Gregory Szorc <gps@mozilla.com> Mon, 04 Jun 2018 22:35:00 -0700
++
+ python-zstandard (0.9.1-1) unstable; urgency=low
+
+ * Initial Debian packaging definition.
+diff --git a/debian/control b/debian/control
+index 43bbd46..720082f 100644
+--- a/debian/control
++++ b/debian/control
+@@ -7,8 +7,6 @@ Build-Depends:
+ dh-python,
+ python-all-dev,
+ python3-all-dev,
+- python-hypothesis,
+- python3-hypothesis,
+ python-nose,
+ python3-nose,
+ python-setuptools,
--- a/taskcluster/ci/packages/kind.yml
+++ b/taskcluster/ci/packages/kind.yml
@@ -220,8 +220,35 @@ jobs:
treeherder:
symbol: Deb7(gdb)
run:
using: debian-package
dsc:
url: http://snapshot.debian.org/archive/debian/20170119T152956Z/pool/main/g/gdb/gdb_7.12-6.dsc
sha256: 9727dcb3d6b655e4f2a92110f5db076a490aa50b739804be239905ecff3aacc8
patch: gdb-wheezy.diff
+
+ deb7-python-zstandard:
+ description: "python-zstandard for Debian wheezy"
+ treeherder:
+ symbol: Deb7(python-zstandard)
+ run:
+ using: debian-package
+ tarball:
+ url: https://github.com/indygreg/python-zstandard/releases/download/0.9.1/python-zstandard-0.9.1.tar.gz
+ sha256: 59c7d6f1f85cebb5124abb50d8ec281c5311e0812e18785e28b197cf1515dd3b
+ patch: python-zstandard-wheezy.diff
+ packages:
+ - deb7-dh-python
+ - deb7-python
+ - deb7-python3.5
+ - deb7-python3-defaults
+
+ deb9-python-zstandard:
+ description: "python-zstandard for Debian stretch"
+ treeherder:
+ symbol: Deb9(python-zstandard)
+ run:
+ using: debian-package
+ dist: stretch
+ tarball:
+ url: https://github.com/indygreg/python-zstandard/releases/download/0.9.1/python-zstandard-0.9.1.tar.gz
+ sha256: 59c7d6f1f85cebb5124abb50d8ec281c5311e0812e18785e28b197cf1515dd3b