pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/geckodriver geckodriver: fix issue with finding fi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/873f4f3ce281
branches:  trunk
changeset: 371427:873f4f3ce281
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Nov 11 20:25:56 2017 +0000

description:
geckodriver: fix issue with finding firefox fallback binary

diffstat:

 www/geckodriver/Makefile                                     |   3 +-
 www/geckodriver/distinfo                                     |   3 +-
 www/geckodriver/patches/patch-vendor_mozrunner_src_runner.rs |  19 ++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 743910f6e0d1 -r 873f4f3ce281 www/geckodriver/Makefile
--- a/www/geckodriver/Makefile  Sat Nov 11 19:43:27 2017 +0000
+++ b/www/geckodriver/Makefile  Sat Nov 11 20:25:56 2017 +0000
@@ -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 -r 743910f6e0d1 -r 873f4f3ce281 www/geckodriver/distinfo
--- a/www/geckodriver/distinfo  Sat Nov 11 19:43:27 2017 +0000
+++ b/www/geckodriver/distinfo  Sat Nov 11 20:25:56 2017 +0000
@@ -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 @@
 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 -r 743910f6e0d1 -r 873f4f3ce281 www/geckodriver/patches/patch-vendor_mozrunner_src_runner.rs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geckodriver/patches/patch-vendor_mozrunner_src_runner.rs      Sat Nov 11 20:25:56 2017 +0000
@@ -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 {



Home | Main Index | Thread Index | Old Index