Ticket #1731: lfs-r7782-glibc_2.4.patch

File lfs-r7782-glibc_2.4.patch, 5.2 KB (added by jciccone@…, 18 years ago)

Attached is a patch to update the book to glibc-2.4 (Starting to get a number of questions on IRC about why it's not upgraded yet).

  • chapter03/patches.xml

     
    107107    </varlistentry>
    108108
    109109    <varlistentry>
    110       <term>Glibc Linux Types Patch - <token>&glibc-linux_types-patch-size;</token>:</term>
     110      <term>Glibc Iconv Patch - <token>&glibc-iconv-patch-size;</token>:</term>
    111111      <listitem>
    112         <para>Download: <ulink url="&patches-root;&glibc-linux_types-patch;"/></para>
    113         <para>MD5 sum: <literal>&glibc-linux_types-patch-md5;</literal></para>
     112        <para>Download: <ulink url="&patches-root;&glibc-iconv-patch;"/></para>
     113        <para>MD5 sum: <literal>&glibc-iconv-patch-md5;</literal></para>
    114114      </listitem>
    115115    </varlistentry>
    116116
    117117    <varlistentry>
    118       <term>Glibc Inotify Syscall Functions Patch - <token>&glibc-inotify-patch-size;</token>:</term>
    119       <listitem>
    120         <para>Download: <ulink url="&patches-root;&glibc-inotify-patch;"/></para>
    121         <para>MD5 sum: <literal>&glibc-inotify-patch-md5;</literal></para>
    122       </listitem>
    123     </varlistentry>
    124 
    125     <varlistentry>
    126118      <term>Grep RedHat Fixes Patch - <token>&grep-fixes-patch-size;</token>:</term>
    127119      <listitem>
    128120        <para>Download: <ulink url="&patches-root;&grep-fixes-patch;"/></para>
  • chapter06/glibc.xml

     
    6363
    6464<screen><userinput>tar -xf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen>
    6565
    66     <para>Apply the following patch to fix build errors in packages that include
    67     <filename class="headerfile">linux/types.h</filename> after <filename
    68     class="headerfile">sys/kd.h</filename>:</para>
     66    <para>Glibc's Iconv has a bug that may prevent a package like samba from
     67    starting when <envar>LC_ALL</envar> is not set. The following patch fixes
     68    this issue:</para>
    6969
    70 <screen><userinput>patch -Np1 -i ../&glibc-linux_types-patch;</userinput></screen>
     70<screen><userinput>patch -Np1 -i ../&glibc-iconv-patch;</userinput></screen>
    7171
    72     <para>Add a header to define syscall functions for the inotify feature
    73     available in newer Linux kernels:</para>
    74 
    75 <screen><userinput>patch -Np1 -i ../&glibc-inotify-patch;</userinput></screen>
    76 
    7772    <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
    7873    at startup. It is unknown whether this is a <command>bash</command> bug or a
    7974    Glibc problem. Disable installation of this locale in order to avoid the
     
    172167
    173168<screen><userinput>make install</userinput></screen>
    174169
    175    <para>Install the inotify header to the system header location:</para>
    176 
    177 <screen><userinput>cp -v ../glibc-&glibc-version;/sysdeps/unix/sysv/linux/inotify.h \
    178     /usr/include/sys</userinput></screen>
    179 
    180170    <para>The locales that can make the system respond in a different language
    181171    were not installed by the above command. None of the locales are required,
    182172    but if some of them are missing, testsuites of the future packages would
  • packages.ent

     
    190190<!ENTITY gettext-ch6-du "65 MB">
    191191<!ENTITY gettext-ch6-sbu "1 SBU">
    192192
    193 <!ENTITY glibc-version "2.3.6">
    194 <!ENTITY glibc-size "13,687 KB">
     193<!ENTITY glibc-version "2.4">
     194<!ENTITY glibc-size "14,868 KB">
    195195<!ENTITY glibc-url "&gnu;glibc/glibc-&glibc-version;.tar.bz2">
    196 <!ENTITY glibc-md5 "bfdce99f82d6dbcb64b7f11c05d6bc96">
     196<!ENTITY glibc-md5 "7e9a88dcd41fbc53801dbe5bdacaf245">
    197197<!ENTITY glibc-home "&gnu-software;libc/">
    198198<!ENTITY glibc-ch5-du "325 MB">
    199199<!ENTITY glibc-ch5-sbu "6 SBU">
    200200<!ENTITY glibc-ch6-du "510 MB testsuite included">
    201201<!ENTITY glibc-ch6-sbu "13.5 SBU testsuite included">
    202202<!ENTITY glibc-libidn-version "&glibc-version;">
    203 <!ENTITY glibc-libidn-size "99 KB">
     203<!ENTITY glibc-libidn-size "104 KB">
    204204<!ENTITY glibc-libidn-url "&gnu;glibc/glibc-libidn-&glibc-libidn-version;.tar.bz2">
    205 <!ENTITY glibc-libidn-md5 "49dbe06ce830fc73874d6b38bdc5b4db">
     205<!ENTITY glibc-libidn-md5 "e2d892b40d654c523ab26a26b7dd86a1">
    206206<!ENTITY glibc-libidn-home " ">
    207207
    208208<!ENTITY grep-version "2.5.1a">
  • patches.ent

     
    5353<!ENTITY gcc-specs-patch-size "14.8 KB">
    5454
    5555
    56 <!ENTITY glibc-linux_types-patch "glibc-&glibc-version;-linux_types-1.patch">
    57 <!ENTITY glibc-linux_types-patch-md5 "30ea59ae747478aa9315455543b5bb43">
    58 <!ENTITY glibc-linux_types-patch-size "1.1 KB">
     56<!ENTITY glibc-iconv-patch "glibc-&glibc-version;-iconv-1.patch">
     57<!ENTITY glibc-iconv-patch-md5 "9c8e681226ccf7a1f25c6467674f915e">
     58<!ENTITY glibc-iconv-patch-size "4 KB">
    5959
    60 <!ENTITY glibc-inotify-patch "glibc-&glibc-version;-inotify-1.patch">
    61 <!ENTITY glibc-inotify-patch-md5 "94f6d26ae50a0fe6285530fdbae90bbf">
    62 <!ENTITY glibc-inotify-patch-size "1.4 KB">
    6360
    64 
    6561<!ENTITY grep-fixes-patch "grep-&grep-version;-redhat_fixes-2.patch">
    6662<!ENTITY grep-fixes-patch-md5 "2c67910be2d0a54714f63ce350e6d8a6">
    6763<!ENTITY grep-fixes-patch-size "55 KB">