LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-17-2016, 08:44 AM   #1
lecho
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 18

Rep: Reputation: Disabled
mc in -current fails to open some .iso files, probably due to unexpected isoinfo output


Midnight Commander in -current fails to open (and view) some .iso files, probably to unexpected (improper?) isoinfo output.
First, isoinfo from -current. Partial output of the command
Quote:
isoinfo -l -i slackware-current-install-dvd.iso # one of Eric's slaklive files
Code:
Directory listing of /
        29 dr-xr-xr-x   1    0    0       6144 Jun 13 2016 [     29 02] . 
        29 dr-xr-xr-x   1    0    0       6144 Jun 13 2016 [     29 02] .. 
       657 -r-xr-xr-x   1    0    0      10205 Nov  4 2013 [    657 00] ANNOUNCE.14_ 
       662 -r-xr-xr-x   1    0    0      20933 Oct  2 2006 [    662 00] BOOTING.TXT 

Directory listing of /EXTRA/
   1278504 -r-xr-xr-x   1    0    0      40960 Jun  8 2016 [1278504 00] FILE_LIS 
18446744073709551598 -r-xr-xr-x   1    0    0          0 Mar  9 1971 [    -18 00] FLASHPLA 
       379 dr-xr-xr-x   1    0    0       2048 Dec 15 2015 [    379 02] FLTK
Now, the same from isoinfo from Slackware 14.1

Code:
Directory listing of /
d---------   0    0    0       6144 Jun 13 2016 [     29 02] . 
d---------   0    0    0       6144 Jun 13 2016 [     29 02] .. 
----------   0    0    0      10205 Nov  4 2013 [    657 00] ANNOUNCE.14_ 
----------   0    0    0      20933 Oct  2 2006 [    662 00] BOOTING.TXT 

Directory listing of /EXTRA/
----------   0    0    0      40960 Jun  8 2016 [1278504 00] FILE_LIS 
----------   0    0    0          0 Mar  9 1971 [    -18 00] FLASHPLA 
d---------   0    0    0       2048 Dec 15 2015 [    379 02] FLTK
Seems the unexpected first column in the first output is a problem, not mentioning funny entry for symbolic link.
 
Old 06-17-2016, 10:21 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,495

Rep: Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825
The ISO "slackware-current-install-dvd.iso" is a DVD installer of Slackware-current, not a Slackware Live ISO.
But indeed, the "isoinfo" changed its output format between Slackware 14.1 and 14.2.
The issue was also reported on the ALT Linux bug tracker where a patch is available too:
Code:
--- iso-orig	2004-04-26 16:17:18 +0300
+++ iso-orig	2004-06-28 13:18:59 +0300
@@ -40,7 +40,7 @@ 
   # Pattern to match 8 first fields.
   rx = "[^ 	]+[ 	]+";
   rx = "^" rx rx rx rx rx rx rx rx;
-  irx = "^. *[0-9]+.  ";
+  irx = "^. *[0-9 ]+.  ";
 }
 /^$/ { next }
 /^d---------/ { next }
 
Old 06-17-2016, 11:16 AM   #3
lecho
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: Disabled
Eric, of course you are right, this was the DVD installer made using your mirror-slackware-current script.
I'm not sure if the patch to extfs helper for mc you mentioned is still relevant to the current version of mc.
I think the problem is still with isoinfo - according to the manpage 'isoinfo -l' should give something like 'ls -lR' and the first column seems simply unnecessary. I cannot check it now if the change of the isoinfo output appeared after applying cdrtools-3.01-fix-20151126-mkisofs-isoinfo.patch. I wonder if this change was intentional.
 
Old 06-23-2016, 04:35 AM   #4
lecho
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: Disabled
More details about the isoinfo output can be found here https://sourceforge.net/p/cdrtools/m...ewmonth=201606
If someone still wants to inspect iso files using mc there are at least two workarounds:

1. Make changes in the "iso9660" file which comes with mc. The file resides in the "/usr/libexec/mc/extfs.d" directory. I suggest not to alter system-wide settings but to put the modified file in the ~/.local/share/mc/extfs.d directory. Here is a quick and dirty patch (no guarantee it works in every case)
Code:
--- iso9660     2016-03-26 19:38:49.000000000 +0100
+++ iso9660.lp1 2016-06-21 21:33:34.573828488 +0200
@@ -135 +135 @@
-    $ISOINFO -l -i "$1" 2>/dev/null | gawk -v SEMICOLON=$SEMICOLON '
+    $ISOINFO -l -i "$1" 2>/dev/null | gawk '{if ($1*1 >0){ss=index($0,$2);sa=substr($0,ss);print sa} else {print $0}}' |  gawk -v SEMICOLON=$SEMICOLON '
2. Install xorriso package from Alien BOB's repository. Note that opening iso files (especially large ones) is much slower in this case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware Current (13.37) iso fails to boot on Asus P8Z68-V LE with 3506/3702 BIOS TracyTiger Slackware - Installation 4 04-18-2012 01:02 PM
Files Upload fails due to "Failure reading network stream" error. vikaskadam Red Hat 2 07-09-2011 12:31 AM
isoinfo inconsistent output DBabo Linux - Software 6 07-20-2010 07:29 AM
mirror-slackware-current fails to create iso's BCarey Slackware 5 08-15-2009 09:42 AM
X11R72: configure fails due to unexpected end of file? ichrispa Linux - Software 0 07-28-2007 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration