Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/eglibc.xml

    rdf4f9ca r7d97f36  
    3939    </note>
    4040
    41     <para os="l3">The following sed makes sure that newly built EGLIBC is tested,
    42     during make install, instead of the one we previously build:</para>
    43 
    44 <screen os="l4"><userinput>LINKER=$(readelf -l $(file /tools/lib/libc-* | cut -f1 -d:) | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
     41    <para os="l1">At the end of the installation, the build system will run
     42    a sanity test to make sure everything installed properly. This script will
     43    attempt to test for a library that is only used in the test suite and is
     44    never installed. Prevent the script from testing for this library with the
     45    following command:</para>
     46
     47<screen os="l2"><userinput>sed -i 's/\(&amp;&amp; $name ne\) "db1"/ &amp; \1 "nss_test1"/' scripts/test-installation.pl</userinput></screen>
     48
     49    <para os="l3">This same script performs its tests by attempting to compile
     50    test programs against certain libraries. However it does not specify the
     51    ld.so, and our toolchain is still configured to use the one in /tools. The
     52    following set of commands will force the script to use the complete path
     53    of the new ld.so that was just installed:</para>
     54
     55<screen os="l4"><userinput>LINKER=$(readelf -l /tools/bin/bash | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
    4556sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \
    4657  scripts/test-installation.pl
    4758unset LINKER</userinput></screen>
     59
     60    <para os="p1">The following patch fixes an issue where EGLIBC will
     61    improperly handle a condition where an elf binary has missing
     62    dependencies:</para>
     63
     64<screen os="p2"><userinput>patch -Np1 -i ../&eglibc-dl_dep_fix-patch;</userinput></screen>
    4865
    4966    <para os="b">The EGLIBC build system is self-contained and will install
     
    95112
    96113<screen os="n"><userinput>cp -v ../eglibc-&eglibc-version;/iconvdata/gconv-modules iconvdata
    97 make -k check &gt;eglibc-check-log 2&gt;&amp;1 ; grep Error eglibc-check-log</userinput></screen>
     114make -k check 2&gt;&amp;1 | tee eglibc-check-log; grep Error eglibc-check-log</userinput></screen>
    98115
    99116    <para os="o">The EGLIBC test suite is highly dependent on certain functions of
Note: See TracChangeset for help on using the changeset viewer.