Discussion:
support of 7z archives ?
Add Reply
PICCA Frederic-Emmanuel
2025-01-27 14:40:01 UTC
Reply
Permalink
Hello, I am trying to use mk-origtargz with a 7zip archive., but I get this error message.

$ mk-origtargz ../fiji-linux64.zip
[../fiji-linux64.7z]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of ../fiji-linux64.zip or
../fiji-linux64.zip.zip, and cannot find ../fiji-linux64.zip.ZIP, period.
mk-origtargz error: Repacking from zip or jar failed (could not unzip)

the file can be find here

https://downloads.imagej.net/fiji/archive/20250123-1617/

Is it normal ?

Fred
Andrey Rakhmatullin
2025-01-27 14:50:01 UTC
Reply
Permalink
Post by PICCA Frederic-Emmanuel
Hello, I am trying to use mk-origtargz with a 7zip archive., but I get this error message.
$ mk-origtargz ../fiji-linux64.zip
.zip?
Post by PICCA Frederic-Emmanuel
[../fiji-linux64.7z]
What does this mean?
--
WBR, wRAR
PICCA Frederic-Emmanuel
2025-01-27 16:40:02 UTC
Reply
Permalink
Ok, it does not uncompress with unzip on stable , but it works on unstable.
Post by PICCA Frederic-Emmanuel
[../fiji-linux64.7z]
cut and past error :))

Fred
Yadd
2025-01-27 15:00:01 UTC
Reply
Permalink
Post by PICCA Frederic-Emmanuel
Hello, I am trying to use mk-origtargz with a 7zip archive., but I get this error message.
$ mk-origtargz ../fiji-linux64.zip
[../fiji-linux64.7z]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of ../fiji-linux64.zip or
../fiji-linux64.zip.zip, and cannot find ../fiji-linux64.zip.ZIP, period.
mk-origtargz error: Repacking from zip or jar failed (could not unzip)
the file can be find here
https://downloads.imagej.net/fiji/archive/20250123-1617/
Is it normal ?
Fred
Hi,

adding a compressor in mk-origtargz is easy but can be allowed only if
the rest od Debian tools accept it. I don't think 7z is currently accepted.
Else we can update uscan/mk-origtargz to accept but recompress this into xz

Best regards,
Xavier
PICCA Frederic-Emmanuel
2025-01-28 08:40:01 UTC
Reply
Permalink
I could not see a 7z file there (at least not by simply looking at the
file extensions).
Here the file output:

fiji-linux64.zip: Zip archive data, at least v2.0 to extract, compression method=deflate

This is a zip archive whcih can not be extracted on stable, except with 7zip.

someone can confirm that it does not work out of the box with unzip on stable ?

Maybe there is an issue on my system...


Fred
Henrik Ahlgren
2025-01-28 10:00:01 UTC
Reply
Permalink
On Tue, 2025-01-28 at 10:42 +0100, IOhannes m zmölnig (Debian GNU|Linux)
i cannot.
using 'unzip' in a debian:stable docker container works nicely
No problems with stable or trixie unzip.

@Frederic-Emmanuel, did you check that your copy of the file is not
corrupted?

$ md5sum fiji-linux64.zip
6e64d121419012ec6287329619c7b9cd fiji-linux64.zip
PICCA Frederic-Emmanuel
2025-01-28 10:20:01 UTC
Reply
Permalink
Sorry for the noise... my file was corrupted...

but 7z was able to unpack it....


Cheers

Fred
Salvo Tomaselli
2025-01-30 00:30:01 UTC
Reply
Permalink
Post by PICCA Frederic-Emmanuel
but 7z was able to unpack it....
It was able to unpack the initial part that you downloaded, but not the ending
part that you didn't download. So the build or the binary result wouldn't have
worked anyway.

Better to fail if the file is corrupt.

Best
--
Salvo Tomaselli

"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di
senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
-- Galileo Galilei

https://ltworf.codeberg.page/
Loading...