- Timestamp:
- 04/21/2015 10:21:54 PM (9 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, 12.2, 12.2-rc1, 7.8, 7.9, 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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 74ebf51
- Parents:
- d0da965a
- Location:
- chapter06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/attr.xml
rd0da965a r99dd957 46 46 47 47 <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in</userinput></screen> 48 49 <para>Prevent installation of manual pages that were already installed by 50 the <xref linkend="man-pages"/> package:</para> 51 52 <screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man2||" man/Makefile</userinput></screen> 48 53 49 54 <para>Prepare Attr for compilation:</para> -
chapter06/eudev.xml
rd0da965a r99dd957 45 45 <screen><userinput remap="pre">sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen> 46 46 47 <para>Next, add a workaround to prevent the /tools directory from being 48 hard coded into Eudev binary files library locations:</para> 49 50 <screen><userinput remap="pre">cat > config.cache << "EOF" 51 HAVE_BLKID=1 52 BLKID_LIBS="-lblkid" 53 BLKID_CFLAGS="-I/tools/include" 54 EOF</userinput></screen> 55 47 56 <para>Prepare Eudev for compilation:</para> 48 57 49 <screen><userinput remap="configure">BLKID_CFLAGS=-I/tools/include \ 50 BLKID_LIBS='-L/tools/lib -lblkid' \ 51 ./configure --prefix=/usr \ 58 <screen><userinput remap="configure">./configure --prefix=/usr \ 52 59 --bindir=/sbin \ 53 60 --sbindir=/sbin \ … … 58 65 --with-rootlibdir=/lib \ 59 66 --enable-split-usr \ 60 --enable-libkmod \61 --enable-rule_generator \62 --enable-keymap \63 67 --disable-introspection \ 64 68 --disable-gudev \ 65 69 --disable-static \ 70 --config-cache \ 66 71 --disable-gtk-doc-html</userinput></screen> 67 72 68 73 <para>Compile the package:</para> 69 74 70 <screen><userinput remap="make"> make</userinput></screen>75 <screen><userinput remap="make">LIBRARY_PATH=/tools/lib make</userinput></screen> 71 76 72 77 <para>Create some directories now that are needed for tests, but … … 78 83 <para>To test the results, issue:</para> 79 84 80 <screen><userinput remap="test">make check</userinput></screen>85 <screen><userinput remap="test">make LD_LIBRARY_PATH=/tools/lib check</userinput></screen> 81 86 82 87 <para>Install the package:</para> 83 88 84 <screen><userinput remap="install">make install</userinput></screen>89 <screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen> 85 90 86 91 <para>Now, install the man pages:</para> … … 90 95 popd</userinput></screen> 91 96 92 <para> Finally, install some custom rules and support files useful in an LFS97 <para>Install some custom rules and support files useful in an LFS 93 98 environment:</para> 94 99 … … 117 122 initial database:</para> 118 123 119 <screen><userinput> udevadm hwdb --update</userinput></screen>124 <screen><userinput>LD_LIBRARY_PATH=/tools/lib udevadm hwdb --update</userinput></screen> 120 125 121 126 <para>This command needs to be run each time the hardware information is
Note:
See TracChangeset
for help on using the changeset viewer.