[blfs] branch trunk updated: Fix net-tools for building with linux-7.1+

git Owner ([email protected] via blfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.book
Message-ID <178297145222.24260.6171330006399147477@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository blfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new 21eb168fc0 Fix net-tools for building with linux-7.1+
21eb168fc0 is described below

commit 21eb168fc09e15104d0a7eddcb8330bfcb1b115b
Author: Pierre Labastie <[email protected]>
AuthorDate: Wed Jul 1 19:59:54 2026 +0200

    Fix net-tools for building with linux-7.1+
    
    Thanks to Joe Locash for providing a sed command (slightly modified)
---
 networking/netprogs/net-tools.xml | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/networking/netprogs/net-tools.xml b/networking/netprogs/net-tools.xml
index 40f03fc526..861ff3b510 100644
--- a/networking/netprogs/net-tools.xml
+++ b/networking/netprogs/net-tools.xml
@@ -85,11 +85,12 @@
 
     <para id="net-tools-automate-example" xreflabel="Net-tools">
       The instructions below automate the configuration process by piping
-      <command>yes</command> to the <command>make</command> command.
+      <command>yes</command> to the <command>make config</command> command.
       If you wish to run the interactive configuration process (by changing
-      the instruction to just <command>make</command>), but you are
-      not sure how to answer all the questions, then just accept the defaults.
-      This will be just fine in the majority of cases. What you're asked here
+      the instruction to just <command>make config</command>), but you are
+      not sure how to answer all the questions, then just accept the defaults,
+      except for anything touching X25, ROSE, and NETROM, which have been
+      disabled in linux-7.1.  What you're asked here
       is a bunch of questions about which network protocols you've enabled
       in your kernel. The default answers will enable the tools from this
       package to work with the most common protocols: TCP, PPP, and several
@@ -124,7 +125,11 @@
     </para>
 
 <screen><userinput>export BINDIR='/usr/bin' SBINDIR='/usr/bin' &amp;&amp;
-yes "" | make -j1                           &amp;&amp;
+yes "" | make config                        &amp;&amp;
+sed -e /ROM/s/0/1/  \
+    -e /X25/s/0/1/  \
+    -e /ROSE/s/0/1/ \
+    -i config.h                             &amp;&amp;
 make DESTDIR=$PWD/install -j1 install       &amp;&amp;
 rm    install/usr/bin/{nis,yp}domainname    &amp;&amp;
 rm    install/usr/bin/{hostname,dnsdomainname,domainname,ifconfig} &amp;&amp;
@@ -154,11 +159,17 @@ cp -a install/* /</userinput></screen>
     </para>
 
     <para>
-      <command>yes "" | make </command>: Piping <command>yes</command>
+      <command>yes "" | make config</command>: Piping <command>yes</command>
       to <command>make config</command> skips the interactive configuration and
       accepts the defaults.
     </para>
 
+
+    <para>
+      <command>sed -e ...</command>: This disables building protocols that
+      are not available anymore in the kernel.
+    </para>
+
     <para>
       <command>rm ...</command>: Remove unneeded programs and man pages.
     </para>

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

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-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.