[Midnight Commander] #2925: Built-in viewer does not work with text files in .ipk archives.

24 views
Skip to first unread message

Ticket System

unread,
Nov 8, 2012, 3:24:47 PM11/8/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
-------------------------------+--------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.6
Keywords: | Blocked By:
Blocking: | Branch state: no branch
Votes for changeset: |
-------------------------------+--------------------------------
Step to reproduce:
1. Press "Enter" on the .ipk file (OpenWRT package)
2. Select any text file in list
3. Press "F3" to view
You still have a window with the warning: "tar: This does not look like a
tar archive" and "tar: Exiting with failure status due to previous error".

But built-in viewer displays a text file with no errors:
1) if rename foo.ipk file to foo.tar.gz
or
2) if on phase 3. press "Shift-F3" (instead "F3")

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925>
Midnight Commander <http://www.midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Nov 9, 2012, 12:41:38 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
--------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.6
Resolution: | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+---------------------------------------

Comment (by angel_il):

i can't reproduce this.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:1>

Ticket System

unread,
Nov 9, 2012, 2:20:48 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
--------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.6
Resolution: | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+---------------------------------------

Comment (by dvlom):

Hi.

Press "F3" on the file "debian-binary" produce an error.

Test system:
Live GNOME openSUSE 12.2, mc-4.8.1.3-4.1.2.rpm from openSUSE Current OSS
repositry (out of the box).

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:2>

Ticket System

unread,
Nov 9, 2012, 2:59:58 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------
Changes (by andrew_b):

* status: new => closed
* version: 4.8.6 => 4.8.1.3
* resolution: => worksforme


Comment:

Replying to [comment:2 dvlom]:
> mc-4.8.1.3

Try latest release and feel free to reopen ticket if bug is still actual.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:3>

Ticket System

unread,
Nov 9, 2012, 5:38:11 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by dvlom):

Replying to [comment:3 andrew_b]:

> Try latest release and feel free to reopen ticket if bug is still
actual.

Of course. On my working system openSUSE 12.2 (not live) - mc-4.8.6.
Вehavior is similar to test system (Live GNOME openSUSE 12.2, mc-4.8.1.3).

Ubuntu 12.10 Live, mc-4.8.3 - another system in which the error is
reproducible.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:4>

Ticket System

unread,
Nov 9, 2012, 7:19:00 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by angel_il):

Replying to [comment:4 dvlom]:

> Replying to [comment:3 andrew_b]:
> > Try latest release and feel free to reopen ticket if bug is still
actual.
>
> Of course. On my working system openSUSE 12.2 (not live) - mc-4.8.6.
Вehavior is similar to test system (Live GNOME openSUSE 12.2, mc-4.8.1.3).
>
> Ubuntu 12.10 Live, mc-4.8.3 - another system in which the error is
reproducible.
>
>

please attach test ipk file ~10-100kb

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:5>

Ticket System

unread,
Nov 9, 2012, 8:14:19 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by angel_il):

mc 4.8.6
i can't reproduce on luci-theme-base_0.11+svn9415-1_ar71xx.ipk

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:6>

Ticket System

unread,
Nov 9, 2012, 9:06:27 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by andrew_b):

dvlom, compare your /etc/mc/mc.ext and ~/.config/mc/mc.ext in ipk-related
part.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:7>

Ticket System

unread,
Nov 9, 2012, 9:22:12 AM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by dvlom):

Replying to [comment:7 andrew_b]:

> dvlom, compare your /etc/mc/mc.ext and ~/.config/mc/mc.ext in ipk-
related part.

File ~/.config/mc/mc.ext not exists.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:8>

Ticket System

unread,
Nov 9, 2012, 1:24:33 PM11/9/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by dvlom):

Please test attached test.ipk. Enter into test.ipk file, then try to open
any file with built-in viewer (press "F3"). I hope, that this time you
will see an error ;)

I believe the program is trying to view all the files inside the .ipk-
archive as .tar.gz-archives, and therefore there is a specified error
("tar: This does not look like a tar archive" and "tar: Exiting with
failure status due to previous error").

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:9>

Ticket System

unread,
Nov 10, 2012, 12:45:20 AM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by angel_il):

no problem with test.ipk
in in panel "test.ipk/utar://test"

are you tried latest version?

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:10>

Ticket System

unread,
Nov 10, 2012, 2:16:51 AM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by dvlom):

Replying to [comment:10 angel_il]:

> no problem with test.ipk
> in in panel "test.ipk/utar://test"
>
> are you tried latest version?

Hi.
Yes, in panel "test.ipk/utar://test". mc version is 4.8.6 (and 4.8.1.3 on
live openSUSE 12.2, and 4.8.3 on Ubintu 12.10 in VBox).
Are any options in the .spec file may solve the problem?
Or, is it may be the case in the operating system version?

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:11>

Ticket System

unread,
Nov 10, 2012, 5:18:35 AM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by angel_il):

{{{
$ LANG=C tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
}}}

please, show your tar version.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:12>

Ticket System

unread,
Nov 10, 2012, 5:54:53 AM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by dvlom):

> please, show your tar version.

The same version, 1.26

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:13>

Ticket System

unread,
Nov 10, 2012, 7:06:48 AM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by andrew_b):

Replying to [comment:12 angel_il]:
> $ LANG=C tar --version

mc doesn't use external tar.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:14>

Ticket System

unread,
Nov 10, 2012, 1:20:52 PM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by angel_il):

Replying to [comment:14 andrew_b]:

> Replying to [comment:12 angel_il]:
> > $ LANG=C tar --version
>
> mc doesn't use external tar.

you right, but "tar: This does not look like a tar archive" and "tar:
Exiting with failure status due to previous error" this 'tar' utility
messages, not mc...

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:15>

Ticket System

unread,
Nov 10, 2012, 2:28:23 PM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by dvlom):

Hi!
I have just compiled a version based on nightly archive
mc_4.8.6~git20121110.orig.tar.gz.
No errors, everything works :)

{{{
$ LANG=C mc -V
GNU Midnight Commander 4.8.6-94-g3bde17c
Built with GLib 2.32.4
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;
}}}
Guys, I'm sorry for your time. Thank you.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:16>

Ticket System

unread,
Nov 10, 2012, 3:29:48 PM11/10/12
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+---------------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+---------------------------------------

Comment (by angel_il):

Replying to [comment:16 dvlom]:

> No errors, everything works :)

ok

--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:17>

Ticket System

unread,
Mar 6, 2016, 7:13:07 AM3/6/16
to dv...@mail.ru, mc-...@googlegroups.com
#2925: Built-in viewer does not work with text files in .ipk archives.
---------------------------+-------------------------------
Reporter: dvlom | Owner:
Type: defect | Status: closed
Priority: major | Milestone:
Component: mc-core | Version: 4.8.1.3
Resolution: worksforme | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
---------------------------+-------------------------------
Changes (by zaytsev):

* milestone: Future Releases =>


--
Ticket URL: <http://www.midnight-commander.org/ticket/2925#comment:18>

Reply all
Reply to author
Forward
0 new messages