On 13.12.2013 21:04, [email protected] wrote:
> Author: bdubbs
> Date: Fri Dec 13 12:04:46 2013
> New Revision: 10391
>
> Log:
> Fix kmod, procps-ng, zlib, readline, ncurses,
> and xz methods of establishing correct symbolic links
> for libraries.
>
> Modified:
>     trunk/BOOK/chapter01/changelog.xml
>     trunk/BOOK/chapter06/kmod.xml
>     trunk/BOOK/chapter06/ncurses.xml
>     trunk/BOOK/chapter06/procps.xml
>     trunk/BOOK/chapter06/readline.xml
>     trunk/BOOK/chapter06/xz.xml
>     trunk/BOOK/chapter06/zlib.xml
>
> Modified: trunk/BOOK/chapter01/changelog.xml
> ==============================================================================
> --- trunk/BOOK/chapter01/changelog.xml        Thu Dec 12 22:55:02 2013        
> (r10390)
> +++ trunk/BOOK/chapter01/changelog.xml        Fri Dec 13 12:04:46 2013        
> (r10391)
> @@ -39,6 +39,11 @@
>         <para>2013-12-13</para>
>         <itemizedlist>
>           <listitem>
> +          <para>[bdubbs] - Fix kmod, procps-ng, zlib, readline, ncurses,
> +          and xz methods of establishing correct symbolic links
> +          for libraries.</para>
> +        </listitem>
> +        <listitem>
>             <para>[bdubbs] - Update to procps-ng-3.3.9. Fixes
>             <ulink url="&lfs-ticket-root;3439">#3439</ulink>.</para>
>           </listitem>
>
> Modified: trunk/BOOK/chapter06/kmod.xml
> ==============================================================================
> --- trunk/BOOK/chapter06/kmod.xml     Thu Dec 12 22:55:02 2013        (r10390)
> +++ trunk/BOOK/chapter06/kmod.xml     Fri Dec 13 12:04:46 2013        (r10391)
> @@ -95,10 +95,7 @@
>       <para> Make sure that all libraries are in the correct directory: 
> </para>
>
>   <screen><userinput remap="install">mv -v /usr/lib/libkmod.so.* /lib
> -ln -svf ../../lib/libkmod.so.2.2.5 /usr/lib/libkmod.so</userinput></screen>
> -
> -<!-- Note to editors:  When upgrading kmod, make sure the library version
> -     specified above has not changed -->
> +ln -svf ../../lib/$(readlink /usr/lib/libkmod.so) 
> /usr/lib/libkmod.so</userinput></screen>
>

Can you please tell me what is wrong with --with-rootlibdir approach? It 
does *exactly* the same thing as is done here, no need for the extra work.

