mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 01:54:24 +03:00
Ticket #3101: F3 doesn't work on .so files in FreeBSD 9.x
FreeBSD 9.x doesn't accept syntax for viewing lib) files processed by /usr/local/libexec/mc/ext.d/misc.sh revealing "/usr/local/libexec/mc/ext.d/misc.sh: 25: Syntax error: | unexpected". Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
efa06663e2
commit
0bc183c842
@ -22,8 +22,8 @@ do_view_action() {
|
|||||||
file "${MC_EXT_FILENAME}" && nm -C "${MC_EXT_FILENAME}"
|
file "${MC_EXT_FILENAME}" && nm -C "${MC_EXT_FILENAME}"
|
||||||
;;
|
;;
|
||||||
lib)
|
lib)
|
||||||
gplib -t "${MC_EXT_FILENAME}" || >&2 | \
|
gplib -t "${MC_EXT_FILENAME}" | \
|
||||||
@PERL@ -e '@a=split /[\s\t]+/, <>; printf ("%-30s | %10d | %s.%s.%02d | %s\n", $a[0], ($a[1]*1),$a[7], lc($a[4]), $a[5], $a[6]);'
|
@PERL@ -e 'while (<>) { @a=split /[\s\t]+/, $_; printf ("%-30s | %10d | %s.%s.%02d | %s\n", $a[0], ($a[1]*1),$a[7], lc($a[4]), $a[5], $a[6]);}'
|
||||||
;;
|
;;
|
||||||
so)
|
so)
|
||||||
file "${MC_EXT_FILENAME}" && nm -C -D "${MC_EXT_FILENAME}"
|
file "${MC_EXT_FILENAME}" && nm -C -D "${MC_EXT_FILENAME}"
|
||||||
|
@ -73,7 +73,7 @@ sub mc_ulib_fs_copyout
|
|||||||
my($module, $fname) = @_;
|
my($module, $fname) = @_;
|
||||||
my $tmpdir = $ENV{'TMPDIR'};
|
my $tmpdir = $ENV{'TMPDIR'};
|
||||||
|
|
||||||
$tmpdir = '/tmp' if ($tmpdir eq '');
|
$tmpdir = '/tmp' if (! defined $tmpdir or $tmpdir eq '');
|
||||||
|
|
||||||
open(PIPE, "$gplib -tq $archive |") || die("Error in: $gplib -tq");
|
open(PIPE, "$gplib -tq $archive |") || die("Error in: $gplib -tq");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user