Ticket #4130 (closed enhancement: invalid)

Opened 4 years ago

Last modified 5 months ago

Opening .PAK and .ARC archives with Midnight Commander

Reported by: Trux Owned by: andrew_b
Priority: minor Milestone:
Component: mc-vfs Version: master
Keywords: pak arc unar Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

1) Midnight Commander doesn't open .ARC archives.
After installing arc package, I can extract files from .ARC archive with Midnight Commander.
Could you please add a package dependency between mc and arc packages ?

2) Midnight Commander doesn't open .PAK archives.
After installing unar (not unrar) package, I can extract files from .PAK archive with the unar command but not with Midnight Commander.

Could you please add in Midnight Commander a call to unar command and a package dependency between mc and unar packages ?

$ mc --version
GNU Midnight Commander 4.8.24
Compilé avec GLib 2.63.3
Utilise la bibliothèque S-Lang avec la base de données terminfo
With builtin Editor and Aspell support
Avec support des sous-shells par défaut
Avec support des opérations en tâche de fond
Avec support de la souris pour xterm et la console Linux
Avec support des événements X11
Avec support de l'internationalisation
Avec support de plusieurs codepages
Systèmes des fichiers virtuels : cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, sftpfs, fish
Types de données : char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Attachments

EGACHESS.ARC (128.0 KB) - added by Trux 4 years ago.
.ARC file
MM34.PAK (77.5 KB) - added by Trux 4 years ago.
.PAK file
4130_PAK_support.patch (2.8 KB) - added by angel_il 4 years ago.
PAK Archive support

Change History

Changed 4 years ago by Trux

.ARC file

Changed 4 years ago by Trux

.PAK file

comment:1 Changed 4 years ago by andrew_b

  • Priority changed from major to minor
  • Component changed from mc-core to mc-vfs

comment:2 in reply to: ↑ description Changed 4 years ago by andrew_b

Replying to Trux:

1) Midnight Commander doesn't open .ARC archives.
After installing arc package, I can extract files from .ARC archive with Midnight Commander.
Could you please add a package dependency between mc and arc packages ?

Such dependencies are not applicable in vanilla MC.
Please ask MC maintainer to add this dependency to MC package (rpm? deb? other?) in you distro.

2) Midnight Commander doesn't open .PAK archives.
After installing unar (not unrar) package, I can extract files from .PAK archive with the unar command but not with Midnight Commander.

Could you please add in Midnight Commander a call to unar command and a package dependency between mc and unar packages ?

Nobody created such extfs plugin yet. Patches are welcome!

Changed 4 years ago by angel_il

PAK Archive support

comment:3 Changed 4 years ago by angel_il

yes, i can!

have a nice day, Trux

(need lsar, unar utilities)

comment:4 Changed 4 years ago by angel_il

Trux, please test extfs pluggin 'unar'

comment:5 Changed 4 years ago by andrew_b

  • Status changed from new to accepted
  • Owner set to andrew_b

comment:6 Changed 4 years ago by andrew_b

  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.26

comment:7 Changed 4 years ago by Trux

Thank you very much for the patch. How can I test it ? I must wait a new version in Linux Mint Cinnamon ?

comment:8 Changed 4 years ago by andrew_b

The best way is build 4130_unar branch from source, test it and report found errors before merging branch into master.

Or wait for merge this branch into master, install suitable nightly build and then report errors in master.

comment:9 Changed 4 years ago by andrew_b

  • Votes for changeset set to andrew_b
  • Branch state changed from on review to approved

comment:10 Changed 4 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b to committed-master
  • Resolution set to fixed

comment:11 Changed 4 years ago by andrew_b

  • Status changed from testing to closed

comment:12 Changed 5 months ago by Trux

  • Status changed from closed to reopened
  • Resolution fixed deleted
  • Milestone changed from 4.8.26 to Future Releases

I tested with mc 4.8.30. I installed unar 1.10.1 and arc packages. I can browse EGACHESS.ARC​ file with mc but not MM34.PAK​.

comment:13 Changed 5 months ago by andrew_b

$ ar tv MM34.PAK 
ar: MM34.PAK: file format not recognized

comment:14 Changed 5 months ago by Trux

$ unar MM34.PAK 
MM34.PAK: ARC
  FILESRC.MNU  (3006 B)... OK.
  MESSCTL.MNU  (2171 B)... OK.
  MESSRC.MNU  (2505 B)... OK.
  MM.DOC  (19130 B)... OK.
  MM.EXE  (71760 B)... OK.
  MM.HLP  (3056 B)... OK.
  MMC.EXE  (28320 B)... OK.
  PDFILE.MNU  (3340 B)... OK.
  WHATS.NEW  (1495 B)... OK.
Successfully extracted to "MM34".

comment:15 Changed 5 months ago by andrew_b

$ unar MM34.PAK 
MM34.PAK: ARC
Archive parsing failed! (Unknown error.)
No files extracted.
$ unar --version
v1.10.1
$ sha256sum MM34.PAK 
79e82dbcc05776f792b77f74b98f2e9f5532cbb24b542555abba58e12a4c201c  MM34.PAK
Last edited 5 months ago by andrew_b (previous) (diff)

comment:16 Changed 5 months ago by Trux

???

$ unar --version
v1.10.1
$ sha256sum ./Bureau/MM34.PAK 
79e82dbcc05776f792b77f74b98f2e9f5532cbb24b542555abba58e12a4c201c  ./Bureau/MM34.PAK
$ unar ./Bureau/MM34.PAK 
./Bureau/MM34.PAK: ARC
  FILESRC.MNU  (3006 B)... OK.
  MESSCTL.MNU  (2171 B)... OK.
  MESSRC.MNU  (2505 B)... OK.
  MM.DOC  (19130 B)... OK.
  MM.EXE  (71760 B)... OK.
  MM.HLP  (3056 B)... OK.
  MMC.EXE  (28320 B)... OK.
  PDFILE.MNU  (3340 B)... OK.
  WHATS.NEW  (1495 B)... OK.
Successfully extracted to "MM34".

comment:17 Changed 5 months ago by zaytsev

Can you download mc.ext.ini.in from here:

https://github.com/MidnightCommander/mc/blob/master/misc/mc.ext.ini.in

... replace @EXTHELPERSDIR@ with the correct path, and use this instead of the shipped mc.ext.ini?

If my case with this file if I try to browse PAK, it says that I'm missing lsar, but I would assume that browsing would work, if I install it.

What message do you get, if you can't browse it? None at all, just Enter does nothing?

comment:18 Changed 5 months ago by Trux

I'm using lsar installed with unar:

https://imgur.com/a/H1htzOv

I replaced my /etc/mc/mc.ext.ini file with yours and replaced into it @EXTHELPERSDIR@ by /usr/lib/mc/ext.d. Then I can open MM34.PAK without any error message, it works fine.

comment:19 Changed 5 months ago by zaytsev

  • Status changed from reopened to closed
  • Votes for changeset committed-master deleted
  • Resolution set to invalid
  • Branch state changed from approved to no branch
  • Milestone Future Releases deleted

Alright thanks for the confirmation, so it's fixed with #4502 and will be released with the next version. Until then you have a workaround.

comment:20 Changed 5 months ago by Trux

Thank you very much.

Note: See TracTickets for help on using tickets.