#989455 firefox-esr: ship geckodriver

#989455#5
Date:
2021-06-04 06:33:25 UTC
From:
To:
For python3-selenium and other browser automation tools, it would be
useful for Debian to have the Firefox geckodriver.

There is already a bug requesting it be added to src:firefox, but it
would also be good to have it in Debian bookworm in src:firefox-esr.

https://bugs.debian.org/874207

The end of firefox-esr testing/geckodriver/README.md states:

   geckodriver is built in the Firefox CI by default but not if you build
   Firefox locally. To enable building of geckodriver locally, ensure you
   put this in your mozconfig:

      ac_add_options --enable-geckodriver

   The geckodriver binary will appear in ${objdir}/dist/bin/geckodriver alongside firefox-bin.

Ubuntu have a firefox-geckodriver package built from their firefox
source package:

https://launchpad.net/ubuntu/+search?text=firefox-geckodriver
https://bugs.launchpad.net/bugs/1831204

Here are the relevant parts of the Ubuntu debian/ directory:

   debian/control.in:Package: @MOZ_PKG_NAME@-geckodriver
   debian/control.in-Architecture: any
   debian/control.in-Depends: ${shlibs:Depends},
   debian/control.in-	${misc:Depends},
   debian/control.in-	@MOZ_PKG_NAME@ (= ${binary:Version})
   debian/control.in:Description: Safe and easy web browser from Mozilla - geckodriver
   debian/control.in- Firefox delivers safe, easy web browsing. A familiar user interface,
   debian/control.in- enhanced security features including protection from online identity theft,
   debian/control.in- and integrated search let you get the most out of the web.
   debian/control.in- .
   debian/control.in: This package contains geckodriver, a proxy for using W3C WebDriver-compatible
   debian/control.in- clients (such as selenium) to interact with Gecko-based browsers. See
   debian/control.in: https://firefox-source-docs.mozilla.org/testing/geckodriver/ for details.


   debian/tests/control-Test-Command: timeout -v 600 debian/tests/firefox-version
   debian/tests/control:Depends: coreutils, firefox, firefox-geckodriver, python3-apt, python3-selenium
   debian/tests/control-
   debian/tests/control-Test-Command: timeout -v 600 debian/tests/html5test
   debian/tests/control:Depends: coreutils, firefox, firefox-geckodriver, python3-selenium
   debian/tests/control-Restrictions: allow-stderr


   debian/build/rules.mk:install-geckodriver: debian/stamp-installgeckodriver
   debian/build/rules.mk:debian/stamp-installgeckodriver: debian/stamp-makefile-install
   debian/build/rules.mk:	install -D $(MOZ_DISTDIR)/bin/geckodriver $(CURDIR)/debian/$(MOZ_PKG_NAME)-geckodriver/usr/bin/geckodriver
   debian/build/rules.mk-	@touch $@
   ...
   debian/build/rules.mk:common-install-arch:: install-geckodriver

#989455#12
Date:
2022-11-22 04:56:30 UTC
From:
To:
tag 874207 + wontfix
tag 989455 + wontfix
thanks

It would be better to package it standalone. Nowadays, it is available
on crates.io.

Mike

#989455#21
Date:
2023-09-08 14:20:28 UTC
From:
To:
Is there anything that can be done to help this subject ?
Only having chrome-driver does not cover all CPU architectures and is problematic for autopkgtests.