Changeset 0445a3d for chapter06/coreutils.xml
- Timestamp:
- 09/18/2007 09:11:00 PM (17 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- e1ad8a8
- Parents:
- a7a0238
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/coreutils.xml
ra7a0238 r0445a3d 46 46 Glibc provides, so we'll rename the function:</para> 47 47 48 <screen><userinput >sed -i 's/futimens/gl_&/' src/{copy,touch}.c lib/utimens.{c,h}</userinput></screen>48 <screen><userinput remap="pre">sed -i 's/futimens/gl_&/' src/{copy,touch}.c lib/utimens.{c,h}</userinput></screen> 49 49 50 50 <para>A known issue with the <command>uname</command> program from … … 53 53 fixes this behavior for Intel architectures:</para> 54 54 55 <screen><userinput >patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen>55 <screen><userinput remap="pre">patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen> 56 56 57 57 <para>Prevent Coreutils from installing binaries that will be installed by 58 58 other packages later:</para> 59 59 60 <screen><userinput >patch -Np1 -i ../&coreutils-suppress-patch;</userinput></screen>60 <screen><userinput remap="pre">patch -Np1 -i ../&coreutils-suppress-patch;</userinput></screen> 61 61 62 62 <para>POSIX requires that programs from Coreutils recognize character … … 64 64 fixes this non-compliance and other internationalization-related bugs:</para> 65 65 66 <screen><userinput >patch -Np1 -i ../&coreutils-i18n-patch;</userinput></screen>66 <screen><userinput remap="pre">patch -Np1 -i ../&coreutils-i18n-patch;</userinput></screen> 67 67 68 68 <para>In order for the tests added by this patch to pass, the permissions for 69 69 the test file have to be changed:</para> 70 70 71 <screen><userinput >chmod +x tests/sort/sort-mb-tests</userinput></screen>71 <screen><userinput remap="pre">chmod +x tests/sort/sort-mb-tests</userinput></screen> 72 72 73 73 <note> … … 79 79 <para>Now prepare Coreutils for compilation:</para> 80 80 81 <screen><userinput >./configure --prefix=/usr</userinput></screen>81 <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> 82 82 83 83 <para>Compile the package:</para> 84 84 85 <screen><userinput >make</userinput></screen>85 <screen><userinput remap="make">make</userinput></screen> 86 86 87 87 <para>Skip down to <quote>Install the … … 91 91 meant to be run as user <systemitem class="username">root</systemitem>:</para> 92 92 93 <screen><userinput >make NON_ROOT_USERNAME=nobody check-root</userinput></screen>93 <screen><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen> 94 94 95 95 <para>We're going to run the remainder of the tests as the … … 99 99 user <systemitem class="username">nobody</systemitem> a part of it:</para> 100 100 101 <screen><userinput >echo "dummy:x:1000:nobody" >> /etc/group</userinput></screen>101 <screen><userinput remap="test">echo "dummy:x:1000:nobody" >> /etc/group</userinput></screen> 102 102 103 103 <para>Now run the tests:</para> 104 104 105 <screen><userinput >su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>105 <screen><userinput remap="test">su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 106 106 107 107 <para>Remove the temporary group:</para> 108 108 109 <screen><userinput >sed -i '/dummy/d' /etc/group</userinput></screen>109 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen> 110 110 111 111 <para>Install the package:</para> 112 112 113 <screen><userinput >make install</userinput></screen>113 <screen><userinput remap="install">make install</userinput></screen> 114 114 115 115 <para>Move programs to the locations specified by the FHS:</para> 116 116 117 <screen><userinput >mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin117 <screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin 118 118 mv -v /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} /bin 119 119 mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin … … 126 126 need to be on the root partition:</para> 127 127 128 <screen><userinput >mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen>128 <screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen> 129 129 130 130 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.