Ignore:
Timestamp:
12/05/2023 05:12:55 AM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64
Children:
00de269
Parents:
6b6a1b9 (diff), dc8572f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/pkgmgt.xml

    r6b6a1b9 r73d91ac  
    6868        all the packages in their dependency order, we do not recommend
    6969        it.  </para>
     70      </listitem>
     71
     72      <listitem>
     73        <para>Reinstalling the same version of Glibc (&glibc-version; for
     74        this release of LFS) with patches should be safe when these patches
     75        do not change ABI and API.  When a security vulnerability is found
     76        in Glibc, we often need to apply such a patch to fix the
     77        vulnerability and reinstall Glibc.  Consult
     78        <ulink url='&lfs-root;lfs/advisories/'>LFS security
     79        advisories</ulink> if you are alerted for a published Glibc security
     80        vulnerability but unsure about the action to take.</para>
    7081      </listitem>
    7182
     
    153164        implemented this, and most packages use that command to install binary files and
    154165        libraries.  This means that you won't be troubled by this issue most of the time.
    155         However, the install process of some packages (notably Mozilla JS
     166        However, the install process of some packages (notably SpiderMonkey
    156167        in BLFS) just overwrites the file if it exists; this causes a crash. So
    157168        it's safer to save your work and close unneeded running processes
     
    186197      special program to manage the packages. Each package is installed in a
    187198      separate directory. For example, package foo-1.1 is installed in
    188       <filename class='directory'>/usr/pkg/foo-1.1</filename>
    189       and a symlink is made from <filename>/usr/pkg/foo</filename> to
    190       <filename class='directory'>/usr/pkg/foo-1.1</filename>. When
     199      <filename class='directory'>/opt/foo-1.1</filename>
     200      and a symlink is made from <filename>/opt/foo</filename> to
     201      <filename class='directory'>/opt/foo-1.1</filename>. When
    191202      a new version foo-1.2 comes along, it is installed in
    192       <filename class='directory'>/usr/pkg/foo-1.2</filename> and the previous
     203      <filename class='directory'>/opt/foo-1.2</filename> and the previous
    193204      symlink is replaced by a symlink to the new version.</para>
    194205
    195206      <para>Environment variables such as <envar>PATH</envar>,
    196       <envar>LD_LIBRARY_PATH</envar>, <envar>MANPATH</envar>,
    197       <envar>INFOPATH</envar> and <envar>CPPFLAGS</envar> need to be expanded to
    198       include <filename>/usr/pkg/foo</filename>. If you install more than a few packages,
    199       this scheme becomes unmanageable.</para>
    200 
     207      <envar>MANPATH</envar>, <envar>INFOPATH</envar>,
     208      <envar>PKG_CONFIG_PATH</envar>, <envar>CPPFLAGS</envar>,
     209      <envar>LDFLAGS</envar>, and the configuration file
     210      <filename>/etc/ld.so.conf</filename> may need to be expanded to
     211      include the corresponding subdirectories in
     212      <filename class='directory'>/opt/foo-x.y</filename>.</para>
     213
     214      <para>
     215        This scheme is used by the BLFS book to install some very large
     216        packages to make it easier to upgrade them.  If you install more
     217        than a few packages, this scheme becomes unmanageable.  And some
     218        packages (for example Linux API headers and Glibc) may not work well
     219        with this scheme.
     220        <emphasis role='bold'>Never use this scheme system-wide.</emphasis>
     221      </para>
    201222    </sect3>
    202223
Note: See TracChangeset for help on using the changeset viewer.