From aec038d85e05e4e18283593756e85398be6220f1 Mon Sep 17 00:00:00 2001 From: Poltern <2363951+Poltern@users.noreply.github.com> Date: Wed, 31 Jan 2024 21:41:07 +0500 Subject: [PATCH] Packages update and small fix --- Makefile | 66 +++++++++++++++--------------- appendices/dependencies.xml | 2 +- chapter01/changelog.xml | 44 ++++++++++++++++++++ chapter01/whatsnew.xml | 20 ++++++---- chapter03/patches.xml | 6 +-- chapter07/python.xml | 17 ++++---- chapter08/gcc.xml | 2 +- chapter08/libtool.xml | 5 ++- chapter08/pkgconf.xml | 4 +- chapter10/kernel/kernel.version | 2 +- packages.ent | 71 +++++++++++++++++---------------- patches.ent | 4 ++ 12 files changed, 149 insertions(+), 94 deletions(-) diff --git a/Makefile b/Makefile index 27e6356..6de06f4 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,4 @@ # vim:ts=3 -#BASEDIR = ~/lfs-book -#SYSDDIR = ~/lfs-systemd -#DUMPDIR = ~/lfs-commands RENDERTMP = $(HOME)/tmp CHUNK_QUIET = 1 ROOT_ID = @@ -24,15 +21,15 @@ ifneq ($(REV), sysv) endif ifeq ($(REV), sysv) - BASEDIR ?= ~/public_html/lfs-book + BASEDIR ?= $(HOME)/public_html/lfs-book PDF_OUTPUT ?= LFS-BOOK.pdf NOCHUNKS_OUTPUT ?= LFS-BOOK.html - DUMPDIR ?= ~/lfs-commands + DUMPDIR ?= $(HOME)/lfs-commands else - BASEDIR ?= ~/public_html/lfs-systemd + BASEDIR ?= $(HOME)/public_html/lfs-systemd PDF_OUTPUT ?= LFS-SYSD-BOOK.pdf NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html - DUMPDIR ?= ~/lfs-sysd-commands + DUMPDIR ?= $(HOME)/lfs-sysd-commands endif book: validate profile-html @@ -47,7 +44,8 @@ book: validate profile-html @echo "Copying CSS code and images..." $(Q)mkdir -p $(BASEDIR)/stylesheets $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets - $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html + $(Q)sed -e 's|../stylesheet|stylesheet|' \ + -i $(BASEDIR)/index.html $(Q)mkdir -p $(BASEDIR)/images $(Q)cp images/*.png $(BASEDIR)/images @@ -55,11 +53,10 @@ book: validate profile-html @echo "Running Tidy and obfuscate.sh..." $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \ tidy -config tidy.conf $$filename; \ - true; \ /bin/bash obfuscate.sh $$filename; \ - sed -e "s@text/html@application/xhtml+xml@g" \ + sed -e "s|text/html|application/xhtml+xml|g" \ -i $$filename; \ - done; + done $(Q)$(MAKE) --no-print-directory wget-list md5sums @@ -107,16 +104,16 @@ nochunks: validate profile-html --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \ stylesheets/lfs-nochunks.xsl \ $(RENDERTMP)/lfs-html.xml -# $(RENDERTMP)/lfs-html2.xml @echo "Running Tidy..." $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true @echo "Running obfuscate.sh..." $(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) - $(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT) - $(Q)sed -i -e "s@../wget-list@wget-list@" $(BASEDIR)/$(NOCHUNKS_OUTPUT) - $(Q)sed -i -e "s@../md5sums@md5sums@" $(BASEDIR)/$(NOCHUNKS_OUTPUT) + $(Q)sed -e "s|text/html|application/xhtml+xml|g" \ + -e "s|../wget-list|wget-list|" \ + -e "s|../md5sums|md5sums|" \ + -i $(BASEDIR)/$(NOCHUNKS_OUTPUT) @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)" @@ -135,16 +132,16 @@ validate: tmpdir version @echo "Adjusting for revision $(REV)..." $(Q)xsltproc --nonet \ --xinclude \ - --output $(RENDERTMP)/lfs-html2.xml \ --stringparam profile.revision $(REV) \ + --output $(RENDERTMP)/lfs-html2.xml \ stylesheets/lfs-xsl/profile.xsl \ index.xml @echo "Validating the book..." - $(Q)xmllint --nonet \ - --noent \ - --postvalid \ - -o $(RENDERTMP)/lfs-full.xml \ + $(Q)xmllint --nonet \ + --encode UTF-8 \ + --postvalid \ + --output $(RENDERTMP)/lfs-full.xml \ $(RENDERTMP)/lfs-html2.xml $(Q)rm -f appendices/*.script @@ -159,42 +156,45 @@ profile-html: stylesheets/lfs-xsl/profile.xsl \ $(RENDERTMP)/lfs-full.xml +DOWNLOADS_DEP = chapter03/packages.xml chapter03/patches.xml \ + packages.ent patches.ent general.ent + wget-list: $(BASEDIR)/wget-list $(BASEDIR)/wget-list-$(REV) -$(BASEDIR)/wget-list: stylesheets/wget-list.xsl chapter03/chapter03.xml \ - packages.ent patches.ent general.ent +$(BASEDIR)/wget-list: stylesheets/wget-list.xsl $(DOWNLOADS_DEP) @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..." $(Q)mkdir -p $(BASEDIR) - $(Q)xsltproc --xinclude --nonet \ + $(Q)xsltproc --nonet \ + --xinclude \ --output $(BASEDIR)/wget-list \ - stylesheets/wget-list.xsl \ + stylesheets/wget-list.xsl \ chapter03/chapter03.xml -$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl \ - chapter03/chapter03.xml \ - packages.ent patches.ent general.ent - $(Q)xsltproc --nonet --xinclude \ +$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP) + $(Q)xsltproc --nonet \ + --xinclude \ --stringparam profile.revision $(REV) \ --output $(RENDERTMP)/wget-list.xml \ stylesheets/lfs-xsl/profile.xsl \ chapter03/chapter03.xml - $(Q)xsltproc --xinclude --nonet \ + + $(Q)xsltproc --nonet \ --output $(BASEDIR)/wget-list-$(REV) \ stylesheets/wget-list.xsl \ $(RENDERTMP)/wget-list.xml md5sums: $(BASEDIR)/md5sums -$(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml \ - packages.ent patches.ent +$(BASEDIR)/md5sums: stylesheets/wget-list.xsl $(DOWNLOADS_DEP) @echo "Generating consolidated md5sum file at $(BASEDIR)/md5sums ..." $(Q)mkdir -p $(BASEDIR) - $(Q)xsltproc --nonet --xinclude \ + $(Q)xsltproc --nonet \ + --xinclude \ --stringparam profile.revision $(REV) \ --output $(RENDERTMP)/md5sum.xml \ stylesheets/lfs-xsl/profile.xsl \ chapter03/chapter03.xml - $(Q)xsltproc --xinclude --nonet \ + $(Q)xsltproc --nonet \ --output $(BASEDIR)/md5sums \ stylesheets/md5sum.xsl \ $(RENDERTMP)/md5sum.xml diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 31df484..255d9ae 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -1044,7 +1044,7 @@ &external; - Нет + libxml2 diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index e42dd9a..6251c2c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,50 @@ 2024-01-21 + + [xry111] - Apply upstream fix for pkgconf-2.1.0 regression. + Fixes #5414. + + + [xry111] - Update to jinja2-3.1.3 (security fix). Fixes + #5411. + + + [xry111] - Update to bc-6.7.5. Fixes + #5408. + + + [xry111] - Update to attr-2.5.2. Fixes + #5412. + + + [xry111] - Update to ncurses-6.4-20230520 (security fix). + Fixes #5416. + + + [xry111] - Update to markupsafe-2.1.4. Fixes + #5418. + + + [xry111] - Update to linux-6.7.1. Fixes + #5406. + + + [xry111] - Update to iproute2-6.7.0. Fixes + #5410. + + + [xry111] - Update to vim-9.1.0041. Addresses + #4500. + + + [xry111] - Update to iana-etc-20240117. Addresses + #5006. + + + [xry111] - Update to shadow-4.14.3. Fixes + #5413. + [xry111] - Fix CVE-2024-0684 for coreutils-9.4. Fixes #5417. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 6bbf2d3..692bb1d 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -28,9 +28,9 @@ - + Autoconf-&autoconf-version; @@ -133,9 +133,9 @@ IPRoute2-&iproute2-version; - + Kbd-&kbd-version; @@ -178,9 +178,9 @@ - + Meson-&meson-version; @@ -190,9 +190,9 @@ MPFR-&mpfr-version; - + @@ -296,6 +296,10 @@ &glibc-upstream-fixes-patch; + + &pkgconf-upstream-fix-patch; + + &readline-fixes-patch; diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 30f1889..d1b24c0 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -118,10 +118,10 @@ --> diff --git a/chapter07/python.xml b/chapter07/python.xml index 97ad121..bd53823 100644 --- a/chapter07/python.xml +++ b/chapter07/python.xml @@ -44,9 +44,9 @@ Установка пакета Python - Есть два пакета, имена которых начинаются с python. - Нужный архив это Python-&python-version;.tar.xz (обратите - внимание на заглавную первую букву). + Существует два пакета, имена которых начинаются с префикса python. + Сейчас необходимо распаковать файл Python-&python-version;.tar.xz + (обратите внимание на заглавную первую букву). Подготовка Python к компиляции: @@ -81,12 +81,11 @@ Некоторые модули Python 3 не могут быть собраны сейчас, потому что зависимости - еще не установлены. Система сборки пытается их собрать, в результате компиляция - некоторых файлов завершится ошибкой, и может показаться, что сообщение компилятора - указывает на фатальную ошибку. Сообщение следует проигнорировать. - Просто убедитесь, что команда make верхнего уровня не - завершилась ошибкой. Дополнительные модули сейчас не нужны, и они будут собраны - в . + еще не установлены. Для модуля ssl выводится сообщение + Python требует OpenSSL 1.1.1 или новее. + Сообщение следует проигнорировать. Просто убедитесь, что команда + make верхнего уровня не завершилась ошибкой. Дополнительные + модули сейчас не нужны, и они будут собраны в . diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 6b9cd77..dfd4861 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -521,7 +521,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib libcc1 - Библиотека предварительной обработки C + Библиотека, которая позволяет GDB использовать GCC libcc1 diff --git a/chapter08/libtool.xml b/chapter08/libtool.xml index 795182f..f1d46a6 100644 --- a/chapter08/libtool.xml +++ b/chapter08/libtool.xml @@ -56,8 +56,9 @@ Известно, что пять тестов в среде сборки LFS завершаются неудачно из-за циклической зависимости, но эти тесты проходят успешно, если запустить их повторно - после установки automake. Кроме того, в grep-3.8 два теста вызовут предупреждение - для регулярных выражений, несовместимых с POSIX и завершатся с ошибкой. + после установки automake. Кроме того, в grep-3.8 или более поздней версии два теста + вызовут предупреждение для регулярных выражений, несовместимых с POSIX и завершатся + ошибкой. Установите пакет: diff --git a/chapter08/pkgconf.xml b/chapter08/pkgconf.xml index b4fcfa3..25f12e3 100644 --- a/chapter08/pkgconf.xml +++ b/chapter08/pkgconf.xml @@ -44,9 +44,9 @@ Установка пакета Pkgconf - Исправлена регрессия в pkgconf-2.0.3, нарушающая работу пакетов BLFS: + Исправлена регрессия в pkgconf-2.1.0, нарушающая работу пакетов BLFS: - sed -i 's/str\(cmp.*package\)/strn\1, strlen(pkg->why)/' cli/main.c + patch -Np1 -i ../&pkgconf-upstream-fix-patch; Подготовьте Pkgconf к компиляции: diff --git a/chapter10/kernel/kernel.version b/chapter10/kernel/kernel.version index e411592..06a7659 100644 --- a/chapter10/kernel/kernel.version +++ b/chapter10/kernel/kernel.version @@ -1 +1 @@ -6.6.3 +6.7.1 diff --git a/packages.ent b/packages.ent index 8411a44..b76bec9 100644 --- a/packages.ent +++ b/packages.ent @@ -21,10 +21,10 @@ - - + + - + @@ -57,10 +57,10 @@ - - + + - + @@ -317,10 +317,10 @@ - - + + - + @@ -341,19 +341,19 @@ - - + + - + - - + + - - + + @@ -430,13 +430,13 @@ - - + + - + - + + + + @@ -636,10 +639,10 @@ - - + + - + @@ -735,13 +738,13 @@ - + - - + + - + diff --git a/patches.ent b/patches.ent index 1bcd45d..d27c717 100644 --- a/patches.ent +++ b/patches.ent @@ -22,6 +22,10 @@ + + + +