sharkdp / hexyl

A command-line hex viewer
Apache License 2.0
8.92k stars 227 forks source link

Ubuntu packaging - /usr/.crates2.json included #126

Closed filimonov closed 3 years ago

filimonov commented 3 years ago

Ubuntu 20.04

I don't think it was included intentionally.

dpkg: error processing archive /var/cache/apt/archives/hexyl_0.6.0-2build1_amd64.deb (--unpack):
 trying to overwrite '/usr/.crates2.json', which is also in package ripgrep 11.0.2-1build1
filimonov commented 3 years ago

w/o

apt-get download  hexyl
sudo dpkg --force-overwrite -i hexyl_0.6.0-2build1_amd64.deb

From: https://bugs.launchpad.net/ubuntu/+source/rust-bat/+bug/1868517/comments/32

sharkdp commented 3 years ago

Yes, that's really unfortunate. See related ticket here: https://github.com/sharkdp/bat/issues/938

Unfortunately, there is nothing we can do about it here.

filimonov commented 3 years ago

there is nothing we can do about it here.

How do you package hexyl into deb? Can't you just exclude the file from the package?

sharkdp commented 3 years ago

The Debian/Ubuntu maintainers are doing that. Not me. This has to be fixed in Ubuntu (you linked to the ticket yourself).

We also build Debian packages here in this repository: https://github.com/sharkdp/hexyl/releases/tag/v0.8.0 - but you cannot install them with apt-get. You have to download them manually and then use dpkg to install. They should not have that problem.

filimonov commented 3 years ago

ARAIR i was picking the deb build from releases page. But don't remember right now and will not check it.

I'm ok to close the issue.

sharkdp commented 3 years ago

But don't remember right now and will not check it.

It's easy to see from the .deb name and the file system path that these are NOT the packages that we build here. Those are the Ubuntu packages.