[lfs] 02/02: Changes required for gcc-15

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch multilib
in repository lfs.

commit 833a5234fff1bb1483dc9a4ddd36e4394ff08fe1
Author: Thomas Trepl <[email protected]>
AuthorDate: Mon Apr 28 08:43:37 2025 +0200

    Changes required for gcc-15
---
 chapter03/patches.xml |  6 +++---
 chapter06/m4.xml      |  2 ++
 chapter08/bc.xml      |  6 +++---
 chapter08/expect.xml  |  4 ++--
 chapter08/gcc.xml     |  5 +----
 chapter08/gmp.xml     |  2 ++
 chapter08/m4.xml      |  3 +++
 packages.ent          | 24 ++++++++++++------------
 patches.ent           |  6 +++---
 9 files changed, 31 insertions(+), 27 deletions(-)

diff --git a/chapter03/patches.xml b/chapter03/patches.xml
index dd592f663..9fece4dd9 100644
--- a/chapter03/patches.xml
+++ b/chapter03/patches.xml
@@ -61,10 +61,10 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Expect GCC14 Patch - <token>&expect-gcc14-patch-size;</token>:</term>
+      <term>Expect GCC15 Patch - <token>&expect-gcc15-patch-size;</token>:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&expect-gcc14-patch;"/></para>
-        <para>MD5 sum: <literal>&expect-gcc14-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&expect-gcc15-patch;"/></para>
+        <para>MD5 sum: <literal>&expect-gcc15-patch-md5;</literal></para>
       </listitem>
    </varlistentry>
 
diff --git a/chapter06/m4.xml b/chapter06/m4.xml
index 0bbd08079..25c16939a 100644
--- a/chapter06/m4.xml
+++ b/chapter06/m4.xml
@@ -50,6 +50,8 @@ echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h</userinput></screen>
 -->
     <para>Prepare M4 for compilation:</para>
 
+<screen><userinput remap="pre">sed 's/\[\[__nodiscard__]]//' -i lib/config.hin</userinput></screen>
+
 <screen><userinput remap="configure">./configure --prefix=/usr   \
             --host=$LFS_TGT \
             --build=$(build-aux/config.guess)</userinput></screen>
diff --git a/chapter08/bc.xml b/chapter08/bc.xml
index 3d8cd9983..f22affb30 100644
--- a/chapter08/bc.xml
+++ b/chapter08/bc.xml
@@ -43,15 +43,15 @@
 
     <para>Prepare Bc for compilation:</para>
 
-<screen><userinput remap="configure">CC=gcc ./configure --prefix=/usr -G -O3 -r</userinput></screen>
+<screen><userinput remap="configure">CC='gcc -std=c99' ./configure --prefix=/usr -G -O3 -r</userinput></screen>
 
     <variablelist>
       <title>The meaning of the configure options:</title>
 
       <varlistentry>
-        <term><parameter>CC=gcc</parameter></term>
+        <term><parameter>CC='gcc -std=c99'</parameter></term>
         <listitem>
-          <para>This parameter specifies the compiler to use.</para>
+          <para>This parameter specifies the compiler and the C standard to use.</para>
         </listitem>
       </varlistentry>
 
diff --git a/chapter08/expect.xml b/chapter08/expect.xml
index d7c6341f4..2ac70ac04 100644
--- a/chapter08/expect.xml
+++ b/chapter08/expect.xml
@@ -67,9 +67,9 @@
     GDBM, and of course Expect itself) will fail catastrophically, and other
     subtle breakages may also happen.</para>
 
-    <para>Now, make some changes to allow the package with gcc-14.1 or later:</para>
+    <para>Now, make some changes to allow the package with gcc-15.1 or later:</para>
 
-<screen><userinput remap="pre">patch -Np1 -i ../expect-&expect-version;-gcc14-1.patch</userinput></screen>
+<screen><userinput remap="pre">patch -Np1 -i ../expect-&expect-version;-gcc15-1.patch</userinput></screen>
 
     <para>Prepare Expect for compilation:</para>
 
diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml
index e136677b1..19b95659f 100644
--- a/chapter08/gcc.xml
+++ b/chapter08/gcc.xml
@@ -181,10 +181,7 @@ cd       build</userinput></screen>
     <para>Now remove/fix several known test failures:</para>
 
 <screen><userinput remap="test">sed -e '/cpython/d'               -i ../gcc/testsuite/gcc.dg/plugin/plugin.exp
-sed -e 's/no-pic /&amp;-no-pie /'     -i ../gcc/testsuite/gcc.target/i386/pr113689-1.c
-sed -e 's/300000/(1|300000)/'     -i ../libgomp/testsuite/libgomp.c-c++-common/pr109062.c
-sed -e 's/{ target nonpic } //' \
-    -e '/GOTPCREL/d'              -i ../gcc/testsuite/gcc.target/i386/fentryname3.c</userinput></screen>
+sed -e 's/300000/(1|300000)/'     -i ../libgomp/testsuite/libgomp.c-c++-common/pr109062.c</userinput></screen>
 
     <para>Test the results as a non-privileged user, but do not stop at errors:</para>
 
diff --git a/chapter08/gmp.xml b/chapter08/gmp.xml
index cf5051d1e..63247449b 100644
--- a/chapter08/gmp.xml
+++ b/chapter08/gmp.xml
@@ -64,6 +64,8 @@
 
     <para>Prepare GMP for compilation:</para>
 
+<screen><userinput remap="pre">sed '/long long t1;/,+1s/()/(...)/' -i configure</userinput></screen>
+
 <screen><userinput remap="configure">./configure --prefix=/usr    \
             --enable-cxx     \
             --disable-static \
