Commit Graph

26 Commits

Author SHA1 Message Date
Xi Ruoyao
343ab1388a
Add info about how to upgrade Glibc on a running system
Let's change our policy to match other "rolling release" distros and
ease the procedure to fix Glibc security vulnerabilities.

Squashed the commits in xry111/update-glibc branch to keep the history
clean.

Co-Authored-By: Pierre Labastie <pierre.labastie@neuf.fr>
Co-Authored-By: Douglas R. Reno <renodr@linuxfromscratch.org>
2024-02-02 09:03:51 +08:00
Xi Ruoyao
d3b0a0842e
pkgmgt: Upgrading Linux API headers cannot be dangerous
Per a discussion in the team, we only consider an upgradation dangerous
if it may render the system unusable.  "Causing something not able to
build" is never considered dangerous.  Thus upgrading some headers
cannot be dangerous.

The Glibc portion will need an update too (it can be upgraded safely
with some caution) to ease security updates.  But let's do the easy
change first...
2024-02-01 03:31:25 +08:00
Pierre Labastie
7152faa5fa Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
Xi Ruoyao
d11686c6f0
pkgmgt: Update the desc for "separate directories"
There seems some guy overusing this method so we should add more
caveats.

- Use /opt/foo-x.y instead of /usr/pkg/foo-x.y.  /opt/foo-x.y is used in
  BLFS for Rustc, Qt5, etc. and /usr/pkg is not FHS-compliant.
- Use /etc/ld.so.conf and LDFLAGS instead of LD_LIBRARY_PATH.  Relying
  on LD_LIBRARY_PATH is generally a bad idea, and we also don't use it
  in BLFS for /opt packages.
- Discourage this method for general use, mention it may not work for
  vital packages like Glibc.
2023-11-08 17:30:59 +08:00
Xi Ruoyao
7f36b16e72
pkgmgt: Sync the naming of SpiderMonkey with BLFS 2023-10-24 21:10:18 +08:00
Xi Ruoyao
4d634048a1
pkgmgt: Reinstall the same version of Glibc should be safe 2023-10-05 14:34:07 +08:00
Xi Ruoyao
5e7593e6f0
pkgmgmt: Revert some of reword for "dependency hell" from Bruce
Use "library name" (instead of "library version") for SONAME (for now).
And "conflicting locations" may not be a problem if the symbol is at two
locations but they are exactly same (or ABI compatible).

For the details see lfs-dev discussion.

The current word is still not perfect (we've not defined "the name of a
shared library" at all), so I guess we'll need to make a major revision
for the entire "upgrading issue with shared libraries" thing in the
future.
2023-06-04 19:31:59 +08:00
Bruce Dubbs
360371a30f Minor rewording 2023-05-28 19:57:28 -05:00
Bruce Dubbs
d0da969c43 Reword library conflict paragraph. 2023-05-27 17:07:58 -05:00
Xi Ruoyao
55a29ccad2
pkgmgt: Mention the "dependency hell" issue 2023-05-27 19:05:06 +08:00
David Bryant
7ae2811988 Standardize spelling of "userspace". 2022-12-24 10:00:23 -06:00
Xi Ruoyao
f8b1860631
pkgmgt: reword the description of cfg files handling
Let's not miss the point...
2022-11-18 14:13:12 +08:00
David Bryant
091d624df5 Correct capitalization, spelling, grammar, and idiom. Tighten the
prose by removing some circumlocutions.
2022-11-17 12:08:13 -06:00
Xi Ruoyao
6582ddc527
pkgmgt: fix two typos 2022-10-02 21:02:16 +08:00
David Bryant
4349661a7f Corrected grammatical errors and cleaned up English idiom. 2022-10-01 17:03:20 -05:00
Xi Ruoyao
fb66c4c583
some http -> https changes 2022-09-05 09:52:05 +08:00
Xi Ruoyao
ccb08fafc8
pkgmgmt: for systemd revision, add how to restart systemd without reboot 2022-03-16 15:49:35 +08:00
Pierre Labastie
365b8c74b1 Move a misplaced role="nodump"
That lead jhalfs to create a useless 801-pkgmgt script.
2021-09-13 07:35:53 +02:00
Bruce Dubbs
11d5dee3a4 Minor instruction changes and text updates.
Move coreutils library from /usr/libexec to /usr/lib in both
Chapter 6 and Chapter 8.

Text updates in chapter08/pkgmgt.xml and chapter09/locale.xml.

Restore deletion of hanging test in chapter08/util-linux.xml.

Text changes in stripping and make instruction compatible with jhalfs.
2021-07-27 14:11:38 -05:00
Xi Ruoyao
de28837402
Hopefully, complete strip workaround
In stripping, /usr/bin/bash, /usr/bin/find, and /usr/bin/strip are
running.  Strip them, and all libraries used by them in /tmp, then
install them back.

We can't use this for all libraries or binaries: the process above
discouples hard links (for example /usr/bin/perl and perl5.34.0).  So
unfortunately the stripping instruction is now a stupidly long bash
script...
2021-07-26 19:34:27 +08:00
Xi Ruoyao
7aee3182a0
pkg management: add a note about kernel upgrade 2021-06-19 16:32:43 +08:00
Xi Ruoyao
59fef4c47e
generalize ken's note for shared library update, ...
and move it into package management section
2021-05-16 02:55:02 +08:00
Xi Ruoyao
9a178619b9
add a paragraph for "downgrading issue" in package management page 2021-04-23 01:38:47 +08:00
Bruce Dubbs
ba82c18266 Update to gettext-0.21.
Update to binutils-2.35. 
Update to gcc-10.2.0. 
Update to check-0.15.1. 
Update to bison-3.7.1. 
Update to util-linux 2.36.0. 
Update to libcap-2.42. 
Update to linux-5.7.12. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12007 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-08-04 20:14:32 +00:00
Bruce Dubbs
6a156bab1b Mostly text updates in Chapter 8.
There are a couple of minor command changes.



git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11924 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-12 04:40:07 +00:00
Bruce Dubbs
fcc027677d Initial commit of alternative cross LFS
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-07 20:16:00 +00:00