Canberra

blubee blubeeme gurenchan at gmail.com
Tue Dec 19 07:30:41 UTC 2017


On Tue, Dec 19, 2017 at 3:24 PM, Sid <sid at bsdmail.com> wrote:

> > blubee blubeeme
> > I am porting py-canberra which isn't required but an
> > optional dependency for another port that I am working on.
>
> > I wonder should I leave it as is or make a dependency from this thing
> you're working on instead?
>
> > blubee blubeeme
> > py-canberra is just a python wrapper for libcanberra
>
> Perhaps audio/libcanberra should be a dependency of devel/pycanberra.
> audio/libcanberra-gtk3 looks like it has options and requests for
> unnecessary dependencies.
>
> > Sid
> > Canberra is an audio application for playing simple sounds like "DING!".
> > For playing sound, I am convinced that graphical dependencies for
> audio/libcanberra and audio/libcanberra-gtk3 aren't needed:
> x11-toolkits/gtk30, x11-toolkits/gtk20, accessibility/atk.
> > According to Freshports, both libcanberra and libcanberra-gtk3 refer to
> the file libcanberra-0.30.tar.xz of the same SHA256 and size.
> > The difference between these two is one pulls in gtk3 as well.
>
> libcanberra-gtk3 also has options for pulseaudio, and gstreamer.
>
> > Pango is for left to right text, perhaps for displaying audio
> information to the user.
> > Its description is its "code is platform- and toolkit-independent."
> > For it to display a simple banner or visual it shouldn't require heavy
> graphical dependencies.
> > Also, Pango should be made into an option for Canberra, so it can
> definitely be compiled without atk, gtk30 or gtk20.
> > Pango doesn't require these three graphical dependencies, so Canberra
> especially shouldn't.
>
> > The port audio/freedesktop-sound-theme just has sound files, and no
> libraries.
>
> pango and freedesktop-sound-themes should be options for libcanberra.
>
> I'm convinced that gtk30, gtk20, atk, pulseaudio, and gstreamer shouldn't
> be options or required in libcanberra or libcanberra-gtk3. (pango and atk
> are not in the Makefiles, but Freshports shows them.)
> libcanberra-gtk3 should be merged back into libcanberra. I've only tested
> removing all of these options for one port that asked for both canberra
> libraries, and it compiled and played sound.
>
>
> Thank you.
>
That's good to know and I should most likely be able to implement the same
in py-canberra or leave it off all together.
It's mostly used for python bindings into the gnome DE which might not be
running, definitely not running in my use case.


More information about the freebsd-ports mailing list