Changeset 058c1e7f


Ignore:
Timestamp:
Dec 5, 2013, 9:28:37 PM (7 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
b8e82b7
Parents:
f2f8eec
Message:

Prevent XZ from installing static libraries in /lib

Location:
BOOK
Files:
5 edited

Legend:

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

    rf2f8eec r058c1e7f  
    3030    <para os="a">Prepare XZ-Utils for compilation:</para>
    3131
    32 <screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
     32<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
    3333
    3434    <para os="c">Compile the package:</para>
     
    4242    <para os="f">Install the programs:</para>
    4343
    44 <screen os="g"><userinput>make pkgconfigdir=/usr/lib/pkgconfig install</userinput></screen>
     44<screen os="g"><userinput>make install</userinput></screen>
    4545
    4646    <para os="h">Move the <filename>xz</filename> binary, and several symlinks
     
    4848
    4949<screen os="i"><userinput>mv -v /usr/bin/{xz,lzma,lzcat,unlzma,unxz,xzcat} /bin</userinput></screen>
     50
     51    <para os="j">Finally, move the shared library to a more appropriate
     52    location, and recreate the symlink pointing to it:</para>
     53
     54<screen os="k"><userinput>mv -v /usr/lib/liblzma.so.* /lib
     55ln -svf ../../lib/liblzma.so.&xz-version; /usr/lib/liblzma.so</userinput></screen>
    5056
    5157  </sect2>
     
    6066
    6167      <seglistitem>
    62         <seg>lzcat (link to xz), lzcmp (link to lzdiff), lzdiff, lzegrep (link to lzgrep),
    63         lzfgrep (link to lzgrep), lzgrep, lzless (link to lzmore), lzma (link to xz),
    64         lzmadec, lzmore, unlzma (link to xz), unxz (link to xz), xz, xzcat
    65         (link to xz), and xzdec</seg>
     68        <seg>lzcat (link to xz), lzcmp (link to xzdiff), lzdiff (link to
     69        xzdiff), lzegrep (link to xzgrep), lzfgrep (link to xzgrep), lzgrep
     70        (link to xzgrep), lzless (link to xzless), lzma (link to xz), lzmadec,
     71        lzmainfo, lzmore (link to xzmore), unlzma (link to xz), unxz (link to
     72        xz), xz, xzcat (link to xz), xzcmp (link to xzdiff), xzdec, xzdiff,
     73        xzegrep (link to xzgrep), xzfgrep (link to xzgrep), xzgrep, xzless,
     74        and xzmore</seg>
    6675        <seg>liblzma.[a,so]</seg>
    6776        <seg>/usr/include/lzma, /usr/share/doc/xz</seg>
  • BOOK/final-system/multilib/xz-64bit.xml

    rf2f8eec r058c1e7f  
    2626    xpointer="xpointer(//*[@os='a'])"/>
    2727
    28 <screen os="b"><userinput>CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/lib64</userinput></screen>
     28<screen os="b"><userinput>CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64</userinput></screen>
    2929
    3030    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    4444    xpointer="xpointer(//*[@os='f'])"/>
    4545
    46 <screen os="g"><userinput>make pkgconfigdir=/usr/lib64/pkgconfig install</userinput></screen>
     46    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     47    href="xz.xml"
     48    xpointer="xpointer(//*[@os='g'])"/>
    4749
    4850    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    5860    xpointer="xpointer(//*[@os='j'])"/>
    5961
    60     <screen os="k"><userinput>mv -v /lib64/liblzma.a /usr/lib64</userinput></screen>
     62<screen os="k"><userinput>mv -v /usr/lib64/liblzma.so.* /lib64
     63ln -svf ../../lib64/liblzma.so.&xz-version; /usr/lib64/liblzma.so</userinput></screen>
    6164
    6265  </sect2>
  • BOOK/final-system/multilib/xz-n32.xml

    rf2f8eec r058c1e7f  
    2727    xpointer="xpointer(//*[@os='a'])"/>
    2828
    29 <screen os="b"><userinput>CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/lib32</userinput></screen>
     29<screen os="b"><userinput>CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32</userinput></screen>
    3030
    3131    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    4545    xpointer="xpointer(//*[@os='f'])"/>
    4646
    47 <screen os="g"><userinput>make pkgconfigdir=/usr/lib32/pkgconfig install</userinput></screen>
     47<screen os="g"><userinput>make install</userinput></screen>
    4848
    4949    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    5151    xpointer="xpointer(//*[@os='j'])"/>
    5252
    53 <screen os="k"><userinput>mv -v /lib32/liblzma.a /usr/lib32</userinput></screen>
     53<screen os="k"><userinput>mv -v /usr/lib32/liblzma.so.* /lib32
     54ln -svf ../../lib32/liblzma.so.&xz-version; /usr/lib32/liblzma.so</userinput></screen>
    5455
    5556  </sect2>
  • BOOK/final-system/multilib/xz.xml

    rf2f8eec r058c1e7f  
    2727    xpointer="xpointer(//*[@os='a'])"/>
    2828
    29 <screen os="b"><userinput>CC="gcc ${BUILD32}" ./configure --prefix=/usr --libdir=/lib</userinput></screen>
     29<screen os="b"><userinput>CC="gcc ${BUILD32}" ./configure --prefix=/usr</userinput></screen>
    3030
    3131    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    4949    xpointer="xpointer(//*[@os='g'])"/>
    5050
    51     <para os="j">Move the static libraries to the proper location:</para>
     51    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     52    href="../common/xz.xml"
     53    xpointer="xpointer(//*[@os='j'])"/>
    5254
    53     <screen os="k"><userinput>mv -v /lib/liblzma.a /usr/lib</userinput></screen>
     55    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     56    href="../common/xz.xml"
     57    xpointer="xpointer(//*[@os='k'])"/>
    5458
    5559  </sect2>
  • BOOK/introduction/common/changelog.xml

    rf2f8eec r058c1e7f  
    3838-->
    3939    <listitem>
     40      <para>06 December 2013</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[Chris] - Modified XZ instructions so that it won't install
     44          liblzma.{a,la} in /lib.</para>
     45        </listitem>
     46      </itemizedlist>
     47    </listitem>
     48
     49    <listitem>
    4050      <para>04 December 2013</para>
    4151      <itemizedlist>
Note: See TracChangeset for help on using the changeset viewer.