Changeset ee122615 for general/sysutils


Ignore:
Timestamp:
04/22/2012 08:14:16 PM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
e173f329
Parents:
afb079c
Message:

Updated to mc-4.8.3

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9980 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/mc.xml

    rafb079c ree122615  
    55  %general-entities;
    66
    7   <!ENTITY mc-download-http "http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-&mc-version;.tar.gz">
    8   <!ENTITY mc-download-ftp  "ftp://ftp.uni-koeln.de/util/shell/mc-&mc-version;.tar.gz">
    9   <!ENTITY mc-md5sum        "18b20db6e40480a53bac2870c56fc3c4">
    10   <!ENTITY mc-size          "3.8 MB">
    11   <!ENTITY mc-buildsize     "29 MB">
    12   <!ENTITY mc-time          "0.4 SBU">
     7  <!ENTITY mc-download-http "https://www.midnight-commander.org/downloads/mc-&mc-version;.tar.xz">
     8  <!ENTITY mc-download-ftp  " ">
     9  <!ENTITY mc-md5sum        "1e29f8d2ce66b686b905857553a092be">
     10  <!ENTITY mc-size          "2.0 MB">
     11  <!ENTITY mc-buildsize     "89 MB">
     12  <!ENTITY mc-time          "0.6 SBU">
    1313]>
    1414
     
    3636    full power of the command prompt.</para>
    3737
     38    &lfs71_checked;
     39
     40    <note><para>The download site uses a self-signed security certificate.
     41    You will need to accept it as valid to get the source code.</para></note>
     42
    3843    <bridgehead renderas="sect3">Package Information</bridgehead>
    3944    <itemizedlist spacing="compact">
     
    6166    <itemizedlist spacing="compact">
    6267      <listitem>
    63         <para>Required patch: <ulink
    64         url="&patch-root;/mc-&mc-version;-bash32-1.patch"/></para>
    65       </listitem>
    66       <listitem>
    67         <para>Recommended Patch: <ulink
    68         url="&patch-root;/mc-&mc-version;-debian_fixes-1.patch"/></para>
     68        <para>Optional patch:
     69          <ulink url="&patch-root;/mc-&mc-version;-missing-1.patch"/>
     70        </para>
    6971      </listitem>
    7072    </itemizedlist>
    7173
    72     <bridgehead renderas="sect3">Do I Need the Debian Patch?</bridgehead>
    73     <para>Midnight Commander without the Debian patch is completely unusable
    74     in multibyte locales because it assumes that characters and
    75     bytes are the same thing. The issue manifests itself as massive screen
    76     content corruption similar to what is depicted in
    77     <ulink url="&files-anduin;/mc-bad.png">this screenshot</ulink>
    78     (taken in the ru_RU.UTF-8 locale). For a general discussion of this type
    79     of issue, see the <xref linkend="locale-wrong-multibyte-characters"/>
    80     section of the <xref linkend="locale-issues"/> page. The Debian patch
    81     mostly fixes this issue, and adds support for recoding remote FTP
    82     filenames. Debian also fixed 64-bit issues, rare segfaults in
    83     <command>mcedit</command>, and improved syntax highlighting.</para>
    84 
    85     <para>If you do not use a multibyte locale and do not need any of the new
    86     features or fixes, the patch is still supposed to be harmless.
    87     However, the patch changes the dependencies and build instructions, and
    88     in the past it caused unacceptable regressions for non-UTF-8 locale users.
    89     Thus, failsafe instructions without the patch are left in the book just
    90     in case. Due to the size and unofficial nature of the patch, please
    91     do not report bugs in the patched <application>MC</application> to the
    92     original <application>MC</application> developers.</para>
    93 
    9474    <bridgehead renderas="sect3">MC Dependencies</bridgehead>
    9575
    9676    <bridgehead renderas="sect4">Required</bridgehead>
    97     <para role="required"><!-- <xref linkend="GLib"/> (untested with Debian patch) or -->
    98     <xref linkend="pkgconfig"/></para>
     77    <para role="required">
     78      <xref linkend="pcre"/> and
     79      <xref linkend="pkgconfig"/>
     80    </para>
    9981
    10082    <bridgehead renderas="sect4">Optional</bridgehead>
    101     <para role="optional"><xref linkend="gpm"/>,
    102     <xref linkend="x-window-system"/>,
    103     <xref linkend="samba3"/>,
    104     <xref linkend="slang"/> (required when building with Debian patch),
    105     <xref linkend="zip"/>,
    106     <xref linkend="unzip"/>, and
    107     <!-- <xref linkend="gnome-libs"/> -->
    108     <ulink url="&gnome-download-http;/gnome-libs/1.4/">GNOME
    109     Libraries-1.4</ulink></para>
     83    <para role="optional">
     84      <xref linkend="gpm"/>,
     85      <xref linkend="x-window-system"/>,
     86      <xref linkend="samba3"/>,
     87      <xref linkend="slang"/>,
     88      <xref linkend="zip"/>, and
     89      <xref linkend="unzip"/>
     90    </para>
    11091
    11192    <para condition="html" role="usernotes">User Notes:
     
    11798    <title>Installation of MC</title>
    11899
    119     <para>Fix incompatibility of <application>MC</application>-&mc-version;
    120     with <application>Bash</application>-3.2:</para>
    121 
    122 <screen><userinput>patch -Np1 -i ../mc-&mc-version;-bash32-1.patch</userinput></screen>
    123 
    124     <para>If desired, apply Debian fixes:</para>
    125 
    126 <screen><userinput>patch -Np1 -i ../mc-&mc-version;-debian_fixes-1.patch</userinput></screen>
     100    <para>Add a missing file to run all tests:</para>
     101
     102<screen><userinput>patch -Np1 -i ../mc-&mc-version;-missing-1.patch</userinput></screen>
    127103
    128104    <para>Install <application>MC</application> by
    129105    running the following commands:</para>
    130106
    131 <screen><userinput>CPPFLAGS="-DUTF8" ./configure --prefix=/usr \
    132             --enable-charset &amp;&amp;
     107<screen><userinput>./configure --prefix=/usr --enable-charset --disable-static &amp;&amp;
    133108make</userinput></screen>
    134109
    135     <para><application>MC</application> with Debian patches expects its
    136     documentation to be stored in UTF-8 encoding on disk, and automatically
    137     converts it to the locale encoding when displaying on the terminal. This
    138     is different from the expectations of the unpatched
    139     <application>MC</application>, so the documentation files have to be
    140     converted if (and only if) the Debian patch has been applied:</para>
    141 
    142 <!-- The proposed (untested) fix...somebody who uses MC please verify -->
    143 <screen><userinput>for file in lib/mc.hint{,.es,.it,.nl} doc/{es,it}/mc.hlp.*
    144 do
    145     iconv -f ISO-8859-1 -t UTF-8 ${file} > ${file}.utf8 &amp;&amp;
    146     mv ${file}.utf8 ${file}
    147 done &amp;&amp;
    148 for file in lib/mc.hint{.cs,.hu,.pl} doc/{hu,pl}/mc.hlp.*
    149 do
    150     iconv -f ISO-8859-2 -t UTF-8 ${file} > ${file}.utf8 &amp;&amp;
    151     mv ${file}.utf8 ${file}
    152 done &amp;&amp;
    153 for file in lib/mc.hint.sr doc/sr/mc.hlp.sr
    154 do
    155     iconv -f ISO-8859-5 -t UTF-8 ${file} > ${file}.utf8 &amp;&amp;
    156     mv ${file}.utf8 ${file}
    157 done &amp;&amp;
    158 for file in doc/ru/mc.hlp.ru lib/mc.hint.ru
    159 do
    160     iconv -f KOI8-R -t UTF-8 ${file} > ${file}.utf8 &amp;&amp;
    161     mv ${file}.utf8 ${file}
    162 done &amp;&amp;
    163 iconv -f KOI8-U -t UTF-8 lib/mc.hint.uk > lib/mc.hint.uk.utf8 &amp;&amp;
    164 mv lib/mc.hint.uk.utf8 lib/mc.hint.uk &amp;&amp;
    165 iconv -f BIG5 -t UTF-8 lib/mc.hint.zh > lib/mc.hint.zh.utf8 &amp;&amp;
    166 mv lib/mc.hint.zh.utf8 lib/mc.hint.zh</userinput></screen>
    167 
    168     <para>This package does not come with a test suite.</para>
     110    <para>To test the results, issue: <userinput>make check</userinput>.</para>
    169111
    170112    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    171113
    172 <screen role="root"><userinput>make install &amp;&amp;
    173 chmod 1755 /usr/lib/mc/cons.saver</userinput></screen>
     114<screen role="root"><userinput>make install</userinput></screen>
    174115
    175116  </sect2>
     
    178119    <title>Command Explanations</title>
    179120
    180     <para><parameter>CPPFLAGS="-DUTF8"</parameter>: This parameter activates
    181     UTF-8 support in the Debian patch and has no effect without this
    182     patch.</para>
    183 
    184121    <para><parameter>--enable-charset</parameter>: This option adds support
    185122    to <command>mcedit</command> for editing files in encodings different
    186     from the one implied by the current locale. This feature works in
    187     non-UTF-8 locales only, even with the Debian patch.</para>
    188 
    189     <para><parameter>--with-screen=(slang|mcslang|ncurses)</parameter>: This
     123    from the one implied by the current locale.</para>
     124
     125    <para><parameter>--with-screen=(slang|ncurses)</parameter>: This
    190126    parameter selects the screen library used by <application>MC</application>.
    191     <application>NCurses</application> support is
    192     currently buggy (MC does not handle mouse events in xterm correctly).
    193     UTF-8 support in the Debian patch is functional
    194     only when external <xref linkend="slang"/> is used as a screen library
    195     (this is the default).</para>
    196 
    197     <para><parameter>--with-codepagedir=DIR</parameter>: This parameter was
    198     useful only with <application>SAMBA</application>-2.x. New versions of
    199     <application>SAMBA</application> do not have codepage files.</para>
    200 
    201     <para><command>chmod 1755 /usr/lib/mc/cons.saver</command>: The
    202     <command>cons.saver</command> program has to be installed setuid
    203     root, because on LFS regular users have no access to
    204     <filename>/dev/vcsa*</filename> devices. This step is optional if
    205     <application>MC</application> is going to be started from X terminal
    206     emulators or <command>ssh</command> sessions only (thus rendering the
    207     <command>cons.saver</command> binary completely unneeded).</para>
    208 
    209     <!-- Other distributions make the devices owned by the vcsa group
    210          and make the cons.saver program setgid vcsa instead -->
     127    <xref linkend="slang"/> is the default if found.</para>
    211128
    212129  </sect2>
     
    248165
    249166      <seglistitem>
    250         <seg>cons.saver, mc, mcedit, mcmfmt, and mcview</seg>
     167        <seg>mc, mcdiff, mcedit, and mcview</seg>
    251168        <seg>None</seg>
    252         <seg>/usr/share/mc and /usr/lib/mc</seg>
     169        <seg>i/etc/mc, /usr/libexec/mc, and /usr/share/mc</seg>
    253170      </seglistitem>
    254171    </segmentedlist>
     
    290207      </varlistentry>
    291208
    292       <varlistentry id="mcmfmt">
    293         <term><command>mcmfmt</command></term>
    294         <listitem>
    295           <para>is used internally by <command>mcview</command> when viewing
    296           mailbox files.</para>
    297           <indexterm zone="mc mcmfmt">
    298             <primary sortas="b-mcmfmt">mcmfmt</primary>
     209      <varlistentry id="mcdiff">
     210        <term><command>mcdiff</command></term>
     211        <listitem>
     212          <para>is an internal visual diff tool.</para>
     213          <indexterm zone="mc mcdiff">
     214            <primary sortas="b-mcdiff">mcdiff</primary>
    299215          </indexterm>
    300216        </listitem>
Note: See TracChangeset for help on using the changeset viewer.