Changeset c573b97


Ignore:
Timestamp:
04/22/2021 10:58:56 AM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/usr-move
Children:
8e65db25
Parents:
ac02a08
Message:

usr-move: some adjustments of file location are no longer needed for systemd

Files:
24 edited

Legend:

Unmodified
Added
Removed
  • chapter06/bash.xml

    rac02a08 rc573b97  
    7575<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    7676
    77     <para>Move the executable to where it is expected:</para>
     77    <para revision="sysv">Move the executable to where it is expected:</para>
    7878
    79 <screen><userinput remap="install">mv $LFS/usr/bin/bash $LFS/bin/bash</userinput></screen>
     79<screen revision="sysv"><userinput remap="install">mv $LFS/usr/bin/bash $LFS/bin/bash</userinput></screen>
    8080
    8181    <para>Make a link for the programs that use <command>sh</command> for
  • chapter06/coreutils.xml

    rac02a08 rc573b97  
    8484    programs harcode executable locations:</para>
    8585
    86 <screen><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin
     86<screen revision="sysv"><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin
    8787mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm}        $LFS/bin
    8888mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname}               $LFS/bin
    89 mv -v $LFS/usr/bin/{head,nice,sleep,touch}                    $LFS/bin
    90 mv -v $LFS/usr/bin/chroot                                     $LFS/usr/sbin
     89mv -v $LFS/usr/bin/{head,nice,sleep,touch}                    $LFS/bin</userinput></screen>
     90<screen><userinput remap="install">mv -v $LFS/usr/bin/chroot                                     $LFS/usr/sbin
    9191mkdir -pv $LFS/usr/share/man/man8
    9292mv -v $LFS/usr/share/man/man1/chroot.1                        $LFS/usr/share/man/man8/chroot.8
  • chapter06/file.xml

    rac02a08 rc573b97  
    9191<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    9292
    93     <para>Move a shared library into its final location in the LFS system,
     93    <para revision="sysv">Move a shared library into its final location in the LFS system,
    9494    and recreate the symlink for it:</para>
    9595
    96 <screen><userinput remap="install">mv -v $LFS/usr/lib/libmagic.so.* $LFS/lib
     96<screen revision="sysv"><userinput remap="install">mv -v $LFS/usr/lib/libmagic.so.* $LFS/lib
    9797ln -sfv ../../lib/$(readlink /usr/lib/libmagic.so) $LFS/usr/lib/libmagic.so</userinput></screen>
    9898
  • chapter06/findutils.xml

    rac02a08 rc573b97  
    5858<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    5959
    60     <para>Move the executable to its final expected location:</para>
     60    <para revision="sysv">Move the executable to its final expected location:</para>
    6161
    62 <screen><userinput remap="install">mv -v $LFS/usr/bin/find $LFS/bin
     62<screen revision="sysv"><userinput remap="install">mv -v $LFS/usr/bin/find $LFS/bin
    6363sed -i 's|find:=${BINDIR}|find:=/bin|' $LFS/usr/bin/updatedb</userinput></screen>
    6464
  • chapter06/gzip.xml

    rac02a08 rc573b97  
    5656<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    5757
    58     <para>Move the executable to its final expected location:</para>
     58    <para revision="sysv">Move the executable to its final expected location:</para>
    5959
    60 <screen><userinput remap="install">mv -v $LFS/usr/bin/gzip $LFS/bin</userinput></screen>
     60<screen revision="sysv"><userinput remap="install">mv -v $LFS/usr/bin/gzip $LFS/bin</userinput></screen>
    6161
    6262  </sect2>
  • chapter06/ncurses.xml

    rac02a08 rc573b97  
    149149    </variablelist>
    150150
    151     <para>Move the shared libraries to the
     151    <para revision="sysv">Move the shared libraries to the
    152152    <filename class="directory">/lib</filename> directory, where they are
    153153    expected to reside:</para>
    154154
    155 <screen><userinput remap="install">mv -v $LFS/usr/lib/libncursesw.so.6* $LFS/lib</userinput></screen>
     155<screen revision="sysv"><userinput remap="install">mv -v $LFS/usr/lib/libncursesw.so.6* $LFS/lib</userinput></screen>
    156156
    157     <para>Because the libraries have been moved, one symlink points to
     157    <para revision="sysv">Because the libraries have been moved, one symlink points to
    158158    a non-existent file. Recreate it:</para>
    159159
    160 <screen><userinput remap="install">ln -sfv ../../lib/$(readlink $LFS/usr/lib/libncursesw.so) $LFS/usr/lib/libncursesw.so</userinput></screen>
     160<screen revision="sysv"><userinput remap="install">ln -sfv ../../lib/$(readlink $LFS/usr/lib/libncursesw.so) $LFS/usr/lib/libncursesw.so</userinput></screen>
    161161
    162162
  • chapter06/xz.xml

    rac02a08 rc573b97  
    6060<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    6161
    62     <para>Make sure that all essential files are in the correct directory:</para>
     62    <para revision="sysv">Make sure that all essential files are in the correct directory:</para>
    6363
    64 <screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat}  $LFS/bin
     64<screen revision="sysv"><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat}  $LFS/bin
    6565mv -v $LFS/usr/lib/liblzma.so.*                       $LFS/lib
    6666ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so</userinput></screen>
  • chapter08/acl.xml

    rac02a08 rc573b97  
    7070<screen><userinput remap="install">make install</userinput></screen>
    7171
    72     <para>The shared library needs to be moved to
     72    <para revision="sysv">The shared library needs to be moved to
    7373    <filename class="directory">/lib</filename>, and as a result the
    7474    <filename class="extension">.so</filename> file in
    7575    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    7676
    77 <screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
     77<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
    7878ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
    7979
  • chapter08/attr.xml

    rac02a08 rc573b97  
    6969<screen><userinput remap="install">make install</userinput></screen>
    7070
    71     <para>The shared library needs to be moved to
     71    <para revision="sysv">The shared library needs to be moved to
    7272    <filename class="directory">/lib</filename>, and as a result the
    7373    <filename class="extension">.so</filename> file in
    7474    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    7575
    76 <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
     76<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
    7777ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
    7878
  • chapter08/bash.xml

    rac02a08 rc573b97  
    8585EOF</userinput></screen>
    8686
    87     <para>Install the package and move the main executable to
     87    <para>Install the package:</para>
     88
     89<screen><userinput remap="install">make install</userinput></screen>
     90
     91    <para revision="sysv">Move the main executable to
    8892    <filename class='directory'>/bin</filename>:</para>
    8993
    90 <screen><userinput remap="install">make install
    91 mv -vf /usr/bin/bash /bin</userinput></screen>
     94<screen revision="sysv"><userinput remap="install">mv -vf /usr/bin/bash /bin</userinput></screen>
    9295
    9396    <para>Run the newly compiled <command>bash</command> program (replacing the one that is
  • chapter08/coreutils.xml

    rac02a08 rc573b97  
    143143    <para>Move programs to the locations specified by the FHS:</para>
    144144
    145 <screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
     145<screen revision="sysv"><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
    146146mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
    147 mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
    148 mv -v /usr/bin/chroot /usr/sbin
     147mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin</userinput></screen>
     148
     149<screen><userinput remap="install">mv -v /usr/bin/chroot /usr/sbin
    149150mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
    150151sed -i 's/"1"/"8"/' /usr/share/man/man8/chroot.8</userinput></screen>
     
    157158    maintain FHS compliance:</para>
    158159
    159 <screen><userinput remap="install">mv -v /usr/bin/{head,nice,sleep,touch} /bin</userinput></screen>
     160<screen revision="sysv"><userinput remap="install">mv -v /usr/bin/{head,nice,sleep,touch} /bin</userinput></screen>
    160161
    161162  </sect2>
  • chapter08/dbus.xml

    rac02a08 rc573b97  
    9898<screen><userinput remap="install">make install</userinput></screen>
    9999
    100     <para>The shared library needs to be moved to
     100    <para revision="sysv">The shared library needs to be moved to
    101101    <filename class="directory">/lib</filename>, and as a result the
    102102    <filename class="extension">.so</filename> file in
    103103    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    104104
    105 <screen><userinput remap="install">mv -v /usr/lib/libdbus-1.so.* /lib
     105<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/libdbus-1.so.* /lib
    106106ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>
    107107
  • chapter08/file.xml

    rac02a08 rc573b97  
    5858<screen><userinput remap="install">make install</userinput></screen>
    5959
    60     <para><command>/bin/more</command> from util-linux will link to
     60    <para revision="sysv"><command>/bin/more</command> from util-linux will link to
    6161    <filename class="libraryfile">libmagic.so</filename>, so the shared
    6262    library should be moved to <filename class="directory">/lib</filename>,
     
    6565    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    6666
    67 <screen><userinput remap="install">mv -v /usr/lib/libmagic.so.* /lib
     67<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/libmagic.so.* /lib
    6868ln -sfv ../../lib/$(readlink /usr/lib/libmagic.so) /usr/lib/libmagic.so</userinput></screen>
    6969
  • chapter08/findutils.xml

    rac02a08 rc573b97  
    8282    explicit path:</para>
    8383
    84     <para revision="systemd"> Some packages in BLFS and beyond expect the
    85     <command>find</command> program in <filename
    86     class="directory">/bin</filename>, so make sure it's placed there:</para>
    87 
    88 <screen><userinput remap="install">mv -v /usr/bin/find /bin
     84<screen revision="sysv"><userinput remap="install">mv -v /usr/bin/find /bin
    8985sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
    9086
  • chapter08/gzip.xml

    rac02a08 rc573b97  
    5858<screen><userinput remap="install">make install</userinput></screen>
    5959
    60     <para>Move a program that needs to be on the root filesystem:</para>
    61 
    62 <screen><userinput remap="install">mv -v /usr/bin/gzip /bin</userinput></screen>
     60    <para revision="sysv">Move a program that needs to be on the root filesystem:</para>
     61
     62<screen revision="sysv"><userinput remap="install">mv -v /usr/bin/gzip /bin</userinput></screen>
    6363
    6464  </sect2>
  • chapter08/inetutils.xml

    rac02a08 rc573b97  
    115115<screen><userinput remap="install">make install</userinput></screen>
    116116
    117     <para>Move some programs so they are available if <filename
     117    <para revision="sysv">Move some programs so they are available if <filename
    118118    class='directory'>/usr</filename> is not accessible:</para>
    119119
    120 <screen><userinput remap="install">mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin
     120<screen revision="sysv"><userinput remap="install">mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin
    121121mv -v /usr/bin/ifconfig /sbin</userinput></screen>
     122
     123    <para revision="systemd">Move a program to the proper location:</para>
     124
     125<screen revision="systemd"><userinput remap="install">mv -v /{,s}bin/ifconfig</userinput></screen>
    122126
    123127  </sect2>
  • chapter08/libcap.xml

    rac02a08 rc573b97  
    7070<screen><userinput remap="test">make test</userinput></screen>
    7171
    72     <para>Install the package and make sure the essential libraries are in
     72    <para>Install the package:</para>
     73
     74<screen><userinput remap="install">make prefix=/usr lib=lib install</userinput></screen>
     75
     76    <para revision="sysv">Make sure the essential libraries are in
    7377    the correct directory:</para>
    7478
    75 <screen><userinput remap="install">make prefix=/usr lib=lib install
    76 for libname in cap psx; do
     79<screen revision="sysv"><userinput remap="install">for libname in cap psx; do
    7780    mv -v /usr/lib/lib${libname}.so.* /lib
    7881    ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so
  • chapter08/ncurses.xml

    rac02a08 rc573b97  
    101101<screen><userinput remap="install">make install</userinput></screen>
    102102
    103     <para>Move the shared libraries to the
     103    <para revision="sysv">Move the shared libraries to the
    104104    <filename class="directory">/lib</filename> directory, where they are
    105105    expected to reside:</para>
    106106
    107 <screen><userinput remap="install">mv -v /usr/lib/libncursesw.so.6* /lib</userinput></screen>
    108 
    109     <para>Because the libraries have been moved, one symlink points to
     107<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/libncursesw.so.6* /lib</userinput></screen>
     108
     109    <para revision="sysv">Because the libraries have been moved, one symlink points to
    110110    a non-existent file. Recreate it:</para>
    111111
    112 <screen><userinput remap="install">ln -sfv ../../lib/$(readlink /usr/lib/libncursesw.so) /usr/lib/libncursesw.so</userinput></screen>
     112<screen revision="sysv"><userinput remap="install">ln -sfv ../../lib/$(readlink /usr/lib/libncursesw.so) /usr/lib/libncursesw.so</userinput></screen>
    113113
    114114    <para>Many applications still expect the linker to be able to find
  • chapter08/procps.xml

    rac02a08 rc573b97  
    103103<screen><userinput remap="install">make install</userinput></screen>
    104104
    105     <para>Finally, move essential libraries to a location that can be found
     105    <para revision="sysv">Finally, move essential libraries to a location that can be found
    106106    if <filename class="directory">/usr</filename> is not mounted.</para>
    107107
    108 <screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib
     108<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib
    109109ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen>
    110110
  • chapter08/psmisc.xml

    rac02a08 rc573b97  
    5656<screen><userinput remap="install">make install</userinput></screen>
    5757
    58     <para>Finally, move the <command>killall</command> and <command>fuser</command>
     58    <para revision="sysv">Finally, move the <command>killall</command> and <command>fuser</command>
    5959    programs to the location specified by the FHS:</para>
    6060
    61 <screen><userinput remap="install">mv -v /usr/bin/fuser   /bin
     61<screen revision="sysv"><userinput remap="install">mv -v /usr/bin/fuser   /bin
    6262mv -v /usr/bin/killall /bin</userinput></screen>
    6363
  • chapter08/readline.xml

    rac02a08 rc573b97  
    9595<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
    9696
    97     <para>Now move the dynamic libraries to a more appropriate location
     97    <para revision="sysv">Now move the dynamic libraries to a more appropriate location
    9898    and fix up symbolic links:</para>
    9999
    100 <screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
     100<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
    101101ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
    102102ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
  • chapter08/xz.xml

    rac02a08 rc573b97  
    5959<screen><userinput remap="test">make check</userinput></screen>
    6060
    61   <para>Install the package and make sure that all essential files are in the
     61  <para revision="sysv">Install the package and make sure that all essential files are in the
    6262  correct directory:</para>
    6363
    64 <screen><userinput remap="install">make install
     64<screen revision="sysv"><userinput remap="install">make install
    6565mv -v   /usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} /bin
    66 mv -v /usr/lib/liblzma.so.* /lib
     66mv -v   /usr/lib/liblzma.so.* /lib
    6767ln -svf ../../lib/$(readlink /usr/lib/liblzma.so) /usr/lib/liblzma.so</userinput></screen>
    6868
  • chapter08/zlib.xml

    rac02a08 rc573b97  
    5858<screen><userinput remap="install">make install</userinput></screen>
    5959
    60     <para>The shared library needs to be moved to
     60    <para revision="sysv">The shared library needs to be moved to
    6161    <filename class="directory">/lib</filename>, and as a result the
    6262    <filename class="extension">.so</filename> file in
    6363    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    6464
    65 <screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
     65<screen revision="sysv"><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
    6666ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
    6767
  • chapter08/zstd.xml

    rac02a08 rc573b97  
    5555<screen><userinput remap="install">make prefix=/usr install</userinput></screen>
    5656
    57     <para>Remove the static library and move the shared library to
     57    <para>Remove the static library:</para>
     58<screen><userinput remap="install">rm -v /usr/lib/libzstd.a</userinput></screen>
     59
     60    <para revision="sysv">Move the shared library to
    5861    <filename class="directory">/lib</filename>. Also, the
    5962    <filename class="extension">.so</filename> file in
    6063    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    6164
    62 <screen><userinput remap="install">rm -v /usr/lib/libzstd.a
     65<screen revision="sysv"><userinput remap="install">
    6366mv -v /usr/lib/libzstd.so.* /lib
    6467ln -sfv ../../lib/$(readlink /usr/lib/libzstd.so) /usr/lib/libzstd.so</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.