WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Request Midnight Commander File Manager  (Read 59051 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #60 on: July 01, 2012, 06:15:34 PM »
Ok, mc has been built form scratch with hopefully everything in place.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #61 on: July 01, 2012, 06:18:49 PM »
Oops, I need to make one adjustment, grep even when in /apps/mc/localbin is still listed in the scripts as /usr/local/bin/grep.  I will fix that, and putting /apps/mc/localbin at the beginning of the PATH should  fix it for subsequent rebuilds.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #62 on: July 01, 2012, 07:21:01 PM »
Uploaded.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Request Midnight Commander File Manager
« Reply #63 on: July 01, 2012, 08:30:01 PM »
Hi Jason W
On the off chance you did not catch it, a search for  /usr/  in the mc scripts also turns up:
/usr/local/bin/perl
/usr/bin/zip
/usr/bin/unzip
/usr/bin/env python
/usr/bin/dpkg-repack
/usr/bin/apt-get
/usr/bin/dpkg-reconfigure

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #64 on: July 01, 2012, 08:50:49 PM »
Thanks

Perl and python I think should be optional add ons.

I think adding to the info file of installing perl5.tcz or a python should do, as there is no scm version.  The same would be true of mc.tcz. 

I will fix the zip commands, which should be right naturally on next rebuild with /apps/mc/localbin at the front of PATH when building.

Thanks for the info, I will work in the Debian stuff next rebuild.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #65 on: July 01, 2012, 09:10:45 PM »
Here is the result of "grep /usr *" in the /apps/mc/libexec/mc/extfs.c directpry: 


Code: [Select]
root@box:/tmp/2/mc/libexec/mc/extfs.d# grep /usr *
README:stored when configured or compiled, like /usr/local/libexec or /usr/libexec).
README:take whole tree and create .zip file from it. So /usr/zip:// will be
README:zipfile containing whole /usr tree.
a+:#! /usr/local/bin/perl -w
apt+:#! /usr/local/bin/perl
deb:#! /usr/local/bin/perl
deba:#! /usr/local/bin/perl
debd:#! /usr/local/bin/perl
debd:           if ( -x "/usr/bin/dpkg-repack" ) {
debd:           if ( -x "/usr/bin/apt-get" ) {
debd:       if( -x "/usr/bin/dpkg-reconfigure" && -x "/var/lib/dpkg/info/$archive.config" ) {
dpkg+:#! /usr/local/bin/perl
mailfs:#! /usr/local/bin/perl -w
patchfs:#! /usr/local/bin/perl -w
rpms+:#! /usr/local/bin/perl
s3+:#!/usr/bin/env python
s3+:#  Save as executable file /usr/libexec/mc/extfs/s3 (or wherever your mc expects to find extfs modules)
uzip:#! /usr/local/bin/perl -w
root@box:/tmp/2/mc/libexec/mc/extfs.d#


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Request Midnight Commander File Manager
« Reply #66 on: July 01, 2012, 09:18:48 PM »
Hi Jason W
There are a few more under   /usr/local/libexec/mc/   (I'm using the tcz as a reference)

/usr/local/libexec/mc/mc-wrapper.csh:/usr/local/bin/mc -P "$MC_PWD_FILE" $*
/usr/local/libexec/mc/mc-wrapper.sh:/usr/local/bin/mc -P "$MC_PWD_FILE" "$@"
/usr/local/libexec/mc/mc.csh:alias mc 'source /usr/local/libexec/mc/mc-wrapper.csh'
/usr/local/libexec/mc/mc.sh:alias mc='. /usr/local/libexec/mc/mc-wrapper.sh'

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #67 on: July 01, 2012, 09:59:56 PM »
root@box:/apps/mc/libexec/mc# grep mc *


Code: [Select]
mc-wrapper.csh: setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$
mc-wrapper.csh: setenv MC_PWD_FILE /tmp/mc-$MC_USER/mc.pwd.$$
mc-wrapper.csh:/apps/mc/localbin/mc -P "$MC_PWD_FILE" $*
mc-wrapper.sh:MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
mc-wrapper.sh:/apps/mc/localbin/mc -P "$MC_PWD_FILE" "$@"
mc.csh:alias mc 'source /apps/mc/libexec/mc/mc-wrapper.csh'
mc.sh:alias mc='. /apps/mc/libexec/mc/mc-wrapper.sh'


Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Request Midnight Commander File Manager
« Reply #68 on: July 02, 2012, 04:09:01 AM »
Uploaded.
I will fix the zip commands, which should be right naturally on next rebuild with /apps/mc/localbin at the front of PATH when building.

Thanks for the info, I will work in the Debian stuff next rebuild.
Not sure what has been fixed so tested as follows. Updated to the latest mc. Tested only browsing of test archives by <Enter>key.

Success: 7z, rar, iso
Fail: tar.bz2, tar.gz, zip, bz2, gz

Error Messages
tar.bz2
Code: [Select]
Cannot open tar archive
test.tar.bz2/ubz2://

tar.gz
Code: [Select]
Cannot open tar archive
test.tar.bz2/ubz2://

zip
Code: [Select]
./test.zip
./test.zip: line 1: PK: not found
./test.zip: line 2: À½ï: not found
./test.zip: line 3: : not found
IHDR0Wù‡sRGB®ÎébKGDÿÿÿ ½§“: not found
./test.zip: line 4: }škäiTXtCommentCreated: not found
./test.zip: line 6: syntax error: unexpected ")"

bz2
Code: [Select]
./test.bz2
3ìóowÊÍ}š¾¸3.î ð÷9õïo%hÛåë»é:¹6úÑôè9=kZ·Wv¶³V˾Þóh¯YÃ8ä÷ºu立ϊ¼€fÁ½ßnòÝÛÞw»ž½ÛÏ%æÝÜq}˜„Ýµ¸ï¾ûçϖìã½Ùµw°Þ»Þr¦m: not found
./test.bz2: line 3: BZh91AY: not found
line 3: LšG¦¢yOL@Ðd: not found
./test.bz2: ./test.bz2: ./test.bz2: line 3: e~òóÞó¾Ûeǽ÷—Ç=ñ疼ÛSRHvTÅoZ_fªúÊI: not foundline 3: line 3: : not foundcan't open ‡mC­š[ØoYëµÜÒÙ=îy½5m³aÖ} ^ëÛ6öwßz…í¾è»çîÙÙöîÆÃۭݶ¾.‚: no such file


./test.bz2: line 3: ȯ: not found
./test.bz2: line 3: ’á2ïôâìئ¤Š: not found
./test.bz2: line 3: T?ãÇz
                          ÆL•MÏ÷gòÕìÍg8*ŸGi‚Ÿ¶4…¦/·çbÜi„M±ƒ: not found
./test.bz2: line 3: can't open @Èí»”ËO++õ²P‹4¢UWK4b†7—6ó: no such file
./test.bz2: line 3: SYÃn
                        ¾3ïÿ€øyçÿÿ¿ïÿþ¿ÿÿþ€: not found
./test.bz2: line 4: Jm°-%ß: not found
./test.bz2: line 5: syntax error: unexpected ")"

gz
Code: [Select]
./test.gz
./test.gz: line 1: syntax error: unexpected "("
   

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #69 on: July 02, 2012, 06:21:27 AM »
I see the error messages too, but it still browses the archives.  I will look more at it later.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Request Midnight Commander File Manager
« Reply #70 on: July 02, 2012, 06:46:28 AM »
I see the error messages too, but it still browses the archives.  I will look more at it later.
Seems to be an official mc bug that has been fixed. Doesn't mention zip in the ticket.
https://www.midnight-commander.org/ticket/2785


Edit
The ticket also mentions the bug in relation to tar.xz.  Do you see any value in adding this archiver to those included within the SCM?
   
« Last Edit: July 02, 2012, 06:57:50 AM by SamK »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #71 on: July 02, 2012, 12:04:34 PM »
Ok, I will rebuild with an updated version or a patch.

And add xz while I am at it.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: Request Midnight Commander File Manager
« Reply #72 on: July 02, 2012, 03:37:49 PM »
hi jason w,

as you know the mc.tcz has the same problems...
will you be so kind and correct als the tcz-package?

thank you for your commitment and your contributions.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #73 on: July 02, 2012, 04:10:09 PM »
Hi netnomad,

The mc.tcz package is not mine, but if I find a solution here, the source and patches used can be used by the tcz packager to update mc.tcz with.


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Request Midnight Commander File Manager
« Reply #74 on: July 02, 2012, 08:31:04 PM »
I see that the patch resulting from that bug report is in Arch Linux now, so an easy fix, rebuilding now and hopefully will just work.