Changeset 66f1dbd for general/genlib


Ignore:
Timestamp:
01/14/2024 03:29:06 PM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
dfaebf4
Parents:
af4e8a78
git-author:
Xi Ruoyao <xry111@…> (01/12/2024 09:57:06 AM)
git-committer:
Xi Ruoyao <xry111@…> (01/14/2024 03:29:06 PM)
Message:

keyutils: Run the tests after installation, and fix a test script not anticipating PIE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/keyutils.xml

    raf4e8a78 r66f1dbd  
    9393
    9494    <para>
     95      Now, as the <systemitem class="username">root</systemitem> user:
     96    </para>
     97
     98<screen role="root"><userinput>make NO_ARLIB=1 LIBDIR=/usr/lib BINDIR=/usr/bin SBINDIR=/usr/sbin install</userinput></screen>
     99
     100    <para>
     101      The test suite can only run after installing this package.
    95102      To test the results, issue, as the
    96103      <systemitem class="username">root</systemitem> user:
    97104    </para>
    98105
    99 <screen role="root" remap="test"><userinput>make -k test</userinput></screen>
     106<screen role="root" remap="test"><userinput>sed -e 's/executable/\\(pie \\)?/' \
     107    -i tests/toolbox.inc.sh        &amp;&amp;
     108make -k test</userinput></screen>
    100109
    101110    <para>
     
    105114    </para>
    106115
    107     <para>
    108       Now, as the <systemitem class="username">root</systemitem> user:
    109     </para>
    110 
    111 <screen role="root"><userinput>make NO_ARLIB=1 LIBDIR=/usr/lib BINDIR=/usr/bin SBINDIR=/usr/sbin install</userinput></screen>
    112 
    113116  </sect2>
    114117
     
    119122      <command>sed ... Makefile</command>: This command ensures the pkgconfig
    120123      file is placed in the correct directory.
     124    </para>
     125
     126    <para>
     127      <command>sed ... tests/toolbox.inc.sh</command>: In LFS, GCC has been
     128      configured with <option>--enable-default-pie</option> so
     129      <command>/usr/bin/bash</command> is a PIE, but the test script does
     130      not anticipate it.  Fix this oversight so the test can run on a LFS
     131      system.
    121132    </para>
    122133
Note: See TracChangeset for help on using the changeset viewer.