diff --git a/chapter08/m4.xml b/chapter08/m4.xml
index 2af3fd283..ef947207e 100644
--- a/chapter08/m4.xml
+++ b/chapter08/m4.xml
@@ -47,6 +47,9 @@ echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h</userinput></screen>
 -->
     <para>Prepare M4 for compilation:</para>
 
+<screen><userinput remap="pre">sed 's/\[\[__nodiscard__]]//' -i lib/config.hin</userinput></screen>
+<screen><userinput remap="pre">sed 's/test-stdalign\$(EXEEXT) //' -i tests/Makefile.in</userinput></screen>
+
 <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
 
     <para>Compile the package:</para>
diff --git a/packages.ent b/packages.ent
index a00f01067..770d3e53b 100644
--- a/packages.ent
+++ b/packages.ent
@@ -47,10 +47,10 @@
 <!ENTITY automake-fin-du "121 MB">
 <!ENTITY automake-fin-sbu "less than 0.1 SBU (about 1.1 SBU with tests)">
 
-<!ENTITY bash-version "5.2.37">
+<!ENTITY bash-version "5.3-rc1">
 <!ENTITY bash-size "10,868 KB">
 <!ENTITY bash-url "&gnu;bash/bash-&bash-version;.tar.gz">
-<!ENTITY bash-md5 "9c28f21ff65de72ca329c1779684a972">
+<!ENTITY bash-md5 "f58f56196606a0d0cef9b96b733d256c">
 <!ENTITY bash-home "&gnu-software;bash/">
 <!ENTITY bash-tmp-du "68 MB">
 <!ENTITY bash-tmp-sbu "0.2 SBU">
@@ -210,10 +210,10 @@
 <!ENTITY gawk-fin-du "43 MB">
 <!ENTITY gawk-fin-sbu "0.2 SBU">
 
-<!ENTITY gcc-version "14.2.0">
-<!ENTITY gcc-size "90,144 KB">
-<!ENTITY gcc-url "&gnu;gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.xz">
-<!ENTITY gcc-md5 "2268420ba02dc01821960e274711bde0">
+<!ENTITY gcc-version "15.1.0">
+<!ENTITY gcc-size "93,744 KB">
+<!ENTITY gcc-url "&gnu;gcc/gcc-&gcc-version;.tar.xz">
+<!ENTITY gcc-md5 "e55d13c55428bca27b4d2ea02f883135">
 <!ENTITY gcc-home "https://gcc.gnu.org/">
 <!ENTITY gcc-tmpp1-du "4.8 GB">
 <!ENTITY gcc-tmpp1-sbu "3.2 SBU">
@@ -531,8 +531,8 @@
 
 <!ENTITY ncurses-version "6.5">
 <!ENTITY ncurses-size "2,156 KB">
-<!ENTITY ncurses-url "https://invisible-mirror.net/archives/ncurses/ncurses-&ncurses-version;.tar.gz">
-<!ENTITY ncurses-md5 "ac2d2629296f04c8537ca706b6977687">
+<!ENTITY ncurses-url "https://invisible-mirror.net/archives/ncurses/ncurses-&ncurses-version;-20250419.tgz">
+<!ENTITY ncurses-md5 "6ceb0f9f2389fea01d6ed7ab8a41c3a7">
 <!ENTITY ncurses-home "&gnu-software;ncurses/">
 <!ENTITY ncurses-tmp-du "53 MB">
 <!ENTITY ncurses-tmp-sbu "0.4 SBU">
@@ -628,11 +628,11 @@
 <!ENTITY python-docs-md5 "5b65ca5579dac14e425cd247af6fd043">
 <!ENTITY python-docs-size "10,112 KB">
 
-<!ENTITY readline-version "8.2.13">
-<!ENTITY readline-soversion "8.2"><!-- used for stripping -->
+<!ENTITY readline-version "8.3">
+<!ENTITY readline-soversion "8.3"><!-- used for stripping -->
 <!ENTITY readline-size "2,974 KB">
-<!ENTITY readline-url "&gnu;readline/readline-&readline-version;.tar.gz">
-<!ENTITY readline-md5 "05080bf3801e6874bb115cd6700b708f">
+<!ENTITY readline-url "&gnu;readline/readline-&readline-version;-rc1.tar.gz">
+<!ENTITY readline-md5 "65e32c25e6ba871e5b026d22d0b81002">
 <!ENTITY readline-home "https://tiswww.case.edu/php/chet/readline/rltop.html">
 <!ENTITY readline-fin-du "16 MB">
 <!ENTITY readline-fin-sbu "less than 0.1 SBU">
diff --git a/patches.ent b/patches.ent
index c7b2ab19b..9ea2d52a5 100644
--- a/patches.ent
+++ b/patches.ent
@@ -20,9 +20,9 @@
 <!ENTITY coreutils-i18n-patch-md5 "33ebfad32b2dfb8417c3335c08671206">
 <!ENTITY coreutils-i18n-patch-size "159 KB">
 
-<!ENTITY expect-gcc14-patch "expect-&expect-version;-gcc14-1.patch">
-<!ENTITY expect-gcc14-patch-md5 "0b8b5ac411d011263ad40b0664c669f0">
-<!ENTITY expect-gcc14-patch-size "7.8 KB">
+<!ENTITY expect-gcc15-patch "expect-&expect-version;-gcc15-1.patch">
+<!ENTITY expect-gcc15-patch-md5 "0ca4d6bb8d572fbcdb13cb36cd34833e">
+<!ENTITY expect-gcc15-patch-size "11.8 KB">
 
 <!ENTITY glibc-fhs-patch "glibc-&glibc-version;-fhs-1.patch">
 <!ENTITY glibc-fhs-patch-md5 "9a5997c3452909b1769918c759eff8a2">

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.