2013-08-01 05:24:26 +08:00
|
|
|
<!-- $LastChangedBy$ $Date$ -->
|
2007-01-19 03:38:19 +08:00
|
|
|
|
2021-01-22 21:30:47 +08:00
|
|
|
<!ENTITY day "22"> <!-- Always 2 digits -->
|
2021-01-01 06:44:55 +08:00
|
|
|
<!ENTITY month "01"> <!-- Always 2 digits -->
|
|
|
|
<!ENTITY year "2021">
|
2008-05-29 02:11:38 +08:00
|
|
|
<!ENTITY copyrightdate "2001-&year;">
|
|
|
|
<!ENTITY copyholder "The BLFS Development Team">
|
2019-06-28 11:23:54 +08:00
|
|
|
<!ENTITY version "&year;-&month;-&day;">
|
2021-01-22 21:30:47 +08:00
|
|
|
<!ENTITY releasedate "January 22nd, &year;">
|
2004-06-21 06:00:15 +08:00
|
|
|
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
|
2005-05-22 20:47:24 +08:00
|
|
|
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
|
2016-06-05 13:57:10 +08:00
|
|
|
<!ENTITY lfs-version "development"> <!-- x.y|development -->
|
|
|
|
<!ENTITY lfs-versiond "systemd"> <!-- x.y-systemd|systemd -->
|
2005-09-07 08:49:38 +08:00
|
|
|
<!ENTITY last-commit "$Date$"> <!-- Automatic update -->
|
2007-01-17 20:57:47 +08:00
|
|
|
<!ENTITY lfs-domainname "linuxfromscratch.org">
|
2005-05-22 20:47:24 +08:00
|
|
|
|
2012-07-05 00:44:27 +08:00
|
|
|
<!ENTITY maintainer-fullname "The BLFS Team">
|
|
|
|
<!ENTITY maintainer-firstname "BLFS">
|
2012-02-06 13:15:51 +08:00
|
|
|
<!ENTITY maintainer-address "blfs-maintainer@&lfs-domainname;">
|
2007-01-17 20:57:47 +08:00
|
|
|
|
2015-07-25 07:55:27 +08:00
|
|
|
|
2014-02-18 04:22:24 +08:00
|
|
|
<!ENTITY lfs-website "http://www.&lfs-domainname;">
|
2015-10-20 00:25:37 +08:00
|
|
|
<!-- downloads_root must have an entity because it is needed for scripts
|
2016-08-02 11:30:29 +08:00
|
|
|
change svn to x.y for release. Note: s/_/-/ in comment to avoid grep error
|
|
|
|
Update 'downloads-root-systemd' to x.y-systemd
|
|
|
|
-->
|
2014-03-07 00:14:24 +08:00
|
|
|
<!ENTITY downloads-root "http://www.linuxfromscratch.org/blfs/downloads/svn">
|
2016-08-02 11:30:29 +08:00
|
|
|
<!ENTITY downloads-root-systemd "http://www.linuxfromscratch.org/blfs/downloads/systemd">
|
2007-01-17 20:57:47 +08:00
|
|
|
<!ENTITY downloads-project "http://downloads.&lfs-domainname;">
|
2015-10-12 04:28:40 +08:00
|
|
|
|
|
|
|
<!ENTITY sources-anduin-http "http://anduin.linuxfromscratch.org/BLFS">
|
|
|
|
<!ENTITY sources-anduin-ftp "ftp://anduin.linuxfromscratch.org/BLFS">
|
|
|
|
|
2007-01-17 20:57:47 +08:00
|
|
|
<!ENTITY hints-root "http://www.&lfs-domainname;/hints">
|
2012-08-27 00:53:50 +08:00
|
|
|
<!ENTITY patch-downloads "http://www.linuxfromscratch.org/patches/downloads">
|
2008-04-09 07:23:58 +08:00
|
|
|
<!ENTITY patch-root "http://www.&lfs-domainname;/patches/blfs/svn">
|
2007-01-17 20:57:47 +08:00
|
|
|
<!ENTITY errata "http://www.&lfs-domainname;/blfs/errata/&blfs-version;/">
|
2010-08-01 10:31:10 +08:00
|
|
|
<!ENTITY blfs-ticket-root "http://wiki.&lfs-domainname;/blfs/ticket/">
|
2015-10-12 04:28:40 +08:00
|
|
|
|
2007-01-17 20:57:47 +08:00
|
|
|
<!ENTITY lfs-root "../../../../lfs/view/&lfs-version;">
|
2016-06-05 13:57:10 +08:00
|
|
|
<!ENTITY lfs-rootd "../../../../lfs/view/&lfs-versiond;">
|
2010-03-24 10:13:27 +08:00
|
|
|
<!ENTITY lfs-dev "../../../../lfs/view/development">
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY gnu-http "https://ftp.gnu.org/gnu">
|
|
|
|
<!ENTITY gnu-ftp "ftp://ftp.gnu.org/gnu">
|
|
|
|
<!ENTITY gnupg-http "https://www.gnupg.org/ftp/gcrypt">
|
2017-11-25 18:02:34 +08:00
|
|
|
<!ENTITY gnupg-ftp "ftp://ftp.gnupg.org/gcrypt">
|
2016-11-23 05:53:36 +08:00
|
|
|
<!ENTITY gstreamer-dl "https://gstreamer.freedesktop.org/src">
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY kernel-dl "https://www.kernel.org/pub">
|
|
|
|
<!ENTITY mozilla-http "https://archive.mozilla.org/pub">
|
2018-03-14 06:12:24 +08:00
|
|
|
<!ENTITY mozilla-hg "https://hg.mozilla.org/releases/mozilla-release/archive/">
|
2018-11-18 07:06:15 +08:00
|
|
|
<!ENTITY perl_authors "https://www.cpan.org/authors">
|
|
|
|
<!ENTITY metacpan_authors "https://cpan.metacpan.org/authors/id">
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY pymodules-dl "https://files.pythonhosted.org/packages/source">
|
|
|
|
<!ENTITY sourceforge-dl "https://downloads.sourceforge.net">
|
|
|
|
|
2018-05-08 10:30:45 +08:00
|
|
|
<!ENTITY gentoo-ftp-repo "ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles">
|
2014-08-18 08:05:56 +08:00
|
|
|
<!ENTITY fedora-http-repo "http://pkgs.fedoraproject.org/repo/pkgs">
|
2013-05-13 00:46:18 +08:00
|
|
|
<!ENTITY jaist-ftp-repo "ftp://ftp.jaist.ac.jp/pub//sourceforge">
|
2015-07-17 20:53:48 +08:00
|
|
|
<!ENTITY lxqt-http-repo "http://downloads.lxqt.org/lxqt">
|
2007-01-17 20:57:47 +08:00
|
|
|
<!ENTITY publisher "Unknown">
|
2017-03-31 00:19:18 +08:00
|
|
|
<!ENTITY xorg-download-http "https://www.x.org/pub/individual">
|
2012-07-11 01:04:23 +08:00
|
|
|
<!ENTITY xorg-download-ftp "ftp://ftp.x.org/pub/individual">
|
2017-02-05 05:52:53 +08:00
|
|
|
<!ENTITY pypi "https://pypi.python.org/pypi">
|
2017-08-16 21:54:05 +08:00
|
|
|
<!ENTITY appstream-glib-url "http://people.freedesktop.org/~hughsient/appstream-glib/releases">
|
2018-12-24 06:28:27 +08:00
|
|
|
<!ENTITY elinks-url "http://elinks.or.cz">
|
2019-04-21 02:59:41 +08:00
|
|
|
<!ENTITY w3m-url "http://w3m.sourceforge.net/">
|
2004-06-10 10:40:59 +08:00
|
|
|
|
2006-03-28 07:17:00 +08:00
|
|
|
<!-- These entities are used to identify versions of LFS
|
2007-09-07 03:24:00 +08:00
|
|
|
packages referenced throughout the BLFS book. -->
|
2014-04-29 14:09:41 +08:00
|
|
|
<!ENTITY lfs-autoconf-version "2.69">
|
2014-07-23 04:40:48 +08:00
|
|
|
<!ENTITY lfs-coreutils-version "8.23">
|
|
|
|
<!ENTITY lfs-e2fsprogs-version "1.42.11">
|
2014-04-29 14:09:41 +08:00
|
|
|
<!ENTITY lfs-flex-version "2.5.39">
|
2014-07-23 04:40:48 +08:00
|
|
|
<!ENTITY lfs-gcc-version "4.9.1">
|
2014-04-29 14:09:41 +08:00
|
|
|
<!ENTITY lfs-gdbm-version "1.11">
|
|
|
|
<!ENTITY lfs-m4-version "1.4.17">
|
2020-08-10 19:03:11 +08:00
|
|
|
<!ENTITY lfs-perl-version "5.32"> <!-- used in git -->
|
2012-07-28 23:39:53 +08:00
|
|
|
<!-- this was originally the perl version used by the corresponding
|
|
|
|
version of lfs, in those days always for i686, but now BLFS is a rolling
|
2020-08-10 19:03:11 +08:00
|
|
|
release. \-\->
|
|
|
|
<!ENTITY lfs-perl-version "<5.x.y>/<arch-linux>">-->
|
2014-05-15 04:59:56 +08:00
|
|
|
<!ENTITY lfs-shadow-version "4.2.1">
|
2013-08-12 02:19:39 +08:00
|
|
|
<!ENTITY lfs-vim-version "7.4">
|
2006-03-28 07:17:00 +08:00
|
|
|
<!-- End LFS versions -->
|
2004-06-10 10:40:59 +08:00
|
|
|
|
2021-01-11 00:15:58 +08:00
|
|
|
<!ENTITY blfs-bootscripts-version "20210110">
|
2021-01-06 18:33:31 +08:00
|
|
|
<!ENTITY systemd-units-version "20210105">
|
2016-06-02 13:39:31 +08:00
|
|
|
|
2005-05-22 20:47:24 +08:00
|
|
|
|
2007-01-17 20:57:47 +08:00
|
|
|
<!ENTITY blfs-wiki "http://wiki.&lfs-domainname;/blfs/wiki">
|
2006-01-27 00:14:43 +08:00
|
|
|
|
2009-07-26 22:30:45 +08:00
|
|
|
<!-- These entities are used to annotate the current status of a package as it
|
|
|
|
relates to the version of LFS it will build/work against -->
|
2016-02-15 11:37:04 +08:00
|
|
|
|
2020-08-16 08:49:16 +08:00
|
|
|
<!ENTITY lfs10_checked "<para>This package is known to build and work
|
|
|
|
properly using an LFS-10.0 platform.</para>">
|
|
|
|
<!ENTITY lfs10_built "<para>This package is known to build using an LFS
|
|
|
|
10.0 platform but has not been tested.</para>">
|
2018-02-11 22:36:37 +08:00
|
|
|
|
2009-07-26 22:30:45 +08:00
|
|
|
<!-- End special entities about LFS compatibility -->
|
|
|
|
|
2012-10-11 05:35:16 +08:00
|
|
|
<!ENTITY as_root "<note><para>When installing multiple packages in a script,
|
|
|
|
the installation needs to be done as the root user. There are three general
|
|
|
|
options that can be used to do this:</para>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
|
|
|
|
<listitem><para>Run the entire script as the root user (not
|
|
|
|
recommended).</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>Use the <command>sudo</command> command from the <xref
|
|
|
|
linkend='sudo'/> package.</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>Use <command>su -c "command arguments"</command>
|
|
|
|
(quotes required) which will ask for the root password for every iteration
|
2013-02-12 02:51:17 +08:00
|
|
|
of the loop.</para></listitem>
|
|
|
|
|
2012-10-11 05:35:16 +08:00
|
|
|
</orderedlist>
|
|
|
|
|
|
|
|
<para>One way to handle this situation is to create a short
|
|
|
|
<command>bash</command> function that automatically selects the appropriate
|
|
|
|
method. Once the command is set in the environment, it does not need to be
|
|
|
|
set again.</para>
|
2013-02-12 02:51:17 +08:00
|
|
|
|
2012-10-11 05:35:16 +08:00
|
|
|
<screen><userinput>as_root()
|
|
|
|
{
|
|
|
|
if [ $EUID = 0 ]; then $*
|
|
|
|
elif [ -x /usr/bin/sudo ]; then sudo $*
|
|
|
|
else su -c \\"$*\\"
|
2013-02-12 02:51:17 +08:00
|
|
|
fi
|
2012-10-11 05:35:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export -f as_root</userinput></screen>
|
|
|
|
</note>">
|
2012-07-30 11:02:54 +08:00
|
|
|
|
2012-06-12 10:16:18 +08:00
|
|
|
<!ENTITY not-katamari "<para>This package is not a part of the Xorg
|
|
|
|
katamari and is provided only as a dependency to
|
|
|
|
other packages or for testing the completed Xorg
|
|
|
|
installation.</para>">
|
2012-10-01 13:54:32 +08:00
|
|
|
|
2014-07-21 00:05:48 +08:00
|
|
|
<!ENTITY % package-entities SYSTEM "packages.ent">
|
|
|
|
%package-entities;
|
2015-06-09 04:08:38 +08:00
|
|
|
|
2015-07-25 07:55:27 +08:00
|
|
|
<!ENTITY parallel_issues "<note><para>This package may occasionally fail when
|
|
|
|
building with multiple processors. See <xref
|
2015-06-09 04:08:38 +08:00
|
|
|
linkend='parallel-builds'/> for more information.</para></note>">
|
|
|
|
|
2018-05-22 10:03:23 +08:00
|
|
|
<!ENTITY shell-env "<note><para>If installing in the chroot environment, be
|
|
|
|
sure to export the <envar>SHELL</envar> environment
|
|
|
|
variable or configuration of the package will
|
|
|
|
fail.</para></note>">
|
|
|
|
|