Changeset 33cbd93a


Ignore:
Timestamp:
07/30/2012 03:02:54 AM (12 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a0bb5d33
Parents:
73dd9a12
Message:

Added AS_ROOT variable to Xorg installation loops.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10481 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    r73dd9a12 r33cbd93a  
    44-->
    55
    6 <!ENTITY day          "29">                   <!-- Always 2 digits -->
     6<!ENTITY day          "30">                   <!-- Always 2 digits -->
    77<!ENTITY month        "07">                   <!-- Always 2 digits -->
    88<!ENTITY year         "2012">
     
    109109<!ENTITY lfssvn_built2        " platform but has not been tested.">
    110110<!-- End special entities about LFS compatibility -->
     111
     112<!ENTITY as_root              "<note><para>When installing multiple packages in
     113                              a script, the installation needs to be done as
     114                              the root user. There are three general options
     115                              that can be used to do this:</para>
     116
     117                              <orderedlist>
     118                              <listitem><para>Run the entire script as the root
     119                              user (not recommended).</para></listitem>
     120
     121                              <listitem><para>Use the '<command>sudo</command>'
     122                              command from the <xref linkend='sudo'/>
     123                              package.</para></listitem>
     124
     125                              <listitem><para>Use '<command>su -c</command>'
     126                              which will ask for the root password for every
     127                              iteration of the loop.</para></listitem>
     128                              </orderedlist>
     129
     130                              <para>Select a preferred method and export a
     131                              variable <parameter>AS_ROOT</parameter> with the
     132                              following command replacing
     133                              <parameter>&lt;as_root&gt;</parameter> with the
     134                              selected command (unset or use an empty variable
     135                              if you intend to run the entire loop as the
     136                              root user):</para>
     137
     138                              <screen><userinput>export AS_ROOT='<replaceable>&lt;as_root&gt;</replaceable>'</userinput></screen>
     139                              </note>">
    111140
    112141<!ENTITY not-katamari         "<para>This package is not a part of the Xorg
  • introduction/welcome/changelog.xml

    r73dd9a12 r33cbd93a  
    4545-->
    4646    <listitem>
     47      <para>July 30th, 2012</para>
     48      <itemizedlist>
     49        <listitem>
     50          <para>[dj] - Added "AS_ROOT" variable to Xorg installation
     51          loops.</para>
     52        </listitem>
     53      </itemizedlist>
     54    </listitem>
     55
     56    <listitem>
    4757      <para>July 29th, 2012</para>
    4858      <itemizedlist>
  • x/installing/x7app.xml

    r73dd9a12 r33cbd93a  
    243243    <title>Installation of Xorg Applications</title>
    244244
    245     <para>First, start a sub-shell that will exit on error:</para>
     245&as_root;
     246
     247    <para>First, start a subshell that will exit on error:</para>
    246248
    247249<screen><userinput>bash -e</userinput></screen>
     
    254256  packagedir=${package%.tar.bz2}
    255257  tar -xf $package
    256   cd $packagedir
     258  pushd $packagedir
    257259  ./configure $XORG_CONFIG
    258260  make
    259   sudo make install
    260   cd ..
     261  $AS_ROOT make install
     262  popd
    261263  rm -r $packagedir
    262264done</userinput></screen>
  • x/installing/x7font.xml

    r73dd9a12 r33cbd93a  
    234234    <title>Installation of Xorg Fonts</title>
    235235
     236&as_root;
     237
    236238    <para>First, start a subshell that will exit on error:</para>
    237239
     
    245247  packagedir=${package%.tar.bz2}
    246248  tar -xf $package
    247   cd $packagedir
     249  pushd $packagedir
    248250  ./configure $XORG_CONFIG
    249251  make
    250   sudo make install
    251   cd ..
     252  $AS_ROOT make install
     253  popd
    252254  rm -r $packagedir
    253255done</userinput></screen>
  • x/installing/x7lib.xml

    r73dd9a12 r33cbd93a  
    230230    <title>Installation of Xorg Libraries</title>
    231231
     232&as_root;
     233
    232234    <para>First, start a subshell that will exit on error:</para>
    233235
     
    241243  packagedir=${package%.tar.bz2}
    242244  tar -xf $package
    243   cd $packagedir
     245  pushd $packagedir
    244246  case $packagedir in
    245247    libXfont-[0-9]* )
     
    255257  esac
    256258  make
    257   sudo make install
    258   cd ..
     259  $AS_ROOT make install
     260  popd
    259261  rm -r $packagedir
    260262  sudo /sbin/ldconfig
  • x/installing/x7proto.xml

    r73dd9a12 r33cbd93a  
    210210    <title>Installation of Xorg Protocol Headers</title>
    211211
     212    &as_root;
     213
    212214    <para>First, start a subshell that will exit on error:</para>
    213215
     
    221223  packagedir=${package%.tar.bz2}
    222224  tar -xf $package
    223   cd $packagedir
     225  pushd $packagedir
    224226  ./configure $XORG_CONFIG
    225   sudo make install
    226   cd ..
     227  $AS_ROOT make install
     228  popd
    227229  rm -r $packagedir
    228230done</userinput></screen>
     
    237239    <title>Command Explanations</title>
    238240
    239     <para><command>bash -e</command>: This command starts a sub-shell that will
     241    <para><command>bash -e</command>: This command starts a subshell that will
    240242    exit if any command returns a value other than 0, causing the for loop to
    241243    exit immediately if an error occurs. This also eliminates the need for the
Note: See TracChangeset for help on using the changeset viewer.