From owner-freebsd-ports@freebsd.org Fri Dec 22 12:52: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 12E54E96BB6 for ; Fri, 22 Dec 2017 12:52:18 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.201]) (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 C9AFA75968 for ; Fri, 22 Dec 2017 12:52:17 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from [108.70.50.7] ([108.70.50.7]) by 3c-app-mailcom-lxa05.server.lan (via HTTP); Fri, 22 Dec 2017 13:52:13 +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 13:52:13 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Uz7chiMx1AgaIpeQLsWMnOiVDMvOk/NjQsfq5CU5g3G Hzg5xaC1CilrwTfHQ7hD12krbbb4I2h84gW2lm+L4bjSWIVtYw ovHc5ZDcmFLun/rNaCUrgZWuSmH2bUgLdET4ZFzeuyhtkZg9B9 hjV5aYoNW7JXnDhV1/CujQNX9NpM3m6Xr5q2Lt6Mr/0RhqDF8G hBa8gyDeYjNSoqLL4U5FYPljO7OtZg2kkpdXZh7Qg1aUpmgDJy mDKIJRn271QOjt60cJNrgNfxji8Y2u9jCL4F9r5nswU2gUxVpq wmmtLs= X-UI-Out-Filterresults: notjunk:1;V01:K0:gRnBuJ806hc=:vVktOFLwOtg/90iRJkw2MY XVZCgZUMKZKivBo6bM4dY2PwGCtYjeKSxY56b66sMcDuXp/kxwJHx6Qz5HbdkNRp5Wfj+E3b+ OQAHY50pRgASDrt9FRuWtiDikBWYmVwj8ScA0WIUlcd5ZYy1ztmjbw30FzpjS/w+7XjU5mhBH VpJrzi/ZmZb/14IXsWFRQDNWmdll6xmLKS6ExLqkqYKp3HYmgCxPfoRCix4m+RxwBxc71ayIw fIpEuK83xcP1lJArjhnrq+V1QsEMJqF8Nf3kZAGRspEEEK256/x4zYT8DcGUABwyjV2xA1s9S GoYk6zygTH8f8zrtkFZIaeF7Y77Mjb8xFd8ZBdh5Pv1/3xaB22btuGVlJxAmwXR54u3HgNAZs mUH/kRSSzfjkrdOcmwK6pIT4SBRUSNNlg3cbiZ4LYuR5JvK6T5dNTyn8xwu1As/z0oqgbmAk+ fJc3naGs8qgHNgw4VmRkJkVPeym33eBoqtGLR6aystcMoiLww5ueqnM0h7wO9vEqtampjyX/h uaK7Nu8zc4QZ0zUWvZ4RjpNETGtkxiZe7Popszj7pFa 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 12:52:18 -0000 > Blubee Blubeeme; > Who thought that was a good idea, now layer a few more audio layers and u have Linux[ism] to the max. > Well, I think that it's not really worth it to go untangle that mess. > It's okay if you're using a Gnome DE since it's all in there already but just to play a sound file you have to bring in all of this nonsense. > If you want to keep going down the Gnome hole, go ahead let me know when you get to the OSS specific issues, if any. > There's a lot more pressing issues that affect a larger surface area than a DE. > Best You're right, it's a rabbit hole. Whenever something starts to get untangled, it changes and becomes more tangled again. I made a personal Makefile for a light install of libcanberra that doesn't use gtk at all. It worked, but more ports now require gtk3 for graphics for some reason. libcanberra-gtk libraries and its package are now called specifically from the sourcecode. An elegant short term solution is to set make.conf to not install pulseaudio and gstreamer1 for audio/libcanberra-gtk3: audio_libcanberra-gtk3_UNSET=PULSEAUDIO GSTREAMER. This accomplishes the same outcome, without the extra Makefile, and tedious extra work. This made me wonder, that I can create a Makefile for distfile/sourcecode of gstreamer1 and audio/pulseaudio to extract the most used libraries, to avoid more compilation of those dependencies. The full port and the partial port may not necessarily conflict, because the extracted library should be similar enough to the one in the full install, but if it does, then CONFLICTS= only allows 1 of those ports. I can then file a bug report of this, if it works. Back to a drop in replacement: libcanberra uses audio/libvorbis which has its own API. libvorbis will do for .oga files. Wav files may need more work, or simply the .wav files will have to be filed as bugs to be converted into .oga files. An important thing to know about libcanberra is, where the program calls it, and where it calls OSS and libvorbis. Calls to gstreamer1 and pulseaudio, perhaps via their library files, should go to the OSS API. Other than that, API's are another language to me. Also, there has to be a way (perhaps like from make.conf) to make full substitutions of packages and libraries. As long as the program that calls it doesn't make drastic changes that affect it. >> 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. >> 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.