Coder Social home page Coder Social logo

Error "malformed-deb-archive newer compressed control.tar.xz" from Lintian on Ubuntu Xenial with cargo-deb > 1.28.0. about cargo-deb HOT 14 CLOSED

kornelski avatar kornelski commented on July 23, 2024
Error "malformed-deb-archive newer compressed control.tar.xz" from Lintian on Ubuntu Xenial with cargo-deb > 1.28.0.

from cargo-deb.

Comments (14)

kornelski avatar kornelski commented on July 23, 2024 2

Good, at least it's not caused by the compression library :)

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024 2

@kornelski: Will you make a release containing the ec4e003 fix?

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024 1

@kornelski: I tried using commit ec4e003 and that worked!

from cargo-deb.

kornelski avatar kornelski commented on July 23, 2024

I've added --system-xz switch that replaces our xz2 library with xz command-line. Does this help?

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

Thanks @kornelski, I'm not working today, I'll test it as soon as I can and get back to you.

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

Hi @kornelski,

Unfortunately that doesn't seem to help. I updated our GitHub Actions workflow to install cargo-deb 1.35.0 and to use the --system-xz argument and Lintian still reports the error when running on Ubuntu Xenial.

Ximon

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

Update: The work around of compiling without the lzma feature no longer works due to issue #43.

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

With 1.34.2 I can compile without lzma support AND the Lintian checks pass on Xenial.

With 1.36.0 I can compile without lzma support but the resulting package the Lintian checks fail on Xenial.

With >1.36.0 I can't compile without default features (i.e. without lzma support) (due to #43) and so the Lintian checks fail on Xenial.

I haven't tested >1.34.2 && < 1.36.0.

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

With >1.36.0 I can't compile without default features (i.e. without lzma support) (due to #43) and so the Lintian checks fail on Xenial.

The compilation issue was resolved in the 1.38.3 release with the fix of #43, but then I'm left with the issue that compiling without default features no longer solves the malformed-deb-archive error reported by Lintian on Xenial, i.e. I have the situation now that:

  • With 1.34.2 I can compile without lzma support AND the Lintian checks pass on Xenial.
  • With 1.36.0+ I can compile without lzma support but the resulting package the Lintian checks fail on Xenial.

E.g. see this failure on Xenial when using cargo-deb 1.38.3 which succeeds when using cargo-deb 1.34.2.

from cargo-deb.

kornelski avatar kornelski commented on July 23, 2024

Does Xenial support XZ-compressed control files at all?

e4764b6

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

I don't know. What I do know is that disabling the lzma feature makes it work up until cargo-deb 1.34.2 but not later, and when I tried --system-xz a while ago (see above) that had no effect.

from cargo-deb.

kornelski avatar kornelski commented on July 23, 2024

I've googled, and there are plenty of bugs about Ubuntu not supporting LZMA in 16 and 18. So it seems the problem isn't in the lzma compressor, but the fact that an Ubuntu from 3 LTSes ego can't support dpkg format from the future.

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

So, I'm confused. Disabling the lzma feature used to solve the problem. Was it then the case that that actually disabled something else than, or as well as, LZMA support, and this other thing is where the problem arises?

from cargo-deb.

kornelski avatar kornelski commented on July 23, 2024

The Cargo feature disables built-in Rust LZMA support, but in the meantime cargo-deb got a fallback to shell out to the xz command, so it always supports LZMA if the host operating system is able to compress LZMA.

from cargo-deb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.