Created attachment 159929 [details] add option to build and install chromedriver chromedriver (https://sites.google.com/a/chromium.org/chromedriver/) allows remote control of a Chrome instance, for example with Selenium. Google does not provide precompiled binaries for chromedriver for FreeBSD. The attached patch adds an option to build and install chromedriver alongside Chrome.
I'm testing@work via poudriere Thanks for your input.
It was committed into the Chromium GH repo https://github.com/gliaskos/freebsd-chromium/compare/master%40%7B1439455884%7D...master
A commit references this bug: Author: rene Date: Thu Aug 20 18:11:58 UTC 2015 New revision: 394902 URL: https://svnweb.freebsd.org/changeset/ports/394902 Log: - Update to 44.0.2403.155 [1] - Add a non-default option to install Chrome Driver [2][3] PR: 202368 [2] PR: 202370 [3] Submitted by: LeFroid via GitHub [1] Submitted by: stb@lassitu.de [2][3] MFH: 2015Q3 Changes: head/www/chromium/Makefile head/www/chromium/distinfo head/www/chromium/files/chrome.in head/www/chromium/pkg-plist
A commit references this bug: Author: rene Date: Thu Aug 20 18:21:05 UTC 2015 New revision: 394903 URL: https://svnweb.freebsd.org/changeset/ports/394903 Log: MFH: r394902 - Update to 44.0.2403.155 [1] - Add a non-default option to install Chrome Driver [2][3] PR: 202368 [2] PR: 202370 [3] Submitted by: LeFroid via GitHub [1] Submitted by: stb@lassitu.de [2][3] Approved by: ports-secteam (feld) Changes: _U branches/2015Q3/ branches/2015Q3/www/chromium/Makefile branches/2015Q3/www/chromium/distinfo branches/2015Q3/www/chromium/files/chrome.in branches/2015Q3/www/chromium/pkg-plist
Unfortunately, the version committed doesn't work. DRIVER_MAKE_ARGS gets defined unconditionally, but is never used, and chromedriver is never built. Something like this is needed: Index: Makefile =================================================================== --- Makefile (revision 394932) +++ Makefile (working copy) @@ -196,6 +196,9 @@ GPERF="${LOCALBASE}/bin/gperf" MAKE_ARGS= -C out/${BUILDTYPE} DRIVER_MAKE_ARGS=chromedriver +.if ${PORT_OPTIONS:MDRIVER} +MAKE_ARGS+= ${DRIVER_MAKE_ARGS} +.endif .include <bsd.port.pre.mk>
Can you check with r395024 I committed this morning?
Thank you, that does the trick!