From 14377f4ac060f66ca3f7c55388d148428fa401d3 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 25 Sep 2012 18:59:37 +0000 Subject: Update LFS target architectures. Fix a url in pkgmgfor LFS. Tweak a debian udev script for LFS. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9998 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/pkgmgt.xml | 2 +- prologue/architecture.xml | 27 ++++++++++++--------------- udev-lfs/contrib/debian/write_cd_aliases | 13 +++++++++++-- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/chapter06/pkgmgt.xml b/chapter06/pkgmgt.xml index a9ab07841..8b563ec33 100644 --- a/chapter06/pkgmgt.xml +++ b/chapter06/pkgmgt.xml @@ -218,7 +218,7 @@ make DESTDIR=/usr/pkg/libfoo/1.1 install This approach is used by most of the package managers found in the commercial distributions. Examples of package managers that follow this approach are RPM (which, incidentally, is required by the Linux + url="http://refspecs.linuxfoundation.org/lsb.shtml">Linux Standard Base Specification), pkg-utils, Debian's apt, and Gentoo's Portage system. A hint describing how to adopt this style of package management for LFS systems is located at LFS Target Architectures -The primary target architecture of LFS is the 32-bit Intel CPU. If you -have not built an LFS system before, you should probably start with that -target. The 32-bit architecture is the most widely supported Linux system and -is most compatible with both open source and proprietary software. - -On the other hand, the instructions in this book are known to work, with -some modifications, with both Power PC and 64-bit AMD/Intel CPUs. To build a +The primary target architectures of LFS are the AMD/Intel x86 (32-bit) +and x86_64 (64-bit) CPUs. On the other hand, the instructions in this book are +also known to work, with some modifications, with the Power PC CPU. To build a system that utilizes one of these CPUs, the main prerequisite, in addition to those on the next few pages, is an existing Linux system such as an earlier LFS installation, Ubuntu, Red Hat/Fedora, SuSE, or other distribution that targets @@ -47,14 +43,15 @@ instructions needed for a straightforward base Linux system. You can refer to the Cross Linux From Scratch project for this advanced topic. -There is one last comment about 64-bit systems. There are some packages -that cannot currently be built in a "pure" 64-bit system or require specialized -build instructions. Generally, these packages have some embedded 32-bit -specific assembly language instructions that fail when building on a 64-bit -system. This includes some Xorg drivers from Beyond Linux From Scratch -(BLFS). Many of these problems can be worked around, but may require -some specialized procedures or patches. +There is one last comment about 64-bit systems. There are some older +packages that cannot currently be built in a "pure" 64-bit system or require +specialized build instructions. Generally, these packages have some embedded +32-bit specific assembly language instructions that fail when building on a +64-bit system. This includes some Xorg drivers for some legacy video cards at + +http://xorg.freedesktop.org/releases/individual/driver/. Many of these +problems can be worked around, but may require some specialized procedures or +patches. diff --git a/udev-lfs/contrib/debian/write_cd_aliases b/udev-lfs/contrib/debian/write_cd_aliases index 6443b6dcf..ea8eeb7d8 100644 --- a/udev-lfs/contrib/debian/write_cd_aliases +++ b/udev-lfs/contrib/debian/write_cd_aliases @@ -1,12 +1,21 @@ #!/bin/sh -e +# Updated for LFS by B. Dubbs, 2012-09-23 +# Fix RULES_LOCK location + + RULES_FILE="/etc/udev/rules.d/82-persistent-cd.rules" ############################################################################## lock_rules_file() { - RULES_LOCK="/dev/.udev/.lock-${RULES_FILE##*/}" + RULES_LOCK="/run/udev/lock-${RULES_FILE##*/}" + + if [ ! -d /run/udev/ ]; then + echo "write_cd_aliases: /run/udev does not exist!" >&2 + exit 2 + fi - retry=30 + retry=10 while ! mkdir $RULES_LOCK 2> /dev/null; do if [ $retry -eq 0 ]; then echo "Cannot lock $RULES_FILE!" >&2 -- cgit v1.2.3-54-g00ecf