Ticket #1656: doclocations.patch

File doclocations.patch, 20.7 KB (added by Chris Staub, 19 years ago)

patch to update packages with options to place all documentation into /usr/share

  • trunk/BOOK/chapter06/inetutils.xml

     
    6060<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/sbin \
    6161    --sysconfdir=/etc --localstatedir=/var \
    6262    --disable-logger --disable-syslogd \
    63     --disable-whois --disable-servers</userinput></screen>
     63    --disable-whois --disable-servers \
     64    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    6465
    6566    <variablelist>
    6667      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/gettext.xml

     
    4848
    4949    <para>Prepare Gettext for compilation:</para>
    5050
    51 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     51<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     52    --infodir=/usr/share/info</userinput></screen>
    5253
    5354    <para>Compile the package:</para>
    5455
  • trunk/BOOK/chapter06/module-init-tools.xml

     
    5454
    5555    <para>Prepare Module-Init-Tools for compilation:</para>
    5656
    57 <screen><userinput>./configure --prefix=/ --enable-zlib</userinput></screen>
     57<screen><userinput>./configure --prefix=/ --enable-zlib \
     58    --mandir=/usr/share/man</userinput></screen>
    5859
    5960    <para>Compile the package:</para>
    6061
  • trunk/BOOK/chapter06/shadow.xml

     
    5454
    5555    <para>Prepare Shadow for compilation:</para>
    5656
    57 <screen><userinput>./configure --libdir=/lib --enable-shared --without-selinux</userinput></screen>
     57<screen><userinput>./configure --libdir=/lib --enable-shared --without-selinux \
     58    --mandir=/usr/share/man</userinput></screen>
    5859
    5960    <variablelist>
    6061      <title>The meaning of the configure options:</title>
     
    7172    </variablelist>
    7273
    7374    <para>Disable the installation of the <command>groups</command> program
    74     and its man page, as Coreutils provides a better version:</para>
     75    and its man pages, as Coreutils provides a better version:</para>
    7576
    7677<screen><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
    7778find man -name Makefile -exec sed -i '/groups/d' {} \;</userinput></screen>
  • trunk/BOOK/chapter06/diffutils.xml

     
    5252
    5353    <para>Prepare Diffutils for compilation:</para>
    5454
    55 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     55<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     56    --infodir=/usr/share/info</userinput></screen>
    5657
    5758    <para>Compile the package:</para>
    5859
  • trunk/BOOK/chapter06/libtool.xml

     
    4747
    4848    <para>Prepare Libtool for compilation:</para>
    4949
    50 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     50<screen><userinput>./configure --prefix=/usr --infodir=/usr/share/info</userinput></screen>
    5151
    5252    <para>Compile the package:</para>
    5353
  • trunk/BOOK/chapter06/texinfo.xml

     
    5959
    6060    <para>Prepare Texinfo for compilation:</para>
    6161
    62 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     62<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     63    --infodir=/usr/share/info</userinput></screen>
    6364
    6465    <para>Compile the package:</para>
    6566
  • trunk/BOOK/chapter06/m4.xml

     
    4545
    4646    <para>Prepare M4 for compilation:</para>
    4747
    48 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     48<screen><userinput>./configure --prefix=/usr --infodir=/usr/share/info</userinput></screen>
    4949
    5050    <para>Compile the package:</para>
    5151
  • trunk/BOOK/chapter06/gcc.xml

     
    8686<screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr \
    8787    --libexecdir=/usr/lib --enable-shared \
    8888    --enable-threads=posix --enable-__cxa_atexit \
    89     --enable-clocale=gnu --enable-languages=c,c++</userinput></screen>
     89    --enable-clocale=gnu --enable-languages=c,c++ \
     90    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    9091
    9192    <para>Compile the package:</para>
    9293
  • trunk/BOOK/chapter06/man-db.xml

     
    8484
    8585    <para>Prepare Man-DB for compilation:</para>
    8686
    87 <screen><userinput>./configure --prefix=/usr --enable-mb-groff --disable-setuid</userinput></screen>
     87<screen><userinput>./configure --prefix=/usr --enable-mb-groff --disable-setuid \
     88    --mandir=/usr/share/man</userinput></screen>
    8889
    8990    <variablelist>
    9091      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/patch.xml

     
    4747
    4848    <para>Prepare Patch for compilation.</para>
    4949
    50 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     50<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man</userinput></screen>
    5151
    5252    <para>Compile the package:</para>
    5353
  • trunk/BOOK/chapter06/groff.xml

     
    7272
    7373    <para>Prepare Groff for compilation:</para>
    7474
    75 <screen><userinput>PAGE=<replaceable>[paper_size]</replaceable> ./configure --prefix=/usr --enable-multibyte</userinput></screen>
     75<screen><userinput>PAGE=<replaceable>[paper_size]</replaceable> ./configure --prefix=/usr --enable-multibyte \
     76    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    7677
    7778    <para>Compile the package:</para>
    7879
  • trunk/BOOK/chapter06/less.xml

     
    4545
    4646    <para>Prepare Less for compilation:</para>
    4747
    48 <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
     48<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
     49    --mandir=/usr/share/man</userinput></screen>
    4950
    5051    <variablelist>
    5152      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/readline.xml

     
    5151
    5252    <para>Prepare Readline for compilation:</para>
    5353
    54 <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
     54<screen><userinput>./configure --prefix=/usr --libdir=/lib \
     55    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    5556
    5657    <para>Compile the package:</para>
    5758
  • trunk/BOOK/chapter06/bzip2.xml

     
    6262
    6363<screen><userinput>sed -i 's@tempfile -d /tmp -p bz@mktemp -p /tmp@' bzdiff</userinput></screen>
    6464
     65    <para> Bzip2's Makefile hardcodes "$(PREFIX)/man" for installing man pages.
     66    Change it to the FHS-compliant location of $(PREFIX)/share/man with a
     67    sed command:</para>
     68
     69<screen><userinput>sed -i 's@X)/man@X)/share/man@g' ./Makefile</userinput></screen>
     70
    6571    <para>Prepare Bzip2 for compilation with:</para>
    6672
    6773<screen><userinput>make -f Makefile-libbz2_so
  • trunk/BOOK/chapter06/tar.xml

     
    5656
    5757    <para>Prepare Tar for compilation:</para>
    5858
    59 <screen><userinput>./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
     59<screen><userinput>./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin \
     60    --infodir=/usr/share/info</userinput></screen>
    6061
    6162    <para>Compile the package:</para>
    6263
  • trunk/BOOK/chapter06/gawk.xml

     
    5151
    5252    <para>Prepare Gawk for compilation:</para>
    5353
    54 <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
     54<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib \
     55    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    5556
    5657    <para>Due to a bug in the <command>configure</command> script, Gawk fails
    5758    to detect certain aspects of locale support in Glibc. This bug leads to,
  • trunk/BOOK/chapter06/binutils.xml

     
    6868    <para>Prepare Binutils for compilation:</para>
    6969
    7070<screen><userinput>../binutils-&binutils-version;/configure --prefix=/usr \
    71     --enable-shared</userinput></screen>
     71    --enable-shared --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    7272
     73    <variablelist>
     74      <title>The meaning of the configure options:</title>
     75
     76      <varlistentry>
     77        <term><parameter>--mandir=/usr/share/man</parameter></term>
     78        <listitem>
     79          <para>This makes binutils install its man pages into the appropriate
     80          FHS-compliant location instead of /usr/man.</para>
     81        </listitem>
     82      </varlistentry>
     83
     84    </variablelist>
     85
     86
    7387    <para>Compile the package:</para>
    7488
    7589<screen><userinput>make tooldir=/usr</userinput></screen>
  • trunk/BOOK/chapter06/vim.xml

     
    6363
    6464    <para>Now prepare Vim for compilation:</para>
    6565
    66 <screen><userinput>./configure --prefix=/usr --enable-multibyte</userinput></screen>
     66<screen><userinput>./configure --prefix=/usr --enable-multibyte --mandir=/usr/share/man</userinput></screen>
    6767
    6868    <variablelist>
    6969      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/grep.xml

     
    5555
    5656    <para>Prepare Grep for compilation:</para>
    5757
    58 <screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
     58<screen><userinput>./configure --prefix=/usr --bindir=/bin \
     59    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    5960
    6061    <para>Compile the package:</para>
    6162
  • trunk/BOOK/chapter06/grub.xml

     
    5252
    5353    <para>Prepare GRUB for compilation:</para>
    5454
    55 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     55<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     56    --infodir=/usr/share/info</userinput></screen>
    5657
    5758    <para>Compile the package:</para>
    5859
  • trunk/BOOK/chapter06/findutils.xml

     
    4949    <para>Prepare Findutils for compilation:</para>
    5050
    5151<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/findutils \
    52     --localstatedir=/var/lib/locate</userinput></screen>
     52    --localstatedir=/var/lib/locate --mandir=/usr/share/man \
     53    --infodir=/usr/share/info</userinput></screen>
    5354
    5455    <variablelist>
    5556      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/gzip.xml

     
    5151
    5252    <para>Prepare Gzip for compilation:</para>
    5353
    54 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     54<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     55    --infodir=/usr/share/info</userinput></screen>
    5556
    5657    <para>The <command>gzexe</command> script has the location of the
    5758    <command>gzip</command> binary hard-wired into it. Because the
  • trunk/BOOK/chapter06/bash.xml

     
    5858    <para>Prepare Bash for compilation:</para>
    5959
    6060<screen><userinput>./configure --prefix=/usr --bindir=/bin \
    61     --without-bash-malloc --with-installed-readline</userinput></screen>
     61    --without-bash-malloc --with-installed-readline \
     62    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    6263
    6364    <variablelist>
    6465      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/glibc.xml

     
    100100
    101101<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
    102102    --disable-profile --enable-add-ons \
    103     --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
     103    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc \
     104    --infodir=/usr/share/info</userinput></screen>
    104105
    105106    <variablelist>
    106107      <title>The meaning of the new configure options:</title>
     
    115116        </listitem>
    116117      </varlistentry>
    117118
     119      <varlistentry>
     120        <term><parameter>--infodir=/usr/share/info</parameter></term>
     121        <listitem>
     122          <para>This makes glibc install its info pages into the appropriate
     123          FHS-compliant location instead of /usr/info.</para>
     124        </listitem>
     125      </varlistentry>
     126
    118127    </variablelist>
    119128
    120129    <para>Compile the package:</para>
  • trunk/BOOK/chapter06/ncurses.xml

     
    5959
    6060    <para>Prepare Ncurses for compilation:</para>
    6161
    62 <screen><userinput>./configure --prefix=/usr --with-shared --without-debug --enable-widec</userinput></screen>
     62<screen><userinput>./configure --prefix=/usr --with-shared --without-debug --enable-widec \
     63    --mandir=/usr/share/man</userinput></screen>
    6364
    6465    <variablelist>
    6566      <title>The meaning of the configure option:</title>
  • trunk/BOOK/chapter06/mktemp.xml

     
    5252
    5353    <para>Prepare Mktemp for compilation:</para>
    5454
    55 <screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
     55<screen><userinput>./configure --prefix=/usr --with-libc --mandir=/usr/share/man</userinput></screen>
    5656
    5757    <variablelist>
    5858      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/flex.xml

     
    4646
    4747    <para>Prepare Flex for compilation:</para>
    4848
    49 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     49<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     50    --infodir=/usr/share/info</userinput></screen>
    5051
    5152    <para>Compile the package:</para>
    5253
  • trunk/BOOK/chapter06/psmisc.xml

     
    4646
    4747    <para>Prepare Psmisc for compilation:</para>
    4848
    49 <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
     49<screen><userinput>./configure --prefix=/usr --exec-prefix="" --mandir=/usr/share/man</userinput></screen>
    5050
    5151    <variablelist>
    5252      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/e2fsprogs.xml

     
    5555    <para>Prepare E2fsprogs for compilation:</para>
    5656
    5757<screen><userinput>../configure --prefix=/usr --with-root-prefix="" \
    58     --enable-elf-shlibs --disable-evms</userinput></screen>
     58    --enable-elf-shlibs --disable-evms --mandir=/usr/share/man \
     59    --infodir=/usr/share/info</userinput></screen>
    5960
    6061    <variablelist>
    6162      <title>The meaning of the configure options:</title>
  • trunk/BOOK/chapter06/bison.xml

     
    4545
    4646    <para>Prepare Bison for compilation:</para>
    4747
    48 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     48<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     49    --infodir=/usr/share/info</userinput></screen>
    4950
    5051    <para>The configure system causes bison to be built without support for
    5152    internationalization of error messages if a <command>bison</command>
  • trunk/BOOK/chapter06/sed.xml

     
    4545
    4646    <para>Prepare Sed for compilation:</para>
    4747
    48 <screen><userinput>./configure --prefix=/usr --bindir=/bin --enable-html</userinput></screen>
     48<screen><userinput>./configure --prefix=/usr --bindir=/bin --enable-html \
     49    --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen>
    4950
    5051    <variablelist>
    5152      <title>The meaning of the new configure option:</title>
  • trunk/BOOK/chapter06/make.xml

     
    4545
    4646    <para>Prepare Make for compilation:</para>
    4747
    48 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     48<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     49    --infodir=/usr/share/info</userinput></screen>
    4950
    5051    <para>Compile the package:</para>
    5152
  • trunk/BOOK/chapter06/autoconf.xml

     
    4545
    4646    <para>Prepare Autoconf for compilation:</para>
    4747
    48 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     48<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man \
     49    --infodir=/usr/share/info</userinput></screen>
    4950
    5051    <para>Compile the package:</para>
    5152
  • trunk/BOOK/chapter06/file.xml

     
    4646
    4747    <para>Prepare File for compilation:</para>
    4848
    49 <screen><userinput>./configure --prefix=/usr</userinput></screen>
     49<screen><userinput>./configure --prefix=/usr --mandir=/usr/share/man</userinput></screen>
    5050
    5151    <para>Compile the package:</para>
    5252