[lfs] branch trunk updated: gettext: Remove useless sed

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <173444237002.18926.17902084460067136346@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 8f5b4a791 gettext: Remove useless sed
8f5b4a791 is described below

commit 8f5b4a7910b7191aa9fec7d79bc41d101ac31d8b
Author: Xi Ruoyao <[email protected]>
AuthorDate: Tue Dec 17 21:26:26 2024 +0800

    gettext: Remove useless sed
    
    The second expression
    
        's/xmlError *err/const &/'
    
    does nothing, because " *" actually matches zero, one, or several white
    spaces, not a white space and an asterisk.
    
    And the first expression
    
        '/libxml\/xmlerror.h/i #include <libxml/xmlversion.h>'
    
    includes a header, but we are not using anything in the header.
    
    The intention of the sed command is fix a compatibility issue with
    system libxml, but LFS does not have a system libxml so the fix is not
    needed for LFS.  And, if we just fix up the second expression to
    
        's/xmlError \*err/const &/'
    
    making it actually work, it'll cause a FTBFS with shipped libxml (used
    in LFS because system does not have libxml), so we cannot easily fix it
    either.
    
    For now just remove the sed.  If gettext-0.23.1 isn't released before
    LFS 12.3 freeze, we can either apply the upstream patch to make it work
    for both shipped libxml and system libxml, or add the corrected sed with
    "nodump" and some alarming texts.
---
 chapter08/gettext.xml | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/chapter08/gettext.xml b/chapter08/gettext.xml
index 3d5e3ade7..f26d15536 100644
--- a/chapter08/gettext.xml
+++ b/chapter08/gettext.xml
@@ -43,12 +43,6 @@
   <sect2 role="installation">
     <title>Installation of Gettext</title>
 
-    <para>First fix some compatibility issues with other programs:</para>
-
-<screen><userinput remap="pre">sed -e '/libxml\/xmlerror.h/i #include &lt;libxml/xmlversion.h&gt;' \
-    -e 's/xmlError *err/const &amp;/'                             \
-    -i gettext-tools/src/its.c</userinput></screen>
-
     <para>Prepare Gettext for compilation:</para>
 
 <screen><userinput remap="configure">./configure --prefix=/usr    \

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