>     </sect2>
>
>
> Modified: trunk/BOOK/chapter06/ncurses.xml
> ==============================================================================
> --- trunk/BOOK/chapter06/ncurses.xml  Thu Dec 12 22:55:02 2013        (r10390)
> +++ trunk/BOOK/chapter06/ncurses.xml  Fri Dec 13 12:04:46 2013        (r10391)
> @@ -110,7 +110,7 @@
>       <para>Because the libraries have been moved, one symlink points to
>       a non-existent file. Recreate it:</para>
>
> -<screen><userinput remap="install">ln -sfv ../../lib/libncursesw.so.5 
> /usr/lib/libncursesw.so</userinput></screen>
> +<screen><userinput remap="install">ln -sfv ../../lib/$(readlink 
> /usr/lib/libncursesw.so) /usr/lib/libncursesw.so</userinput></screen>
>
>       <para>Many applications still expect the linker to be able to find
>       non-wide-character Ncurses libraries. Trick such applications into 
> linking with
>
> Modified: trunk/BOOK/chapter06/procps.xml
> ==============================================================================
> --- trunk/BOOK/chapter06/procps.xml   Thu Dec 12 22:55:02 2013        (r10390)
> +++ trunk/BOOK/chapter06/procps.xml   Fri Dec 13 12:04:46 2013        (r10391)
> @@ -82,9 +82,7 @@
>
>   <screen><userinput remap="install">mv -v /usr/bin/pidof /bin
>   mv -v /usr/lib/libprocps.so.* /lib
> -ln -sfv ../../lib/libprocps.so.3.0.0 
> /usr/lib/libprocps.so</userinput></screen>
> -
> -<!-- Note to devs: check the library version for new releases -->
> +ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) 
> /usr/lib/libprocps.so</userinput></screen>
>
>     </sect2>
>
>
> Modified: trunk/BOOK/chapter06/readline.xml
> ==============================================================================
> --- trunk/BOOK/chapter06/readline.xml Thu Dec 12 22:55:02 2013        (r10390)
> +++ trunk/BOOK/chapter06/readline.xml Fri Dec 13 12:04:46 2013        (r10391)
> @@ -55,7 +55,7 @@
>
>       <para>Prepare Readline for compilation:</para>
>
> -<screen><userinput remap="configure">./configure --prefix=/usr 
> --libdir=/lib</userinput></screen>
> +<screen><userinput remap="configure">./configure 
> --prefix=/usr</userinput></screen>
>
>       <para>Compile the package:</para>
>
> @@ -81,17 +81,12 @@
>
>   <screen><userinput remap="install">make install</userinput></screen>
>
> -    <para>Now move the static libraries to a more appropriate 
> location:</para>
> +    <para>Now move the dynamic libraries to a more appropriate location
> +    and fix up some symbolic links:</para>
>
> -<screen><userinput remap="install">mv -v /lib/lib{readline,history}.a 
> /usr/lib</userinput></screen>
> -
> -    <para>Next, remove the <filename class="extension">.so</filename> files 
> in
> -    <filename class="directory">/lib</filename> and relink them into 
> <filename
> -    class="directory">/usr/lib</filename>:</para>
> -
> -<screen><userinput remap="install">rm -v /lib/lib{readline,history}.so
> -ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so
> -ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so</userinput></screen>
> +<screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* 
> /lib
> +ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
> +ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) 
> /usr/lib/libhistory.so</userinput></screen>
>
>       <para>If desired, install the documentation:</para>
>
>
> Modified: trunk/BOOK/chapter06/xz.xml
> ==============================================================================
> --- trunk/BOOK/chapter06/xz.xml       Thu Dec 12 22:55:02 2013        (r10390)
> +++ trunk/BOOK/chapter06/xz.xml       Fri Dec 13 12:04:46 2013        (r10391)
> @@ -63,7 +63,7 @@
>   <screen><userinput remap="install">make install
>   mv -v   /usr/bin/{unlzma,unxz,xzcat,lzma,xz} /bin
>   mv -v /usr/lib/liblzma.so.* /lib
> -ln -svf ../../lib/liblzma.so.&xz-version; 
> /usr/lib/liblzma.so</userinput></screen>
> +ln -svf ../../lib/$(readlink liblzma.so) 
> /usr/lib/liblzma.so</userinput></screen>
                        /usr/lib/

>     </sect2>
>
>
> Modified: trunk/BOOK/chapter06/zlib.xml
> ==============================================================================
> --- trunk/BOOK/chapter06/zlib.xml     Thu Dec 12 22:55:02 2013        (r10390)
> +++ trunk/BOOK/chapter06/zlib.xml     Fri Dec 13 12:04:46 2013        (r10391)
> @@ -63,7 +63,7 @@
>       <filename class="directory">/usr/lib</filename> will need to be 
> recreated:</para>
>
>   <screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
> -ln -sfv ../../lib/libz.so.&zlib-version; 
> /usr/lib/libz.so</userinput></screen>
> +ln -sfv ../../lib/$(readlink /usr/lib/libz.so) 
> /usr/lib/libz.so</userinput></screen>
>
>     </sect2>
>
>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to