All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem getting PulseAudio Server Binaries
@ 2011-06-29  8:55 Akshat Saha
  2011-06-29  9:01 ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Akshat Saha @ 2011-06-29  8:55 UTC (permalink / raw)
  To: poky


[-- Attachment #1.1: Type: text/plain, Size: 4098 bytes --]

Hi All,

I am trying to pull PulseAudio.
But am able to get *conf(/usr/share/pulseaudio)* files only in my RFS.
In the pulseaudio.inc file, it can be observed below that there are some
function and parametres specific to *pulseaudio-server package . Can anyone
guide me on how to get other pulseaudio binaries and configs into my build**
.*

*I am using Ubuntu 10.10, 64-bit Host machine.
Building for MACHINE?="fishriver"
*
*Command used to build:*
$ bitbake poky-image-minimal-xyz-live

*Contents of the poky-image-minimal-xyz.bb :*
require recipes-core/images/poky-image-minimal.bb
IMAGE_INSTALL += "pulseaudio"
LICENSE = "MIT"

*Excrepts from pulseaudio.inc, for quick reference :*
:
:
PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse
libpulse-simple libpulse-browse libpulse-mainloop-glib \
             *pulseaudio-server *pulseaudio-misc pulseaudio-gconf-helper"

#upgrade path:
*RREPLACES_pulseaudio-server = "libpulse-bin libpulse-conf"*

PACKAGES_DYNAMIC = "pulseaudio-lib* pulseaudio-module* libpulse-lib*
libpulse-module* "

FILES_libpulsecore = "${libdir}/libpulsecore*.so"
FILES_libpulsecommon = "${libdir}/libpulsecommon*.so"
FILES_libpulsedsp = "${libdir}/libpulsedsp*.so"
FILES_libpulse = "${libdir}/libpulse.so.*"
FILES_libpulse-simple = "${libdir}/libpulse-simple.so.*"
FILES_libpulse-browse = "${libdir}/libpulse-browse.so.*"
FILES_libpulse-mainloop-glib = "${libdir}/libpulse-mainloop-glib.so.*"

FILES_${PN}-dbg += "${libexecdir}/pulse/.debug \
                    ${libdir}/pulse-${PV}/modules/.debug"
FILES_${PN}-dev += "${libdir}/pulse-${PV}/modules/*.la"
*FILES_${PN}-conf = "${sysconfdir}"*
FILES_${PN}-bin = "${bindir}/* \
                   ${sysconfdir}/default/volatiles/volatiles.04_pulse"
FILES_${PN}-server = "${bindir}/pulseaudio ${bindir}/start-* ${sysconfdir}
${bindir}/pactl"
FILES_${PN}-gconf-helper = "${libexecdir}/pulse/gconf-helper"
FILES_${PN}-misc = "${bindir}/*"

# Allow the pulseaudio package to be created empty as a placeholder (-dbg
and -dev depend on it)
ALLOW_EMPTY_${PN} = "1"

*CONFFILES_pulseaudio-server = "\ *
  ${sysconfdir}/pulse/default.pa \
  ${sysconfdir}/pulse/daemon.conf \
  ${sysconfdir}/pulse/client.conf \
  "

*pkg_postinst_${PN}-server() {*
        # can't do this offline
        if [ "x$D" != "x" ]; then
                exit 1
        fi
        grep -q pulse: /etc/group || addgroup pulse
        grep -q pulse: /etc/passwd || \
            adduser --disabled-password --home=/var/run/pulse --system \
                    --ingroup pulse --no-create-home -g "Pulse audio daemon"
pulse
        addgroup pulse audio
        /etc/init.d/populate-volatile.sh update
}

*pkg_postrm_${PN}-server() {*
        deluser pulse || true
}

