[1cefd4d7] | 1 | <!-- $LastChangedBy$ $Date$ -->
|
---|
[276015d2] | 2 |
|
---|
[fdc0a6e6] | 3 | <!ENTITY day "17"> <!-- Always 2 digits -->
|
---|
[b6b8e1e] | 4 | <!ENTITY month "11"> <!-- Always 2 digits -->
|
---|
[c17c030] | 5 | <!ENTITY year "2020">
|
---|
[416886f] | 6 | <!ENTITY copyrightdate "2001-&year;">
|
---|
| 7 | <!ENTITY copyholder "The BLFS Development Team">
|
---|
[91eeec7] | 8 | <!ENTITY version "&year;-&month;-&day;">
|
---|
[fdc0a6e6] | 9 | <!ENTITY releasedate "November 17th, &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">
|
---|
[8dfc5c3] | 43 | <!ENTITY gnu-http "https://ftp.gnu.org/gnu">
|
---|
| 44 | <!ENTITY gnu-ftp "ftp://ftp.gnu.org/gnu">
|
---|
| 45 | <!ENTITY gnupg-http "https://www.gnupg.org/ftp/gcrypt">
|
---|
[14d673a2] | 46 | <!ENTITY gnupg-ftp "ftp://ftp.gnupg.org/gcrypt">
|
---|
[122ded1] | 47 | <!ENTITY gstreamer-dl "https://gstreamer.freedesktop.org/src">
|
---|
[8dfc5c3] | 48 | <!ENTITY kernel-dl "https://www.kernel.org/pub">
|
---|
| 49 | <!ENTITY mozilla-http "https://archive.mozilla.org/pub">
|
---|
[8d0bc761] | 50 | <!ENTITY mozilla-hg "https://hg.mozilla.org/releases/mozilla-release/archive/">
|
---|
[a206343] | 51 | <!ENTITY perl_authors "https://www.cpan.org/authors">
|
---|
| 52 | <!ENTITY metacpan_authors "https://cpan.metacpan.org/authors/id">
|
---|
[8dfc5c3] | 53 | <!ENTITY pymodules-dl "https://files.pythonhosted.org/packages/source">
|
---|
| 54 | <!ENTITY sourceforge-dl "https://downloads.sourceforge.net">
|
---|
| 55 |
|
---|
[340486e] | 56 | <!ENTITY gentoo-ftp-repo "ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles">
|
---|
[98e2adf] | 57 | <!ENTITY fedora-http-repo "http://pkgs.fedoraproject.org/repo/pkgs">
|
---|
[faf325d] | 58 | <!ENTITY jaist-ftp-repo "ftp://ftp.jaist.ac.jp/pub//sourceforge">
|
---|
[458e839c] | 59 | <!ENTITY lxqt-http-repo "http://downloads.lxqt.org/lxqt">
|
---|
[4e88613] | 60 | <!ENTITY publisher "Unknown">
|
---|
[e622c0b] | 61 | <!ENTITY xorg-download-http "https://www.x.org/pub/individual">
|
---|
[2f4014b] | 62 | <!ENTITY xorg-download-ftp "ftp://ftp.x.org/pub/individual">
|
---|
[e5f33088] | 63 | <!ENTITY pypi "https://pypi.python.org/pypi">
|
---|
[827ba01c] | 64 | <!ENTITY appstream-glib-url "http://people.freedesktop.org/~hughsient/appstream-glib/releases">
|
---|
[7d5122e6] | 65 | <!ENTITY elinks-url "http://elinks.or.cz">
|
---|
[1eac9eb] | 66 | <!ENTITY w3m-url "http://w3m.sourceforge.net/">
|
---|
[4122007] | 67 |
|
---|
[55fb7f56] | 68 | <!-- These entities are used to identify versions of LFS
|
---|
[db808f2] | 69 | packages referenced throughout the BLFS book. -->
|
---|
[eb631ac] | 70 | <!ENTITY lfs-autoconf-version "2.69">
|
---|
[2f141ef] | 71 | <!ENTITY lfs-coreutils-version "8.23">
|
---|
| 72 | <!ENTITY lfs-e2fsprogs-version "1.42.11">
|
---|
[eb631ac] | 73 | <!ENTITY lfs-flex-version "2.5.39">
|
---|
[2f141ef] | 74 | <!ENTITY lfs-gcc-version "4.9.1">
|
---|
[eb631ac] | 75 | <!ENTITY lfs-gdbm-version "1.11">
|
---|
| 76 | <!ENTITY lfs-m4-version "1.4.17">
|
---|
[eacfe160] | 77 | <!ENTITY lfs-perl-version "5.32"> <!-- used in git -->
|
---|
[f524a8f] | 78 | <!-- this was originally the perl version used by the corresponding
|
---|
| 79 | version of lfs, in those days always for i686, but now BLFS is a rolling
|
---|
[eacfe160] | 80 | release. \-\->
|
---|
| 81 | <!ENTITY lfs-perl-version "<5.x.y>/<arch-linux>">-->
|
---|
[d64103f] | 82 | <!ENTITY lfs-shadow-version "4.2.1">
|
---|
[d659cbe] | 83 | <!ENTITY lfs-vim-version "7.4">
|
---|
[55fb7f56] | 84 | <!-- End LFS versions -->
|
---|
[4122007] | 85 |
|
---|
[faf8e0b] | 86 | <!ENTITY blfs-bootscripts-version "20201002">
|
---|
[0880d35d] | 87 | <!ENTITY systemd-units-version "20200828">
|
---|
[f852e706] | 88 |
|
---|
[29a430f] | 89 |
|
---|
[4e88613] | 90 | <!ENTITY blfs-wiki "http://wiki.&lfs-domainname;/blfs/wiki">
|
---|
[d53eb0e] | 91 |
|
---|
[b5a2067] | 92 | <!-- These entities are used to annotate the current status of a package as it
|
---|
| 93 | relates to the version of LFS it will build/work against -->
|
---|
[2db87f5] | 94 |
|
---|
[9330190d] | 95 | <!ENTITY lfs10_checked "<para>This package is known to build and work
|
---|
| 96 | properly using an LFS-10.0 platform.</para>">
|
---|
| 97 | <!ENTITY lfs10_built "<para>This package is known to build using an LFS
|
---|
| 98 | 10.0 platform but has not been tested.</para>">
|
---|
[cf3a15fa] | 99 |
|
---|
[b5a2067] | 100 | <!-- End special entities about LFS compatibility -->
|
---|
| 101 |
|
---|
[ba58642] | 102 | <!ENTITY as_root "<note><para>When installing multiple packages in a script,
|
---|
| 103 | the installation needs to be done as the root user. There are three general
|
---|
| 104 | options that can be used to do this:</para>
|
---|
| 105 |
|
---|
| 106 | <orderedlist>
|
---|
| 107 |
|
---|
| 108 | <listitem><para>Run the entire script as the root user (not
|
---|
| 109 | recommended).</para></listitem>
|
---|
| 110 |
|
---|
| 111 | <listitem><para>Use the <command>sudo</command> command from the <xref
|
---|
| 112 | linkend='sudo'/> package.</para></listitem>
|
---|
| 113 |
|
---|
| 114 | <listitem><para>Use <command>su -c "command arguments"</command>
|
---|
| 115 | (quotes required) which will ask for the root password for every iteration
|
---|
[0d7900a] | 116 | of the loop.</para></listitem>
|
---|
| 117 |
|
---|
[ba58642] | 118 | </orderedlist>
|
---|
| 119 |
|
---|
| 120 | <para>One way to handle this situation is to create a short
|
---|
| 121 | <command>bash</command> function that automatically selects the appropriate
|
---|
| 122 | method. Once the command is set in the environment, it does not need to be
|
---|
| 123 | set again.</para>
|
---|
[0d7900a] | 124 |
|
---|
[ba58642] | 125 | <screen><userinput>as_root()
|
---|
| 126 | {
|
---|
| 127 | if [ $EUID = 0 ]; then $*
|
---|
| 128 | elif [ -x /usr/bin/sudo ]; then sudo $*
|
---|
| 129 | else su -c \\"$*\\"
|
---|
[0d7900a] | 130 | fi
|
---|
[ba58642] | 131 | }
|
---|
| 132 |
|
---|
| 133 | export -f as_root</userinput></screen>
|
---|
| 134 | </note>">
|
---|
[33cbd93a] | 135 |
|
---|
[e03aea8] | 136 | <!ENTITY not-katamari "<para>This package is not a part of the Xorg
|
---|
| 137 | katamari and is provided only as a dependency to
|
---|
| 138 | other packages or for testing the completed Xorg
|
---|
| 139 | installation.</para>">
|
---|
[058a3280] | 140 |
|
---|
[13652301] | 141 | <!ENTITY % package-entities SYSTEM "packages.ent">
|
---|
| 142 | %package-entities;
|
---|
[ea20da9] | 143 |
|
---|
[428191d] | 144 | <!ENTITY parallel_issues "<note><para>This package may occasionally fail when
|
---|
| 145 | building with multiple processors. See <xref
|
---|
[ea20da9] | 146 | linkend='parallel-builds'/> for more information.</para></note>">
|
---|
| 147 |
|
---|
[729e458] | 148 | <!ENTITY shell-env "<note><para>If installing in the chroot environment, be
|
---|
| 149 | sure to export the <envar>SHELL</envar> environment
|
---|
| 150 | variable or configuration of the package will
|
---|
| 151 | fail.</para></note>">
|
---|
| 152 |
|
---|