Ignore:
Timestamp:
Nov 12, 2012, 1:25:42 PM (12 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
3d8b4f6
Parents:
5759332
Message:

Do not use sed -i in temp-system as the host cannot be guaranteed to have GNU sed

Location:
BOOK/temp-system/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/temp-system/common/coreutils.xml

    r5759332 r01672b8  
    4848    <para os="h1">Coreutils does not build make-prime-list properly and the host cannot execute it. We build it using the host compiler so it can be executed for the generation of data required for the build.</para>
    4949
    50 <screen os="h2"><userinput>sed '/src_make_prime_list/d' -i Makefile
     50<screen os="h2"><userinput>cp -v Makefile{,.orig}
     51sed '/src_make_prime_list/d' Makefile.orig > Makefile
    5152depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&amp;|;s|\.o$||'`;\
    5253    gcc -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src  \
     
    6162    <para os="h3">Remove the building of the hostname man page as it is affected by the previous commands.</para>
    6263
    63 <screen os="h4"><userinput>sed -i '/hostname.1/d' -i Makefile</userinput></screen>
     64<screen os="h4"><userinput>cp -v Makefile{,.bak}
     65sed -e '/hostname.1/d' Makefile.bak > Makefile</userinput></screen>
    6466<!-- End hack -->
    6567
  • BOOK/temp-system/common/vim.xml

    r5759332 r01672b8  
    3535    following command:</para>
    3636
    37 <screen os="s2"><userinput>sed -i "/using uint32_t/s/as_fn_error/#&amp;/" src/auto/configure</userinput></screen>
     37<screen os="s2"><userinput>cp -v src/auto/configure{,.orig}
     38sed "/using uint32_t/s/as_fn_error/#&amp;/" src/auto/configure.orig > src/auto/configure</userinput></screen>
    3839
    3940    <para os="c1">The <command>configure</command> script is full of logic
Note: See TracChangeset for help on using the changeset viewer.