Changeset 25d274a


Ignore:
Timestamp:
03/09/2023 07:57:26 PM (14 months ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
dce3118
Parents:
0380184
Message:

Update to libpaper-2.0.10.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/libpaper.xml

    r0380184 r25d274a  
    55  %general-entities;
    66
    7   <!ENTITY libpaper-download-http "https://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_&libpaper-version;.tar.gz">
     7  <!ENTITY libpaper-download-http "https://github.com/rrthomas/libpaper/releases/download/v&libpaper-version;/libpaper-&libpaper-version;.tar.gz">
    88  <!ENTITY libpaper-download-ftp  " ">
    9   <!ENTITY libpaper-md5sum        "38bc55688c0fc5544edaa5a951a45fbd">
    10   <!ENTITY libpaper-size          "48 KB">
    11   <!ENTITY libpaper-buildsize     "3.5 MB">
    12   <!ENTITY libpaper-time          "less than 0.1 SBU">
     9  <!ENTITY libpaper-md5sum        "39322b429e795e33410db65b6d2fe163">
     10  <!ENTITY libpaper-size          "1.2 MB">
     11  <!ENTITY libpaper-buildsize     "11 MB (with tests)">
     12  <!ENTITY libpaper-time          "0.1 SBU (with tests)">
    1313]>
    1414
     
    8181    </para>
    8282
    83 <screen><userinput>autoreconf -fi                &amp;&amp;
    84 ./configure --prefix=/usr     \
    85             --sysconfdir=/etc \
    86             --disable-static &amp;&amp;
     83<screen><userinput>./configure --prefix=/usr        \
     84            --sysconfdir=/etc    \
     85            --disable-static     \
     86            --enable-relocatable \
     87            --docdir=/usr/share/doc/paper-&libpaper-version; &amp;&amp;
    8788make</userinput></screen>
    8889
    8990    <para>
    90       This package does not come with a test suite.
     91      To test the results, issue: <command>make check</command>.
    9192    </para>
    9293
    9394    <para>
    94       Now, as the <systemitem class="username">root</systemitem> user:
     95      Now, as the &root; user:
    9596    </para>
    9697
    97 <screen role="root"><userinput>make install &amp;&amp;
    98 mkdir -vp /etc/libpaper.d</userinput></screen>
     98<screen role="root"><userinput>make install</userinput></screen>
    9999
    100      <para>
    101        The /etc/libpaper.d directory contains scripts to run after the paper
    102        size has been changed. This package puts no scripts here, but other
    103        packages may.  If the fcron package has not been installed, create the
    104        <command>run-parts</command> script as shown in the <xref
    105        linkend='run-parts'/> section.
    106      </para>
    107 
    108 <!--
    109 cat &gt; /usr/bin/run-parts &lt;&lt; "EOF"
    110 <literal>#!/bin/sh
    111 # run-parts:  Runs all the scripts found in a directory.
    112 # from Slackware, by Patrick J. Volkerding with ideas borrowed
    113 # from the Red Hat and Debian versions of this utility.
    114 
    115 # keep going when something fails
    116 set +e
    117 
    118 if [ $# -lt 1 ]; then
    119   echo "Usage: run-parts &lt;directory&gt;"
    120   exit 1
    121 fi
    122 
    123 if [ ! -d $1 ]; then
    124   echo "Not a directory: $1"
    125   echo "Usage: run-parts &lt;directory&gt;"
    126   exit 1
    127 fi
    128 
    129 # There are several types of files that we would like to
    130 # ignore automatically, as they are likely to be backups
    131 # of other scripts:
    132 IGNORE_SUFFIXES="~ ^ , .bak .new .rpmsave .rpmorig .rpmnew .swp"
    133 
    134 # Main loop:
    135 for SCRIPT in $1/* ; do
    136   # If this is not a regular file, skip it:
    137   if [ ! -f $SCRIPT ]; then
    138     continue
    139   fi
    140   # Determine if this file should be skipped by suffix:
    141   SKIP=false
    142   for SUFFIX in $IGNORE_SUFFIXES ; do
    143     if [ ! "$(basename $SCRIPT $SUFFIX)" = "$(basename $SCRIPT)" ]; then
    144       SKIP=true
    145       break
    146     fi
    147   done
    148   if [ "$SKIP" = "true" ]; then
    149     continue
    150   fi
    151   # If we've made it this far, then run the script if it's executable:
    152   if [ -x $SCRIPT ]; then
    153     $SCRIPT || echo "$SCRIPT failed."
    154   fi
    155 done
    156 
    157 exit 0</literal>
    158 EOF
    159 
    160 chmod -v 755 /usr/bin/run-parts</userinput></screen>
    161 -->
    162100  </sect2>
    163101
     
    169107
    170108    <para>
    171       <command>mkdir -pv /etc/libpaper.d</command>:
    172       <application>libpaper</application> expects that packages will install
    173       files into this directory.
     109      <option>--enable-relocatable</option>:
     110      This option is needed to run the tests.
    174111    </para>
    175 <!--
    176     <para>
    177       <command>cat &gt; /usr/bin/run-parts &lt;&lt; "EOF"</command> :
    178       <filename>paperconfig</filename> is a script which will invoke
    179       <command>run-parts</command> if <filename
    180       class="directory">/etc/libpaper.d</filename> exists. No other BLFS
    181       package installs this, so we create it here.
    182     </para>
    183 -->
     112
    184113  </sect2>
    185114
     
    191120
    192121      <para>
    193         Create <filename>/etc/papersize</filename> to set the default
     122        Create <filename>/etc/paper</filename> to set the default
    194123        system paper size.  Issue the following command as the
    195         <systemitem class="username">root</systemitem> user to set this to
    196         &apos;A4&apos; (libpaper prefers the lowercase form). You may wish
     124        &root; user to set this to 'a4'. You may wish
    197125        to use a different size, such as letter.
    198126      </para>
    199127
    200 <screen role="root"><userinput>cat &gt; /etc/papersize &lt;&lt; "EOF"
    201 <literal>a4</literal>
    202 EOF</userinput></screen>
     128<screen role="root"><userinput>echo "a4" &gt; /etc/paper</userinput></screen>
    203129
    204130    </sect3>
     
    216142      <seglistitem>
    217143        <seg>
    218           paperconf, paperconfig, run-parts
     144          paper
    219145        </seg>
    220146        <seg>
     
    222148        </seg>
    223149        <seg>
    224           /etc/libpaper.d
     150          /usr/share/doc/paper-&libpaper-version;
    225151        </seg>
    226152      </seglistitem>
     
    232158      <?dbhtml list-presentation="table"?>
    233159
    234       <varlistentry id="paperconf">
    235         <term><command>paperconf</command></term>
     160      <varlistentry id="paper">
     161        <term><command>paper</command></term>
    236162        <listitem>
    237163          <para>
    238164            prints paper configuration information
    239165          </para>
    240           <indexterm zone="libpaper paperconf">
    241             <primary sortas="b-paperconf">paperconf</primary>
     166          <indexterm zone="libpaper paper">
     167            <primary sortas="b-paper">paper</primary>
    242168          </indexterm>
    243169        </listitem>
    244170      </varlistentry>
    245171
    246       <varlistentry id="paperconfig">
    247         <term><command>paperconfig</command></term>
    248         <listitem>
    249           <para>
    250             configures the system default paper size
    251           </para>
    252           <indexterm zone="libpaper paperconfig">
    253             <primary sortas="b-paperconfig">paperconfig</primary>
    254           </indexterm>
    255         </listitem>
    256       </varlistentry>
    257 <!--
    258       <varlistentry id="run-parts">
    259         <term><command>run-parts</command></term>
    260         <listitem>
    261           <para>
    262             runs all the scripts found in a directory.
    263           </para>
    264           <indexterm zone="libpaper run-parts">
    265             <primary sortas="b-run-parts">run-parts</primary>
    266           </indexterm>
    267         </listitem>
    268       </varlistentry>
    269 -->
    270172      <varlistentry id="libpaper-lib">
    271173        <term><filename class="libraryfile">libpaper.so</filename></term>
  • introduction/welcome/changelog.xml

    r0380184 r25d274a  
    4343      <itemizedlist>
    4444        <listitem>
     45          <para>[bdubbs] - Update to libpaper-2.0.10. Fixes
     46          <ulink url="&blfs-ticket-root;17770">#17770</ulink>.</para>
     47        </listitem>
     48        <listitem>
    4549          <para>[bdubbs] - Update to cmake-3.25.3. Fixes
    4650          <ulink url="&blfs-ticket-root;17766">#17766</ulink>.</para>
  • packages.ent

    r0380184 r25d274a  
    145145<!ENTITY liblinear-version            "246">
    146146<!ENTITY libmbim-version              "1.26.4">
    147 <!ENTITY libpaper-version             "1.1.24+nmu5">
     147<!ENTITY libpaper-version             "2.0.10">
    148148<!ENTITY libportal-version            "0.6">
    149149<!ENTITY libptytty-version            "2.0">
Note: See TracChangeset for help on using the changeset viewer.