From owner-freebsd-ports@freebsd.org Tue Dec 19 07:30:41 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 88D40E90F11 for ; Tue, 19 Dec 2017 07:30:41 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F7C86A524 for ; Tue, 19 Dec 2017 07:30:41 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x233.google.com with SMTP id x28so1678451ita.0 for ; Mon, 18 Dec 2017 23:30:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fpuBZi0u3N7U7PJHOA62xmFWn0tqyava+wGjyqdj5RY=; b=OvMkIbb0bNwkoqb0hLLj1bWwJZqaBaVwexb91IUt7PsWPwJjTg6INHETWF9MD8jW10 BQ5tlZ+3onUqsig1jnEUx1MFGSr5VKxqoQZcLbwJUS2MH4/vDJshYHzySxD6v9DZQReZ 566n6cv2SwtlJZJZ15h5dYVAlW6osTLxrqYw5WlWJxzNYmy0AtN3bJH1BORcbkuX+G7n p/T/Q8rIXY8426fvqfQsEbSP4NZ/wpDVF0eTGKVx7lIn6G8oEEhub9VhxjbqCb7jLPsg xzj4NK1ATOnRIs5YSKHeTzlPlTwv/F7c+mOIgNm+LKKI4jN6MhwyhltLtmc9SDCTp68F Xx2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fpuBZi0u3N7U7PJHOA62xmFWn0tqyava+wGjyqdj5RY=; b=Soi+G+W06aSpSHEWWbzphJx2+mLycsIz3XJacyExfTC3SpNT8S/iBXVnfDeMIcZcBy sANdQb0XAMxWoCIRNhgGjFs+TJCCqbUfFb5wGc2aYVbMb51EZxGekyZyBSf3fwueIrPO 0tuYp4bZH25x3nqBg1gQ+z220BFbq3VEF9OE4C84Cw7Xo9ryWvwfSWhYRK/r8hNx7FDg 7pkEe7fRbouT5S0rxiCGzPfDGVNb31qZpZiqhViMjpBl2TE1bPDjJMa86poCUIp8TDXd PFcUmvNUvp/jM6jT64KkijrK5oPJ0BelZ1p67B9NbpxqncXl9UVMYtMtR7CxdsJ5I6La GJkg== X-Gm-Message-State: AKGB3mI3oqjuakFEepVZjBSeawAcbVd2l5DOYLGv6v1ODaVS4keVaec3 vtWhTSgBNXgXQpj45lvlkSC1WH3NuI4+rzx5xh8= X-Google-Smtp-Source: ACJfBosHbBM6d8T4zPKBGvPznkEkGta9+5n5p7ILOqiKghpfuqnVREUHs7LsZsv7sOpu4KHMsogKP/igFOnZQX96pkY= X-Received: by 10.36.151.198 with SMTP id k189mr2255617ite.100.1513668640509; Mon, 18 Dec 2017 23:30:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.203 with HTTP; Mon, 18 Dec 2017 23:30:40 -0800 (PST) In-Reply-To: References: From: blubee blubeeme Date: Tue, 19 Dec 2017 15:30:40 +0800 Message-ID: Subject: Re: Canberra To: Sid Cc: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Tue, 19 Dec 2017 07:30:41 -0000 On Tue, Dec 19, 2017 at 3:24 PM, Sid 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.