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

Aply cannot handle deb packages using control.tar.xz #655

Closed
hosiet opened this issue Oct 24, 2017 · 8 comments
Closed

Aply cannot handle deb packages using control.tar.xz #655

hosiet opened this issue Oct 24, 2017 · 8 comments
Labels

Comments

@hosiet
Copy link

@hosiet hosiet commented Oct 24, 2017

Detailed Description

Ever since the release of dpkg 1.19.0, dpkg-deb enables --uniform-compression by default. This means control.tar* file will be compressed using xz by default (to be more precise, using the same compression method as data.tar* file). This claims control.tar.xz file inside .deb file instead of control.tar.gz.

Currently aptly does not seem to support handling control.tar.xz inside .deb file.

Context

Using .deb packages built using dpkg (>= 1.19.0) will encounter this problem.

Currently it affects users of Debian Testing and Debian Unstable but we can expect more users affected by this bug due to downstream adaption of new dpkg.

Possible Implementation

Do not assume hardcoded control.tar.gz inside .deb files. Instead, we should do an intelligent analysis about the compression method used for control.tar.* and data.tar.*.

Your Environment

Debian Unstable, using dpkg 1.19.0.4.

@jlu5

This comment has been minimized.

Copy link
Contributor

@jlu5 jlu5 commented Oct 24, 2017

Confirming: this recently hit my builds too.

@smira smira added 1.2.0 bug labels Oct 24, 2017
@guillemj

This comment has been minimized.

Copy link

@guillemj guillemj commented Oct 25, 2017

Hmm, it seems I missed aptly when I was checking for other tools directly handling .deb packages for https://wiki.debian.org/Teams/Dpkg/DebSupport. Support for non-gzip compressed (or not compressed) control.tar is not recent (dpkg 1.17.6), so you might want to check the deb(5) man page and that wiki page for any other features currently not supported, and while you are at it, fill the aptly stub entry I've just added there! Thanks. :)

@smira

This comment has been minimized.

Copy link
Member

@smira smira commented Oct 25, 2017

@guillemj thanks for the pointers, I'll improve compatibility and fill the Wiki page!

apachelogger added a commit to apachelogger/aptly that referenced this issue Oct 31, 2017
newly supported is uncompressed control.tar and xz compressed
control.tar.xz. latter is used by ubuntu for dbgsym ddebs.

Fixes aptly-dev#655
apachelogger added a commit to apachelogger/aptly that referenced this issue Oct 31, 2017
newly supported is uncompressed control.tar and xz compressed
control.tar.xz. latter is used by ubuntu for dbgsym ddebs.

Fixes aptly-dev#655
@smira smira closed this in #658 Nov 1, 2017
@smira

This comment has been minimized.

Copy link
Member

@smira smira commented Nov 1, 2017

Reopening to track wiki updates

@travisgriggs

This comment has been minimized.

Copy link

@travisgriggs travisgriggs commented Nov 20, 2017

I just ran into this... is it fixed in the 1.1.1 version? Or do I need to pull the nightly version?

@babilen5

This comment has been minimized.

Copy link

@babilen5 babilen5 commented Nov 27, 2017

@travisgriggs It seems to be fixed in the nightly version, but still present in 1.1.1

@smira

This comment has been minimized.

Copy link
Member

@smira smira commented Nov 27, 2017

1.2.0 should have this fix (when it gets released)

@arno01

This comment has been minimized.

Copy link

@arno01 arno01 commented Jul 18, 2018

Just in case if someone cannot yet upgrade aptly to 1.2.0, you can work this issue around by repacking the .deb so it gets {control,data}.tar gzipped, instead of xz'ed.

dpkg-deb -R package.deb tmp
rm package.deb
fakeroot dpkg-deb -Zgzip -b tmp package.deb
rm -rf tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.