Firefox and GTK2

Jan Beich jbeich at FreeBSD.org
Fri Jun 28 19:04:01 UTC 2019


Steve Wills <swills at FreeBSD.org> writes:

> Hi,
>
> On 6/27/19 6:30 PM, Jan Beich wrote:
>> (CC'ing public list. See http://catb.org/~esr/faqs/smart-questions.html#noprivate )
>>
>> Steve Wills <swills at FreeBSD.org> writes:
>>
> [snip]
>>
>> No. Gtk2 is required for Adobe Flash (NPAPI) support[1]. --disable-npapi is
>> unlikely[2] due to extra maintenance cost unless tested together[3] with
>> other --disable-* options.
>>
>> Current www/firefox still supports www/flashplayer (confirmed myself)
>> despite confusion[4]. According to upstream (linked in bug 1455897) it
>> will stop around Firefox 73.0 if not postponed until after ESR76.
>>
>> [1] https://searchfox.org/mozilla-central/search?q=gtk2
>>      https://bugzilla.mozilla.org/show_bug.cgi?id=1455897
>> [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1377445
>> [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1371159
>> [4] https://forums.freebsd.org/threads/flashplayer-in-recent-www-firefox.65810/
>>
>
> Thanks for the info. Do you think we could switch to libcanberra-gtk3
> like the attached patch?

www/firefox only directly loads libcanberra.so.0. What actually depends
on -gtk3 slave? For one, x11-toolkits/gtk30 dropped it since 3.18.0.

https://searchfox.org/mozilla-release/rev/be9f154873f1/widget/gtk/nsSound.cpp#159
https://gitlab.gnome.org/GNOME/gtk/commit/7439a7efda25

$ strings /usr/local/lib/libcanberra.so | fgrep gtk3
$ strings /usr/local/lib/libcanberra-gtk.so | fgrep gtk3

> diff --git Mk/bsd.gecko.mk Mk/bsd.gecko.mk
> index 28cd910ae90a..50df148513cc 100644
> --- Mk/bsd.gecko.mk
> +++ Mk/bsd.gecko.mk
> @@ -274,7 +274,7 @@ LDFLAGS+=		-B${LOCALBASE}/bin
>  .endif
>  
>  .if ${PORT_OPTIONS:MCANBERRA}
> -RUN_DEPENDS+=	libcanberra>0:audio/libcanberra
> +RUN_DEPENDS+=	libcanberra-gtk3>0:audio/libcanberra-gtk3

GTK3 is still optional in www/seamonkey and not supported in www/palemoon.


More information about the freebsd-gecko mailing list