python populate_packages_prepend() {
        #bb.data.setVar('PKG_pulseaudio', 'pulseaudio', d)

        plugindir = bb.data.expand('${libdir}/pulse-${PV}/modules/', d)
        do_split_packages(d, plugindir, '^module-(.*)\.so$',
'pulseaudio-module-%s', 'PulseAudio module for %s', extra_depends='' )
        do_split_packages(d, plugindir, '^lib(.*)\.so$',
'pulseaudio-lib-%s', 'PulseAudio library for %s', extra_depends='' )
}

RDEPENDS_pulseaudio-module-console-kit =+ "consolekit"
RDEPENDS_pulseaudio-module-hal_detect =+ "hal"
*RDEPENDS_pulseaudio-server = " \*
    pulseaudio-module-device-restore \
    pulseaudio-module-stream-restore \
    pulseaudio-module-card-restore \
    pulseaudio-module-augment-properties \
    pulseaudio-module-detect \
    pulseaudio-module-alsa-sink \
    pulseaudio-module-alsa-source \
    pulseaudio-module-alsa-card \
    pulseaudio-module-native-protocol-unix \
    pulseaudio-module-hal-detect \
    pulseaudio-module-default-device-restore \
    pulseaudio-module-rescue-streams \
    pulseaudio-module-always-sink \
    pulseaudio-module-suspend-on-idle \
    pulseaudio-module-console-kit \
    pulseaudio-module-position-event-sounds \
    pulseaudio-module-cork-music-on-phone "
*
*

-- 
Thanks In Advance [?]
Akshat

