unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41173] [PATCH] Update epiphany and enable tests
@ 2020-05-10 12:58 Leo Prikler
  2020-05-10 13:31 ` [bug#41173] [PATCH 1/2] gnu: epiphany: Update to 3.34.4 Leo Prikler
  2020-05-12 21:24 ` bug#41173: [PATCH] Update epiphany and " Ricardo Wurmus
  0 siblings, 2 replies; 4+ messages in thread
From: Leo Prikler @ 2020-05-10 12:58 UTC (permalink / raw)
  To: 41173

I've noticed, that 3.34.2 is not the latest 3.34 version of epiphany
and in thus updated it to 3.34.4 in hope it would fix an annoyance,
that I'm currently experiencing.  It did not.  Still, I'd like to share
my patch.

I also saw, that tests are currently disabled, so I've isolated the
breaking tests and skip only those, as is customary.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#41173] [PATCH 1/2] gnu: epiphany: Update to 3.34.4.
  2020-05-10 12:58 [bug#41173] [PATCH] Update epiphany and enable tests Leo Prikler
@ 2020-05-10 13:31 ` Leo Prikler
  2020-05-10 13:31   ` [bug#41173] [PATCH 2/2] gnu: epiphany: enable tests Leo Prikler
  2020-05-12 21:24 ` bug#41173: [PATCH] Update epiphany and " Ricardo Wurmus
  1 sibling, 1 reply; 4+ messages in thread
From: Leo Prikler @ 2020-05-10 13:31 UTC (permalink / raw)
  To: 41173

* gnu/packages/gnome.scm (epiphany): Update to 3.34.4.
---
 gnu/packages/gnome.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index d5a2032ccf..6ff1e6772d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5398,7 +5398,7 @@ a secret password store, an adblocker, and a modern UI.")
 (define-public epiphany
   (package
     (name "epiphany")
-    (version "3.34.2")
+    (version "3.34.4")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnome/sources/epiphany/"
@@ -5406,7 +5406,7 @@ a secret password store, an adblocker, and a modern UI.")
                                   "epiphany-" version ".tar.xz"))
               (sha256
                (base32
-                "18d48vcp2nxs63bddkdplslgbnlfq79pm2ivl8hk38kkggy3dahf"))))
+                "13ar3s40cds1rplwbzx0fzigf120w0rydiv05r3k6zpc0zy91qb0"))))
 
     (build-system meson-build-system)
     (arguments
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#41173] [PATCH 2/2] gnu: epiphany: enable tests.
  2020-05-10 13:31 ` [bug#41173] [PATCH 1/2] gnu: epiphany: Update to 3.34.4 Leo Prikler
@ 2020-05-10 13:31   ` Leo Prikler
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Prikler @ 2020-05-10 13:31 UTC (permalink / raw)
  To: 41173

* gnu/packages/gnome.scm (epiphany)[arguments]<#:tests?>: Drop it.
<#:phases>: Add disable-failing-tests and pre-check.
[inputs]: Add xorg-server-for-tests.
---
 gnu/packages/gnome.scm | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 6ff1e6772d..9eee85227d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5410,13 +5410,7 @@ a secret password store, an adblocker, and a modern UI.")
 
     (build-system meson-build-system)
     (arguments
-     ;; FIXME: tests run under Xvfb, but fail with:
-     ;;   /src/bookmarks/ephy-bookmarks/create:
-     ;;   ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
-     ;;      subsystem
-     ;;   FAIL
-     '(#:tests? #f
-       #:glib-or-gtk? #t
+     '(#:glib-or-gtk? #t
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'skip-gtk-update-icon-cache
@@ -5424,6 +5418,21 @@ a secret password store, an adblocker, and a modern UI.")
            (lambda _
              (substitute* "post_install.py"
                (("gtk-update-icon-cache") "true"))
+             #t))
+         (add-after 'unpack 'disable-failing-tests
+           (lambda _
+             (substitute* "tests/meson.build"
+               ;; embed_shell fails, because webkitgtk apparently no longer supports
+               ;; overriding the ftp schema
+               ;; web_app_utils fails due to missing network access
+               (("(embed_shell|web_app_utils)_test,")
+                "find_program('sh'), args: ['-c', 'exit 77'],"))
+             #t))
+         (add-before 'check 'pre-check
+           (lambda _
+             ;; Tests require a running X server.
+             (system "Xvfb :1 &")
+             (setenv "DISPLAY" ":1")
              #t)))
        #:configure-flags
        ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
@@ -5437,7 +5446,8 @@ a secret password store, an adblocker, and a modern UI.")
        ("intltool" ,intltool)
        ("itstool" ,itstool)
        ("pkg-config" ,pkg-config)
-       ("xmllint" ,libxml2)))
+       ("xmllint" ,libxml2)
+       ("xorg-server" ,xorg-server-for-tests)))
     (inputs
      `(("avahi" ,avahi)
        ("gcr" ,gcr)
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#41173: [PATCH] Update epiphany and enable tests
  2020-05-10 12:58 [bug#41173] [PATCH] Update epiphany and enable tests Leo Prikler
  2020-05-10 13:31 ` [bug#41173] [PATCH 1/2] gnu: epiphany: Update to 3.34.4 Leo Prikler
@ 2020-05-12 21:24 ` Ricardo Wurmus
  1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2020-05-12 21:24 UTC (permalink / raw)
  To: 41173-done; +Cc: Kei Kebreau, Leo Prikler


Leo Prikler <leo.prikler@student.tugraz.at> writes:

> I've noticed, that 3.34.2 is not the latest 3.34 version of epiphany
> and in thus updated it to 3.34.4 in hope it would fix an annoyance,
> that I'm currently experiencing.  It did not.  Still, I'd like to share
> my patch.
>
> I also saw, that tests are currently disabled, so I've isolated the
> breaking tests and skip only those, as is customary.

Thank you.  Looks like your patches have already been applied with
commit 20710b911f7784c5602799181d6f108814695b31, so I’m closing this
issue.

--
Ricardo




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-12 21:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10 12:58 [bug#41173] [PATCH] Update epiphany and enable tests Leo Prikler
2020-05-10 13:31 ` [bug#41173] [PATCH 1/2] gnu: epiphany: Update to 3.34.4 Leo Prikler
2020-05-10 13:31   ` [bug#41173] [PATCH 2/2] gnu: epiphany: enable tests Leo Prikler
2020-05-12 21:24 ` bug#41173: [PATCH] Update epiphany and " Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).