Ticket #4667: pulseaudio.patch

File pulseaudio.patch, 7.1 KB (added by Armin K, 10 years ago)
  • general.ent

     
    803803<!ENTITY libvpx-version               "1.3.0">
    804804<!ENTITY opal-version                 "3.10.10">
    805805<!ENTITY opus-version                 "1.1">
    806 <!ENTITY pulseaudio-version           "4.0">
     806<!ENTITY pulseaudio-major-version     "4.99">
     807<!ENTITY pulseaudio-version           "&pulseaudio-major-version;.3">
    807808<!ENTITY sdl-version                  "1.2.15">
    808809<!ENTITY soundtouch-version           "1.8.0">
    809810<!ENTITY speex-version                "1.2rc1">
  • multimedia/libdriv/pulseaudio.xml

     
    77  <!ENTITY pulseaudio-download-http
    88           "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-&pulseaudio-version;.tar.xz">
    99  <!ENTITY pulseaudio-download-ftp  " ">
    10   <!ENTITY pulseaudio-md5sum        "591f211db2790a7e4d222f2dc6858db3">
     10  <!ENTITY pulseaudio-md5sum        "7c0d8f0edbe4556da05b51f8f31cf073">
    1111  <!ENTITY pulseaudio-size          "1.4 MB">
    12   <!ENTITY pulseaudio-buildsize     "105 MB">
     12  <!ENTITY pulseaudio-buildsize     "110 MB">
    1313  <!ENTITY pulseaudio-time          "2.0 SBU">
    1414]>
    1515
     
    8888    <para role="recommended">
    8989      <xref linkend="alsa-lib"/>,
    9090      <xref linkend="dbus"/>,
     91      <xref linkend="glib2"/>,
    9192      <xref linkend="libcap"/>,
    9293      <xref linkend="openssl"/>,
    9394      <xref linkend="speex"/> and
    94       <xref linkend="xorg7-lib"/> <!-- Useful for KDE, too -->
     95      <xref linkend="xorg7-lib"/>
    9596    </para>
    9697
    97     <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
    98     <para role="optional">
    99       <xref linkend="GConf"/>,
    100       <xref linkend="glib2"/> and
    101       <xref linkend="gtk2"/>
    102     </para>
    103 
    10498    <bridgehead renderas="sect4">Optional</bridgehead>
    10599    <para role="optional">
    106100      <xref linkend="avahi"/>,
    107       <xref linkend="bluez"/> and <xref linkend="sbc"/>,
     101      <xref linkend="bluez"/> (runtime),
    108102      <xref linkend="check"/>,
    109103      <ulink url="http://www.fftw.org/">FFTW</ulink>,
     104      <xref linkend="GConf"/>,
     105      <xref linkend="gtk3"/>,
    110106      <ulink url="http://www.jackaudio.org/">JACK</ulink>,
    111107      <ulink url="http://0pointer.de/lennart/projects/libasyncns/">libasyncns</ulink>,
    112108      <xref linkend="libsamplerate"/>,
    113109      <ulink url="http://www.lirc.org/">LIRC</ulink>,
    114110      <ulink url="http://code.entropywave.com/projects/orc/">ORC</ulink>,
     111      <xref linkend="sbc"/> (Bluetooth support),
    115112      <ulink url="http://tdb.samba.org/">TDB</ulink>,
    116113      <ulink url="http://valgrind.org/">Valgrind</ulink>,
    117114      <ulink url="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/">
     
    118115      WebRTC AudioProcessing</ulink> and
    119116      <ulink url="http://www.xen.org/">XEN</ulink>
    120117    </para>
     118
    121119    <para condition="html" role="usernotes">User Notes:
    122120      <ulink url="&blfs-wiki;/pulseaudio"/>
    123121    </para>
     
    127125    <title>Installation of PulseAudio</title>
    128126
    129127    <para>
    130       In order for <application>PulseAudio</application> to communicate
    131       properly with D-BUS, create a unique user. As the <systemitem
    132       class="username">root</systemitem> user, run:
    133     </para>
    134 
    135 <screen role="root"><userinput>groupadd -g 58 pulse &amp;&amp;
    136 groupadd -g 59 pulse-access &amp;&amp;
    137 useradd -c "Pulseaudio User" -d /var/run/pulse -g pulse \
    138         -s /bin/false -u 58 pulse &amp;&amp;
    139 usermod -a -G audio pulse</userinput></screen>
    140 
    141     <para>
    142128      Install <application>PulseAudio</application> by running the following
    143129      commands:
    144130    </para>
    145131
    146132<screen><userinput>find . -name "Makefile.in" | xargs sed -i "s|(libdir)/@PACKAGE@|(libdir)/pulse|" &amp;&amp;
    147 ./configure --prefix=/usr \
    148             --sysconfdir=/etc \
    149             --localstatedir=/var \
     133./configure --prefix=/usr         \
     134            --sysconfdir=/etc     \
     135            --localstatedir=/var  \
    150136            --libexecdir=/usr/lib \
     137            --disable-bluez4      \
     138            --disable-rpath       \
    151139            --with-module-dir=/usr/lib/pulse/modules &amp;&amp;
    152140make</userinput></screen>
    153141
     
    161149
    162150<screen role="root"><userinput>make install</userinput></screen>
    163151
     152    <!-- http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ -->
     153    <para>
     154      While still as the <systemitem class="username">root</systemitem>
     155      user, remove the <application>D-Bus</application> configuration file
     156      for the system wide daemon to avoid creating unnecessary system
     157      users and grups:
     158    </para>
     159
     160<screen role="root"><userinput>rm /etc/dbus-1/system.d/pulseaudio-system.conf</userinput></screen>
     161
    164162  </sect2>
    165163
    166164  <sect2 role="commands">
     
    175173    </para>
    176174
    177175    <para>
     176      <parameter>--disable-bluez4</parameter>: This switch disables
     177      support for <application>BlueZ</application> version 4 in favour
     178      of <application>BlueZ</application> version 5 since the latter
     179      also installs compatibility library for the earlier version.
     180    </para>
     181
     182    <para>
     183      <parameter>--disable-rpath</parameter>: This switch prevents
     184      linker from adding a hardcoded runtime path to the installed
     185      programs and libraries.
     186    </para>
     187
     188    <para>
    178189      <parameter>--with-module-dir=/usr/lib/pulse/modules</parameter>:
    179190      This parameter ensures that <application>PulseAudio</application>
    180191      modules are installed in <filename class="directory">/usr/lib/pulse/modules
    181192      </filename> instead of <filename class="directory">
    182       /usr/lib/pulse-&pulseaudio-version;/modules</filename>.
     193      /usr/lib/pulse-&pulseaudio-major-version;/modules</filename>.
    183194    </para>
    184195
    185196  </sect2>
     
    199210          start-pulseaudio-kde and start-pulseaudio-x11
    200211        </seg>
    201212        <seg>
    202           libpulsecore-&pulseaudio-version;.so, libpulse-mainloop-glib.so,
     213          libpulsecore-&pulseaudio-major-version;.so, libpulse-mainloop-glib.so,
    203214          libpulse-simple.so and libpulse.so
    204215        </seg>
    205216        <seg>
  • postlfs/config/users.xml

     
    102102        <row><entry>stunnel </entry><entry>51</entry><entry>51</entry></row>
    103103        <row><entry>svn     </entry><entry>56</entry><entry>56</entry></row>
    104104        <row><entry>svntest </entry><entry>  </entry><entry>57</entry></row>
    105         <row><entry>pulse   </entry><entry>58</entry><entry>58</entry></row>
    106         <row><entry>pulse-access</entry><entry></entry><entry>59</entry></row>
     105        <!-- <row><entry>pulse   </entry><entry>58</entry><entry>58</entry></row>
     106        <row><entry>pulse-access</entry><entry></entry><entry>59</entry></row> -->
    107107        <row><entry>games   </entry><entry>60</entry><entry>60</entry></row>
    108108        <row><entry>kvm     </entry><entry>  </entry><entry>61</entry></row>
    109109        <row><entry>wireshark</entry><entry> </entry><entry>62</entry></row>