[1cefd4d7] | 1 | <!-- $LastChangedBy$ $Date$ -->
|
---|
[276015d2] | 2 |
|
---|
[c840bd37] | 3 | <!ENTITY day "30"> <!-- Always 2 digits -->
|
---|
[5381dd6a] | 4 | <!ENTITY month "10"> <!-- Always 2 digits -->
|
---|
[8a6a8a40] | 5 | <!ENTITY year "2016">
|
---|
[416886f] | 6 | <!ENTITY copyrightdate "2001-&year;">
|
---|
| 7 | <!ENTITY copyholder "The BLFS Development Team">
|
---|
[9e9cd2a2] | 8 | <!ENTITY version "&year;-&month;-&day;">
|
---|
[c840bd37] | 9 | <!ENTITY releasedate "October 30th &year;">
|
---|
[e9ef7b5e] | 10 | <!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
|
---|
[29a430f] | 11 | <!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
|
---|
[f586237] | 12 | <!ENTITY lfs-version "development"> <!-- x.y|development -->
|
---|
| 13 | <!ENTITY lfs-versiond "systemd"> <!-- x.y-systemd|systemd -->
|
---|
[103ead8] | 14 | <!ENTITY last-commit "$Date$"> <!-- Automatic update -->
|
---|
[4e88613] | 15 | <!ENTITY lfs-domainname "linuxfromscratch.org">
|
---|
[29a430f] | 16 |
|
---|
[f6ba18fd] | 17 | <!ENTITY maintainer-fullname "The BLFS Team">
|
---|
| 18 | <!ENTITY maintainer-firstname "BLFS">
|
---|
[41666068] | 19 | <!ENTITY maintainer-address "blfs-maintainer@&lfs-domainname;">
|
---|
[4e88613] | 20 |
|
---|
[428191d] | 21 |
|
---|
[9cbbf24b] | 22 | <!ENTITY lfs-website "http://www.&lfs-domainname;">
|
---|
[59fdbf7] | 23 | <!-- downloads_root must have an entity because it is needed for scripts
|
---|
[85aab27] | 24 | change svn to x.y for release. Note: s/_/-/ in comment to avoid grep error
|
---|
| 25 | Update 'downloads-root-systemd' to x.y-systemd
|
---|
| 26 | -->
|
---|
[7c284e7] | 27 | <!ENTITY downloads-root "http://www.linuxfromscratch.org/blfs/downloads/svn">
|
---|
[85aab27] | 28 | <!ENTITY downloads-root-systemd "http://www.linuxfromscratch.org/blfs/downloads/systemd">
|
---|
[4e88613] | 29 | <!ENTITY downloads-project "http://downloads.&lfs-domainname;">
|
---|
[a29486e4] | 30 |
|
---|
| 31 | <!ENTITY sources-anduin-http "http://anduin.linuxfromscratch.org/BLFS">
|
---|
| 32 | <!ENTITY sources-anduin-ftp "ftp://anduin.linuxfromscratch.org/BLFS">
|
---|
| 33 |
|
---|
[4e88613] | 34 | <!ENTITY hints-root "http://www.&lfs-domainname;/hints">
|
---|
[207c3129] | 35 | <!ENTITY patch-downloads "http://www.linuxfromscratch.org/patches/downloads">
|
---|
[1fb339c] | 36 | <!ENTITY patch-root "http://www.&lfs-domainname;/patches/blfs/svn">
|
---|
[4e88613] | 37 | <!ENTITY errata "http://www.&lfs-domainname;/blfs/errata/&blfs-version;/">
|
---|
[f267149] | 38 | <!ENTITY blfs-ticket-root "http://wiki.&lfs-domainname;/blfs/ticket/">
|
---|
[a29486e4] | 39 |
|
---|
[4e88613] | 40 | <!ENTITY lfs-root "../../../../lfs/view/&lfs-version;">
|
---|
[f586237] | 41 | <!ENTITY lfs-rootd "../../../../lfs/view/&lfs-versiond;">
|
---|
[4dcc31a] | 42 | <!ENTITY lfs-dev "../../../../lfs/view/development">
|
---|
[ec9b2d7] | 43 | <!ENTITY kernel "http://www.kernel.org/pub/">
|
---|
[1604b8ff] | 44 | <!ENTITY gstreamer-dl "http://gstreamer.freedesktop.org/src">
|
---|
[c9b953e6] | 45 | <!ENTITY gnu-alpha-ftp "ftp://alpha.gnu.org/gnu/">
|
---|
| 46 | <!ENTITY gnu-alpha-http "http://alpha.gnu.org/gnu/">
|
---|
[c5e155d2] | 47 | <!ENTITY sourceforge-repo "http://downloads.sourceforge.net">
|
---|
[e50b41c] | 48 | <!ENTITY sourceforge-repo2 "http://sourceforge.net">
|
---|
[c7ed4f4d] | 49 | <!ENTITY gentoo-ftp-repo "ftp://mirror.ovh.net/gentoo-distfiles/distfiles">
|
---|
[98e2adf] | 50 | <!ENTITY fedora-http-repo "http://pkgs.fedoraproject.org/repo/pkgs">
|
---|
[faf325d] | 51 | <!ENTITY jaist-ftp-repo "ftp://ftp.jaist.ac.jp/pub//sourceforge">
|
---|
[458e839c] | 52 | <!ENTITY lxqt-http-repo "http://downloads.lxqt.org/lxqt">
|
---|
[4e88613] | 53 | <!ENTITY publisher "Unknown">
|
---|
[0269d30] | 54 | <!ENTITY xorg-download-http "http://ftp.x.org/pub/individual">
|
---|
[2f4014b] | 55 | <!ENTITY xorg-download-ftp "ftp://ftp.x.org/pub/individual">
|
---|
[af176a5f] | 56 | <!ENTITY mozilla-http "https://ftp.mozilla.org/pub/mozilla.org">
|
---|
[3c9c4e8] | 57 | <!ENTITY mozilla-ftp "ftp://ftp.mozilla.org/pub">
|
---|
[4122007] | 58 |
|
---|
[55fb7f56] | 59 | <!-- These entities are used to identify versions of LFS
|
---|
[db808f2] | 60 | packages referenced throughout the BLFS book. -->
|
---|
[eb631ac] | 61 | <!ENTITY lfs-autoconf-version "2.69">
|
---|
[2f141ef] | 62 | <!ENTITY lfs-coreutils-version "8.23">
|
---|
| 63 | <!ENTITY lfs-e2fsprogs-version "1.42.11">
|
---|
[eb631ac] | 64 | <!ENTITY lfs-flex-version "2.5.39">
|
---|
[2f141ef] | 65 | <!ENTITY lfs-gcc-version "4.9.1">
|
---|
[eb631ac] | 66 | <!ENTITY lfs-gdbm-version "1.11">
|
---|
| 67 | <!ENTITY lfs-m4-version "1.4.17">
|
---|
[f524a8f] | 68 | <!-- this was originally the perl version used by the corresponding
|
---|
| 69 | version of lfs, in those days always for i686, but now BLFS is a rolling
|
---|
| 70 | release -->
|
---|
| 71 | <!ENTITY lfs-perl-version "<5.x.y>/<arch-linux>">
|
---|
[d64103f] | 72 | <!ENTITY lfs-shadow-version "4.2.1">
|
---|
[d659cbe] | 73 | <!ENTITY lfs-vim-version "7.4">
|
---|
[55fb7f56] | 74 | <!-- End LFS versions -->
|
---|
[4122007] | 75 |
|
---|
[6182494b] | 76 | <!ENTITY blfs-bootscripts-version "20160902">
|
---|
[f852e706] | 77 | <!ENTITY systemd-units-version "20160602">
|
---|
| 78 |
|
---|
[29a430f] | 79 |
|
---|
[4e88613] | 80 | <!ENTITY blfs-wiki "http://wiki.&lfs-domainname;/blfs/wiki">
|
---|
[d53eb0e] | 81 |
|
---|
[b5a2067] | 82 | <!-- These entities are used to annotate the current status of a package as it
|
---|
| 83 | relates to the version of LFS it will build/work against -->
|
---|
[2db87f5] | 84 |
|
---|
[6693e21] | 85 | <!ENTITY lfs7a_checked "<para>This package is known to build and work
|
---|
| 86 | properly using an LFS-7.10 platform.</para>">
|
---|
| 87 | <!ENTITY lfs7a_built "<para>This package is known to build using an LFS
|
---|
| 88 | 7.10 platform but has not been tested.</para>">
|
---|
| 89 |
|
---|
[76ae9a2] | 90 | <!ENTITY lfssvn_checked "This package is known to build and work properly
|
---|
[040a2e4] | 91 | using an LFS-SVN-">
|
---|
[5f04edc] | 92 | <!ENTITY lfssvn_checked2 " platform.">
|
---|
[040a2e4] | 93 | <!ENTITY lfssvn_built "This package is known to build using an LFS-SVN-">
|
---|
[5f04edc] | 94 | <!ENTITY lfssvn_built2 " platform but has not been tested.">
|
---|
[b5a2067] | 95 | <!-- End special entities about LFS compatibility -->
|
---|
| 96 |
|
---|
[ba58642] | 97 | <!ENTITY as_root "<note><para>When installing multiple packages in a script,
|
---|
| 98 | the installation needs to be done as the root user. There are three general
|
---|
| 99 | options that can be used to do this:</para>
|
---|
| 100 |
|
---|
| 101 | <orderedlist>
|
---|
| 102 |
|
---|
| 103 | <listitem><para>Run the entire script as the root user (not
|
---|
| 104 | recommended).</para></listitem>
|
---|
| 105 |
|
---|
| 106 | <listitem><para>Use the <command>sudo</command> command from the <xref
|
---|
| 107 | linkend='sudo'/> package.</para></listitem>
|
---|
| 108 |
|
---|
| 109 | <listitem><para>Use <command>su -c "command arguments"</command>
|
---|
| 110 | (quotes required) which will ask for the root password for every iteration
|
---|
[0d7900a] | 111 | of the loop.</para></listitem>
|
---|
| 112 |
|
---|
[ba58642] | 113 | </orderedlist>
|
---|
| 114 |
|
---|
| 115 | <para>One way to handle this situation is to create a short
|
---|
| 116 | <command>bash</command> function that automatically selects the appropriate
|
---|
| 117 | method. Once the command is set in the environment, it does not need to be
|
---|
| 118 | set again.</para>
|
---|
[0d7900a] | 119 |
|
---|
[ba58642] | 120 | <screen><userinput>as_root()
|
---|
| 121 | {
|
---|
| 122 | if [ $EUID = 0 ]; then $*
|
---|
| 123 | elif [ -x /usr/bin/sudo ]; then sudo $*
|
---|
| 124 | else su -c \\"$*\\"
|
---|
[0d7900a] | 125 | fi
|
---|
[ba58642] | 126 | }
|
---|
| 127 |
|
---|
| 128 | export -f as_root</userinput></screen>
|
---|
| 129 | </note>">
|
---|
[33cbd93a] | 130 |
|
---|
[e03aea8] | 131 | <!ENTITY not-katamari "<para>This package is not a part of the Xorg
|
---|
| 132 | katamari and is provided only as a dependency to
|
---|
| 133 | other packages or for testing the completed Xorg
|
---|
| 134 | installation.</para>">
|
---|
[058a3280] | 135 |
|
---|
[13652301] | 136 | <!ENTITY % package-entities SYSTEM "packages.ent">
|
---|
| 137 | %package-entities;
|
---|
[ea20da9] | 138 |
|
---|
[428191d] | 139 | <!ENTITY parallel_issues "<note><para>This package may occasionally fail when
|
---|
| 140 | building with multiple processors. See <xref
|
---|
[ea20da9] | 141 | linkend='parallel-builds'/> for more information.</para></note>">
|
---|
| 142 |
|
---|