Bug#1120048: trixie-pu: package wike/3.1.1

Matthias Geiger werdahias at debian.org
Tue Nov 4 13:29:06 GMT 2025


Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: wike at packages.debian.org, debian-gtk-gnome at lists.debian.org, werdahias at debian.org
Control: affects -1 + src:wike
User: release.debian.org at packages.debian.org
Usertags: pu

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I would like to cherry-pick a patch fixing the displaying of articles in 
wike to stable. It's already been fixed in a newer upstream release 
present in forky.
[ Reason ]
Wikipedia changed their API for mobile, thus breaking the CSS in wike. 
This leads to the program still displaying articles, though they are 
unreadable (black text on black background). For the initial report see 
#1119977.

[ Impact ]
While the app remains usable per se the usability is greatly reduced.

[ Tests ]
I manually tested that a cherry-picked upstream commit fixes the issue.
Furthermore, a contributor tested the upstream commit in #1119977 and 
verified it works.

[ Risks ]
The risk is fairly low IMO, as the code change just adds the correct 
useragent as one  line change (see 
https://github.com/hugolabe/Wike/commit/8078bbb38385c9e7bb206ac7101e9c7dd6d31707)

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
Add cherry-picked upstream patch setting the correct useragent for 
mobile wikipedia, thus fixing the UX issue (#1119977)

best,

werdahias

-----BEGIN PGP SIGNATURE-----

iIsEARYKADMWIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCaQn/mxUcd2VyZGFoaWFz
QGRlYmlhbi5vcmcACgkQ7L7btge5sr5/QwD+NGonlrTHn4idjxavLx9JC1r+w2Nh
yk9VwjonRgzNv6cA/jdms6pofqJ/TIzEct3C9UfDjyFQEnpyfbXSy/9lnoMI
=rv0Z
-----END PGP SIGNATURE-----
-------------- next part --------------
diff -Nru wike-3.1.1/debian/changelog wike-3.1.1/debian/changelog
--- wike-3.1.1/debian/changelog	2025-02-09 17:22:33.000000000 +0100
+++ wike-3.1.1/debian/changelog	2025-11-04 14:22:22.000000000 +0100
@@ -1,3 +1,9 @@
+wike (3.1.1-1+deb13u2) stable; urgency=medium
+
+  * Add cherry-picked upstream patch setting correct useragent (Closes: #1119977)
+
+ -- Matthias Geiger <werdahias at debian.org>  Tue, 04 Nov 2025 14:22:22 +0100
+
 wike (3.1.1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru wike-3.1.1/debian/patches/add-mobile-useragent.diff wike-3.1.1/debian/patches/add-mobile-useragent.diff
--- wike-3.1.1/debian/patches/add-mobile-useragent.diff	1970-01-01 01:00:00.000000000 +0100
+++ wike-3.1.1/debian/patches/add-mobile-useragent.diff	2025-11-04 14:20:29.000000000 +0100
@@ -0,0 +1,22 @@
+From 8078bbb38385c9e7bb206ac7101e9c7dd6d31707 Mon Sep 17 00:00:00 2001
+From: Hugo Olabera <hugolabe at gmail.com>
+Date: Fri, 24 Oct 2025 09:57:47 +0200
+Subject: [PATCH] Fix new redirection of mobile URLs implemented by Wikipedia
+
+Wikipedia has implemented a change to the way it serves the mobile version of its content, which now no longer uses the ".m." subdomain. This causes Wike to display the desktop version and the custom css is not applied correctly.
+---
+ src/view.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/view.py b/src/view.py
+index b73e051..f54860a 100644
+--- a/src/view.py
++++ b/src/view.py
+@@ -31,6 +31,7 @@ class ViewSettings:
+   # Load custom css and connect view settings signals
+ 
+   def __init__(self):
++    self.web_settings.set_user_agent('Mozilla/5.0 (Linux; Android; Mobile) AppleWebKit/537.36 (KHTML, like Gecko)')
+     self.web_settings.set_default_font_size(settings.get_int('font-size'))
+     self.web_settings.set_enable_back_forward_navigation_gestures(True)
+ 
diff -Nru wike-3.1.1/debian/patches/series wike-3.1.1/debian/patches/series
--- wike-3.1.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ wike-3.1.1/debian/patches/series	2025-11-04 14:20:55.000000000 +0100
@@ -0,0 +1 @@
+add-mobile-useragent.diff


More information about the pkg-gnome-maintainers mailing list