[-- Attachment #1.2: Type: text/html, Size: 12999 bytes --]

[-- Attachment #2: 328.png --]
[-- Type: image/png, Size: 569 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem getting PulseAudio Server Binaries
  2011-06-29  8:55 Problem getting PulseAudio Server Binaries Akshat Saha
@ 2011-06-29  9:01 ` Richard Purdie
  2011-06-29 10:52   ` Akshat Saha
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2011-06-29  9:01 UTC (permalink / raw)
  To: Akshat Saha; +Cc: poky

On Wed, 2011-06-29 at 14:25 +0530, Akshat Saha wrote:
> Hi All,
> 
> I am trying to pull PulseAudio.
> But am able to get conf(/usr/share/pulseaudio) files only in my RFS.
> In the pulseaudio.inc file, it can be observed below that there are
> some function and parametres specific to pulseaudio-server package .
> Can anyone guide me on how to get other pulseaudio binaries and
> configs into my build.
> 
> I am using Ubuntu 10.10, 64-bit Host machine.
> Building for MACHINE?="fishriver"
> 
> Command used to build:
> $ bitbake poky-image-minimal-xyz-live
> 
> Contents of the poky-image-minimal-xyz.bb :
> require recipes-core/images/poky-image-minimal.bb
> IMAGE_INSTALL += "pulseaudio" 
> LICENSE = "MIT"

You're close here. If you look through this list:

> PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse
> libpulse-simple libpulse-browse libpulse-mainloop-glib \
>              pulseaudio-server pulseaudio-misc
> pulseaudio-gconf-helper"

you can then change IMAGE_INSTALL to include the pieces you want, e.g:

IMAGE_INSTALL += "pulseaudio-server" 

Cheers,

Richard



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem getting PulseAudio Server Binaries
  2011-06-29  9:01 ` Richard Purdie
@ 2011-06-29 10:52   ` Akshat Saha
  2011-06-29 12:47     ` Akshat Saha
  0 siblings, 1 reply; 5+ messages in thread
From: Akshat Saha @ 2011-06-29 10:52 UTC (permalink / raw)
  To: Richard Purdie; +Cc: poky

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

Thanks Richard,

I had tried this earlier too, but was building after clearing pulseaudio
instances form sstate-cache/ tmp/stamps and tmp/work.
It was giving me *"unbuildable, Nothing provides ... "* error.

But now, it seems to work just fine. :)
Will try it out. And post the results.

--
Thanks & Regards,
Akshat


On Wed, Jun 29, 2011 at 2:31 PM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Wed, 2011-06-29 at 14:25 +0530, Akshat Saha wrote:
> > Hi All,
> >
> > I am trying to pull PulseAudio.
> > But am able to get conf(/usr/share/pulseaudio) files only in my RFS.
> > In the pulseaudio.inc file, it can be observed below that there are
> > some function and parametres specific to pulseaudio-server package .
> > Can anyone guide me on how to get other pulseaudio binaries and
> > configs into my build.
> >
> > I am using Ubuntu 10.10, 64-bit Host machine.
> > Building for MACHINE?="fishriver"
> >
> > Command used to build:
> > $ bitbake poky-image-minimal-xyz-live
> >
> > Contents of the poky-image-minimal-xyz.bb :
> > require recipes-core/images/poky-image-minimal.bb
> > IMAGE_INSTALL += "pulseaudio"
> > LICENSE = "MIT"
>
> You're close here. If you look through this list:
>
> > PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse
> > libpulse-simple libpulse-browse libpulse-mainloop-glib \
> >              pulseaudio-server pulseaudio-misc
> > pulseaudio-gconf-helper"
>
> you can then change IMAGE_INSTALL to include the pieces you want, e.g:
>
> IMAGE_INSTALL += "pulseaudio-server"
>
> Cheers,
>
> Richard
>
>

[-- Attachment #2: Type: text/html, Size: 2382 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem getting PulseAudio Server Binaries
  2011-06-29 10:52   ` Akshat Saha
@ 2011-06-29 12:47     ` Akshat Saha
  2011-06-29 14:47       ` Mark Hatle
  0 siblings, 1 reply; 5+ messages in thread
From: Akshat Saha @ 2011-06-29 12:47 UTC (permalink / raw)
  To: Richard Purdie; +Cc: poky

[-- Attachment #1: Type: text/plain, Size: 2104 bytes --]

Hi Richard,

PulseAudio seems to work fine now, but *pkg_postinst_${PN}-server() *does
not seem to be working.
Can you tell me how to make sure that it works, so that I do not have to do
create *pulse* user manually, after booting the machine.
Also can you tell me *pkg_postrm_ implies?*

-- 
Thanks & Regards,
Akshat



On Wed, Jun 29, 2011 at 4:22 PM, Akshat Saha <akshat.embedded@gmail.com>wrote:

> Thanks Richard,
>
> I had tried this earlier too, but was building after clearing pulseaudio
> instances form sstate-cache/ tmp/stamps and tmp/work.
> It was giving me *"unbuildable, Nothing provides ... "* error.
>
> But now, it seems to work just fine. :)
> Will try it out. And post the results.
>
> --
> Thanks & Regards,
> Akshat
>
>
> On Wed, Jun 29, 2011 at 2:31 PM, Richard Purdie <
> richard.purdie@linuxfoundation.org> wrote:
>
>> On Wed, 2011-06-29 at 14:25 +0530, Akshat Saha wrote:
>> > Hi All,
>> >
>> > I am trying to pull PulseAudio.
>> > But am able to get conf(/usr/share/pulseaudio) files only in my RFS.
>> > In the pulseaudio.inc file, it can be observed below that there are
>> > some function and parametres specific to pulseaudio-server package .
>> > Can anyone guide me on how to get other pulseaudio binaries and
>> > configs into my build.
>> >
>> > I am using Ubuntu 10.10, 64-bit Host machine.
>> > Building for MACHINE?="fishriver"
>> >
>> > Command used to build:
>> > $ bitbake poky-image-minimal-xyz-live
>> >
>> > Contents of the poky-image-minimal-xyz.bb :
>> > require recipes-core/images/poky-image-minimal.bb
>> > IMAGE_INSTALL += "pulseaudio"
>> > LICENSE = "MIT"
>>
>> You're close here. If you look through this list:
>>
>> > PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse
>> > libpulse-simple libpulse-browse libpulse-mainloop-glib \
>> >              pulseaudio-server pulseaudio-misc
>> > pulseaudio-gconf-helper"
>>
>> you can then change IMAGE_INSTALL to include the pieces you want, e.g:
>>
>> IMAGE_INSTALL += "pulseaudio-server"
>>
>> Cheers,
>>
>> Richard
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 3405 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem getting PulseAudio Server Binaries
  2011-06-29 12:47     ` Akshat Saha
@ 2011-06-29 14:47       ` Mark Hatle
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Hatle @ 2011-06-29 14:47 UTC (permalink / raw)
  To: poky

On 6/29/11 7:47 AM, Akshat Saha wrote:
> Hi Richard,
> 
> PulseAudio seems to work fine now, but *pkg_postinst_${PN}-server() *does not
> seem to be working.
> Can you tell me how to make sure that it works, so that I do not have to do
> create *pulse* user manually, after booting the machine.
> Also can you tell me *pkg_postrm_ implies?*

We are still working on getting the code that will allow user/group
add/change/delete from within the postinst and postrm scripts.  postinst = run
this after installation, postrm = run this after the package has been removed.

I would hope that the code to allow user/group settings will be checked finished
and checked in in the next couple of days.  Once it is there will be a simple
format for specifying new users and groups to be added to the system.

--Mark

> -- 
> Thanks & Regards,
> Akshat 
> 
> 
> 
> On Wed, Jun 29, 2011 at 4:22 PM, Akshat Saha <akshat.embedded@gmail.com
> <mailto:akshat.embedded@gmail.com>> wrote:
> 
>     Thanks Richard,
> 
>     I had tried this earlier too, but was building after clearing pulseaudio
>     instances form sstate-cache/ tmp/stamps and tmp/work.
>     It was giving me *"unbuildable, Nothing provides ... "* error.
> 
>     But now, it seems to work just fine. :)
>     Will try it out. And post the results.
> 
>     --
>     Thanks & Regards,
>     Akshat
> 
> 
>     On Wed, Jun 29, 2011 at 2:31 PM, Richard Purdie
>     <richard.purdie@linuxfoundation.org
>     <mailto:richard.purdie@linuxfoundation.org>> wrote:
> 
>         On Wed, 2011-06-29 at 14:25 +0530, Akshat Saha wrote:
>         > Hi All,
>         >
>         > I am trying to pull PulseAudio.
>         > But am able to get conf(/usr/share/pulseaudio) files only in my RFS.
>         > In the pulseaudio.inc file, it can be observed below that there are
>         > some function and parametres specific to pulseaudio-server package .
>         > Can anyone guide me on how to get other pulseaudio binaries and
>         > configs into my build.
>         >
>         > I am using Ubuntu 10.10, 64-bit Host machine.
>         > Building for MACHINE?="fishriver"
>         >
>         > Command used to build:
>         > $ bitbake poky-image-minimal-xyz-live
>         >
>         > Contents of the poky-image-minimal-xyz.bb
>         <http://poky-image-minimal-xyz.bb> :
>         > require recipes-core/images/poky-image-minimal.bb
>         <http://poky-image-minimal.bb>
>         > IMAGE_INSTALL += "pulseaudio"
>         > LICENSE = "MIT"
> 
>         You're close here. If you look through this list:
> 
>         > PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse
>         > libpulse-simple libpulse-browse libpulse-mainloop-glib \
>         >              pulseaudio-server pulseaudio-misc
>         > pulseaudio-gconf-helper"
> 
>         you can then change IMAGE_INSTALL to include the pieces you want, e.g:
> 
>         IMAGE_INSTALL += "pulseaudio-server"
> 
>         Cheers,
> 
>         Richard
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-06-29 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29  8:55 Problem getting PulseAudio Server Binaries Akshat Saha
2011-06-29  9:01 ` Richard Purdie
2011-06-29 10:52   ` Akshat Saha
2011-06-29 12:47     ` Akshat Saha
2011-06-29 14:47       ` Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.