From owner-freebsd-ports@freebsd.org Fri Dec 22 04:45:18 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12FFFEA5AAD for ; Fri, 22 Dec 2017 04:45:18 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mail.gmx.com", Issuer "thawte SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BEAAC673D6 for ; Fri, 22 Dec 2017 04:45:17 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from [108.70.50.7] ([108.70.50.7]) by 3c-app-mailcom-lxa01.server.lan (via HTTP); Fri, 22 Dec 2017 05:45:08 +0100 MIME-Version: 1.0 Message-ID: From: Sid To: "blubee blubeeme" Cc: "FreeBSD Ports" Subject: Re: Canberra Content-Type: text/plain; charset=UTF-8 Date: Fri, 22 Dec 2017 05:45:08 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:LC/wMlFBA+6m0BxncdyopEQYsDS94LpX6oiJlbjZuXx S0cQA5i9fTDWCAA+em60kdruS1z4m1SfAoXSgnyPKgEXc2Wu6V Ri6we54OCNoIV4IegvldGqcvoQq4mUhnPW/Kbu7tA+jgWXX58d dCRNxmJ1UA2CF4uA0dBUSNzysfFdFjy5zngn69KVSQuPm+a2jO 5oHdh+hAs36v8VbsJsuSdNbPWzLOjzoDKDMW2AimGa9QsJLs5U NZf9atNTlw8V/eqFymv+fyabgXtNRGxsqN+Cdp2rsv5jGalNW6 yy9Mt4= X-UI-Out-Filterresults: notjunk:1;V01:K0:30fCbJwaOSM=:mXCSf0yF824QZaSlNxL9id nkz1timlC/VQaTqhSfl/UqGhxotDi3xh2DTDyGBcfmY583GlxTweVNMi/JpYgi2Xuciij0skz AC8jrD60wYyRQ/qcjEWhjIL2E4FG+MNULcKL2BZsmj1RqneL8uZ54JKheGCPxqsqcDoEhOGhf cDhAn0FQiPfSD3VasN2fkLYQ8cCVBXSrlvmA8yZRw6j45mLKyWB0aT51hR6az/WPqgeq1ITEa srWn0xgpjlsBgnkgXX6TmHLpqLlbVHAZcC3+HlygJ5JbDe4ICaKlItBQ69LSB68Vca/utVEbF i5x41YeQdjnrDKmuHw6BRmza8Riu0VGliath/hA2vX/Mg6ImRqVQG1Dk+apISdrjZYzY3uyBs 4UTySzxv54+87oDoplpzV05ot67qmFQAILqZCQlHLH2VEYeENWTsZeQ9mmRK7kAD3zq4X7fC7 fdCKqjczXoPc2ma7s5kjKsJlNOIbvXDJF3ihap8+sC5h5bQr25Jxe1BXYitRgmyr9FOExOM7H hSn9NI2q31n4r54EnQXhpj1ehYWvFLtJWmyDsa6s+H/ X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2017 04:45:18 -0000 > Blubee blubeeme > I'll look at the libcanberra OSS backend and see if I get get the changes upstream then the libcanberra maintainer can update the port. >> Sid >> Sooner or later, a drop in replacement for libcanberra needs to be made for all BSD's. It should use ogg files from audio/freedesktop-sound-theme. Perhaps it can include simple pipe to play ogg and other audio files as well. After investigating, libcanberra is suitable for the short term, and anything that fails without libcanberra-gtk3 is an issue with the upstream ports themselves. I looked into it more. Canberra is meant only for sound (.oga, .wav), but graphical code is tied in heavily into it for XDG icons and graphics standards, so the problem is not just around gtk. The source code of libcanberra has many graphical files and lines, and its only binary /usr/local/bin/canberra-gtk-play (--file) requires the window display (which shouldn't be needed for sound, and no graphical interface), so it can't run from a root console (onto a non-root desktop). Icons and programs that need Canberra should just call it. Canberra has the ability to output a command, if for instance, the sound application fails. This should be output back to another program. libcanberra needs to fork, to have only audio components (to not rely on any graphical toolkit), but it is required for it to keep the same GPL license. I'll keep looking at it, and take notes on that. Then see if I can compile it, leaving out graphical components (I'm C code illiterate). Later on, it can be replaced completely by an OSS API of original code. While no FreeBSD ports currently use pulseaudio and gstreamer for libcanberra, that compatibility should stay in (as opposed to what I suggested previously).