diff options
author | tnn <tnn@pkgsrc.org> | 2017-11-11 20:25:56 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2017-11-11 20:25:56 +0000 |
commit | b60dee179588c2533a80084b4e5ce587b29f2bf2 (patch) | |
tree | d6920d1d03233ceb3354b032e88048c3bbd6be4d /www/geckodriver | |
parent | 539048bd9b78d37f24f707f39f40f072eac3c727 (diff) | |
download | pkgsrc-b60dee179588c2533a80084b4e5ce587b29f2bf2.tar.gz |
geckodriver: fix issue with finding firefox fallback binary
Diffstat (limited to 'www/geckodriver')
-rw-r--r-- | www/geckodriver/Makefile | 3 | ||||
-rw-r--r-- | www/geckodriver/distinfo | 3 | ||||
-rw-r--r-- | www/geckodriver/patches/patch-vendor_mozrunner_src_runner.rs | 19 |
3 files changed, 23 insertions, 2 deletions
diff --git a/www/geckodriver/Makefile b/www/geckodriver/Makefile index 510199d5040..d4851552273 100644 --- a/www/geckodriver/Makefile +++ b/www/geckodriver/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.1 2017/11/08 14:36:34 tnn Exp $ +# $NetBSD: Makefile,v 1.2 2017/11/11 20:25:56 tnn Exp $ DISTNAME= geckodriver-0.19.1 +PKGREVISION= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_GITHUB:=mozilla/} GITHUB_PROJECT= geckodriver diff --git a/www/geckodriver/distinfo b/www/geckodriver/distinfo index 836575838c7..369de1588f2 100644 --- a/www/geckodriver/distinfo +++ b/www/geckodriver/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2017/11/08 14:36:34 tnn Exp $ +$NetBSD: distinfo,v 1.2 2017/11/11 20:25:56 tnn Exp $ SHA1 (advapi32-sys-0.1.2.crate) = 7401392119f5441f522c1dd92eff980b220d2e44 RMD160 (advapi32-sys-0.1.2.crate) = c4e3f087f4cd61df70a2d7e1be0056b563ff74e4 @@ -356,3 +356,4 @@ SHA1 (zip-0.1.19.crate) = 2ef141a2840bab15e9c20ccad9ee12790024c891 RMD160 (zip-0.1.19.crate) = d5149a98f19dcad4b2dd8e757eede9e7f960526d SHA512 (zip-0.1.19.crate) = ac04524caf2d0b0c6dbc9105aa9cd3796504d5f5faef15a84b552a1bdba115de4805ca2d71d6b48cbaa5803c0d748e502efd087b6ad081de6673ac53cbed50c4 Size (zip-0.1.19.crate) = 17251 bytes +SHA1 (patch-vendor_mozrunner_src_runner.rs) = d5dee072ccf08b6a8109f94a1f3df5d5a4de0240 diff --git a/www/geckodriver/patches/patch-vendor_mozrunner_src_runner.rs b/www/geckodriver/patches/patch-vendor_mozrunner_src_runner.rs new file mode 100644 index 00000000000..335d5f3405e --- /dev/null +++ b/www/geckodriver/patches/patch-vendor_mozrunner_src_runner.rs @@ -0,0 +1,19 @@ +$NetBSD: patch-vendor_mozrunner_src_runner.rs,v 1.1 2017/11/11 20:25:56 tnn Exp $ + +Make the fallback method for finding the default browser behave like Linux. + +--- ../vendor/mozrunner-0.5.0/src/runner.rs.orig 2017-09-11 14:07:59.000000000 +0000 ++++ ../vendor/mozrunner-0.5.0/src/runner.rs +@@ -318,10 +318,11 @@ pub mod platform { + + #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))] + pub mod platform { ++ use super::find_binary; + use std::path::PathBuf; + + pub fn firefox_default_path() -> Option<PathBuf> { +- None ++ find_binary("firefox") + } + + pub fn arg_prefix_char(c: char) -> bool { |