Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report compression issue with Debian Wheezy's python-apt #811

Merged
merged 1 commit into from
Jun 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/sphinx/formats/debian.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ To compress the debian package, override `debianNativeBuildOptions` with

debianNativeBuildOptions in Debian := Seq("-Zgzip", "-z3") // gzip compression at level 3

Note that commit cee091c released in 1.1.1 disables package re-compression by
default. While this works great with tools such as apt and dpkg, un-compressed
package installation is `bugged in python-apt 8.8 series
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718330>`_. This bug prevents
installation of the generated debian package in the following configuration:

- installation using python-apt module, used by Ansible and SaltStack for
example,
- being on python-apt 8.8 series, that's on Debian Wheezy and perhaps older

It will fail with an error message like::

E: This is not a valid DEB archive, it has no 'data.tar.gz', 'data.tar.bz2' or 'data.tar.lzma' member

Solutions include:

- upgrading to Debian Jessie,
- upgrading python-apt, note that no official backport is known
- re-enabling package re-compression in sbt-native-packager, by overridding
`debianNativeBuildOptions` as described above.

Java based packaging
~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -197,5 +218,4 @@ Your control scripts are in a different castle.. directory? No problem.

debianControlScriptsDirectory <<= (sourceDirectory) apply (_ / "deb" / "control")


.. _MaintainerScriptHelper Scaladocs: http://www.scala-sbt.org/sbt-native-packager/latest/api/#com.typesafe.sbt.packager.MaintainerScriptHelper$