[lfs] branch trunk updated: cross diffutils: fix the strcasecmp check

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

git pushed a commit to branch trunk
in repository lfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new df7910ddf cross diffutils: fix the strcasecmp check
df7910ddf is described below

commit df7910ddf7c259f00397affbb5d2d030812cf8da
Author: Pierre Labastie <[email protected]>
AuthorDate: Mon Mar 23 19:10:54 2026 +0100

    cross diffutils: fix the strcasecmp check
    
    Setting gl_cv_func_strcasecmp_works to "y" (or anything not ending
    with "yes") allows configure to complete, but with settings that
    prevent using the system strcasecmp function. The correct setting
    of the variable is "yes" (or anything ending with "yes"), which
    allows configure to complete, and the systemstrcasecmp function
    to be used
    
    Thanks to Manuel Jacob for the report.
---
 chapter06/diffutils.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/chapter06/diffutils.xml b/chapter06/diffutils.xml
index 404fe9b66..e30a520cb 100644
--- a/chapter06/diffutils.xml
+++ b/chapter06/diffutils.xml
@@ -47,7 +47,7 @@
 
     <screen><userinput remap="configure">./configure --prefix=/usr   \
             --host=$LFS_TGT \
-            gl_cv_func_strcasecmp_works=y \
+            gl_cv_func_strcasecmp_works=yes \
             --build=$(./build-aux/config.guess)</userinput></screen>
 
     <variablelist>
@@ -55,20 +55,20 @@
 
       <varlistentry>
         <!-- https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=d9083a4cc638cf9c7dfc3cc534a7c6b4debf50ab -->
-        <term><parameter>gl_cv_func_strcasecmp_works=y</parameter></term>
+        <term><parameter>gl_cv_func_strcasecmp_works=yes</parameter></term>
         <listitem>
           <para>This option specify the result of a check for the
-          <function>strcasecmp</function>.  The check requires running a
-          compiled C program, and this is impossible during
+          <function>strcasecmp</function> function. The check requires running
+          a compiled C program, and this is impossible during
           cross-compilation because in general a cross-compiled program
           cannot run on the host distro.  Normally for such a check the
           <command>configure</command> script would use a fall-back value
           for cross-compilation, but the fall-back value for this check is
           absent and the <command>configure</command> script would have no
-          value to use and error out.  The upstream has already fixed the
+          value to use and error out.  Upstream have already fixed the
           issue, but to apply the fix we'd need to run
           <command>autoconf</command> that the host distro may lack.  So
-          we just specify the check result (<literal>y</literal> as we know
+          we just specify the check result (<literal>yes</literal> as we know
           the <function>strcasecmp</function> function in
           Glibc-&glibc-version; works fine) instead, then
           <command>configure</command> will just use the specified value and

-- 
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.