Firefox should allow building without gtk2



Firefox Build System
a year ago
23 days ago


(Reporter: Marc-Antoine Perennou, Unassigned)


Firefox Tracking Flags

(Not tracked)




a year ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170615111052

Steps to reproduce:

- uninstall gtk2
- try to build firefox

Actual results:

build failure

configure: error: Library requirements (gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

Expected results:

build success
Component: Untriaged → Build Config
Product: Firefox → Core
glandium did a bunch of work to allow us to link against either of gtk2 or gtk3.

Comment 2

10 months ago
As long as NPAPI plugins are supported, build dependency on gtk2 cannot be dropped.

Comment 3

10 months ago
NPAPI is currently only around to support Flash (bug 1269807). Per, Firefox's Flash support (and thus NPAPI support) will be removed sometime in 2020.

Comment 4

10 months ago
Also, to make things clear, Flash *does* require gtk2.


5 months ago
Duplicate of this bug: 1433684

Comment 6

5 months ago
Could NPAPI be made optional as by configuration before that? Unconditionally depending on Gtk+-2 until 2020 doesn't seem very reasonable, esp. not if it's due to supporting 3rd party, and even more so for something as "unpopular" as Flash.
Configuring things so NPAPI is optional is probably about as hard as removing support entirely; you can get a sense of the scope of the problem by looking at bug 1381916, which removed ~5k lines of code for a single platform.


5 months ago
Duplicate of this bug: 1303516


4 months ago
Product: Core → Firefox Build System


23 days ago
Duplicate of this bug: 1466328
You need to log in before you can comment on or make changes to this bug.