Merge ~mkukri/ubuntu/+source/xscreensaver:merge into ubuntu/+source/xscreensaver:debian/sid

Proposed by Mate Kukri
Status: Merged
Merge reported by: Mate Kukri
Merged at revision: 5e0ad18ea3ae74e806dae61d8f090143277ac42f
Proposed branch: ~mkukri/ubuntu/+source/xscreensaver:merge
Merge into: ubuntu/+source/xscreensaver:debian/sid
Diff against target: 283 lines (+192/-1)
8 files modified
debian/changelog (+60/-0)
debian/control (+2/-1)
debian/patches/remove_version_upgrade_warnings.patch (+73/-0)
debian/patches/series (+3/-0)
debian/patches/ubuntu-branding.patch (+22/-0)
debian/rules (+10/-0)
debian/source_xscreensaver.py (+21/-0)
debian/xscreensaver.dirs (+1/-0)
Reviewer Review Type Date Requested Status
Simon Chopin (community) Approve
Review via email: mp+460575@code.launchpad.net

Commit message

Merge with debian sid.

Tested to build, and function correctly on noble desktop

To post a comment you must log in.
Revision history for this message
Simon Chopin (schopin) wrote :

Uploaded, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 20942db..3559a7f 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,23 @@
6+xscreensaver (6.06+dfsg1-3ubuntu1) noble; urgency=medium
7+
8+ * Merge with Debian unstable. Remaining changes:
9+ - debian/rules:
10+ + Use /usr/share/backgrounds as image directory.
11+ + Add translation domain to .desktop files.
12+ - debian/source_xscreensaver.py:
13+ + Add apport hook.
14+ - debian/xscreensaver.dirs:
15+ + Install /usr/share/backgrounds. By default, settings search in
16+ /usr/share/backgrounds and without it, it displays an error.
17+ - debian/patches/ubuntu-branding.patch: Use Ubuntu branding.
18+ - Patch out multiple messages warning users to upgrade XScreenSaver. Ubuntu
19+ backports bug and security fixes to older versions of software as needed
20+ and as possible, and XScreenSaver is specifically maintained by the
21+ Lubuntu team, therefore this message is not necessary for us.
22+ (LP: 2009306)
23+
24+ -- Mate Kukri <mate.kukri@canonical.com> Thu, 15 Feb 2024 08:46:37 +0000
25+
26 xscreensaver (6.06+dfsg1-3) unstable; urgency=medium
27
28 * Add 02_dpms_prefs_lost.patch from upstream:
29@@ -89,6 +109,31 @@ xscreensaver (6.02+dfsg1-3) unstable; urgency=medium
30
31 -- Tormod Volden <debian.tormod@gmail.com> Fri, 18 Feb 2022 09:11:58 +0100
32
33+xscreensaver (6.02+dfsg1-2ubuntu2) lunar; urgency=medium
34+
35+ * Patch out multiple messages warning users to upgrade XScreenSaver. Ubuntu
36+ backports bug and security fixes to older versions of software as needed
37+ and as possible, and XScreenSaver is specifically maintained by the
38+ Lubuntu team, therefore this message is not necessary for us.
39+ (LP: #2009306)
40+
41+ -- Aaron Rainbolt <arraybolt3@ubuntu.com> Sun, 05 Mar 2023 17:25:54 -0600
42+
43+xscreensaver (6.02+dfsg1-2ubuntu1) kinetic; urgency=medium
44+
45+ * Merge from Debian unstable. Remaining changes: (LP: #1961634)
46+ - debian/rules:
47+ + Use /usr/share/backgrounds as image directory.
48+ + Add translation domain to .desktop files.
49+ - debian/source_xscreensaver.py:
50+ + Add apport hook.
51+ - debian/xscreensaver.dirs:
52+ + Install /usr/share/backgrounds. By default, settings search in
53+ /usr/share/backgrounds and without it, it displays an error.
54+ - debian/patches/90_ubuntu-branding.patch: Use Ubuntu branding.
55+
56+ -- Tormod Volden <debian.tormod@gmail.com> Thu, 24 Feb 2022 12:02:25 +0100
57+
58 xscreensaver (6.02+dfsg1-2) unstable; urgency=medium
59
60 * Borrow patch from Fedora to fix building "marbling" on arm64
61@@ -145,6 +190,21 @@ xscreensaver (6.02+dfsg1-1) unstable; urgency=medium
62
63 -- Tormod Volden <debian.tormod@gmail.com> Mon, 10 Jan 2022 23:10:18 +0100
64
65+xscreensaver (5.45+dfsg1-2ubuntu1) impish; urgency=medium
66+
67+ * Merge from Debian unstable. Remaining changes:
68+ - debian/rules:
69+ + Use /usr/share/backgrounds as image directory.
70+ + Add translation domain to .desktop files.
71+ - debian/source_xscreensaver.py:
72+ + Add apport hook.
73+ - debian/xscreensaver.dirs:
74+ + Install /usr/share/backgrounds. By default, settings search in
75+ /usr/share/backgrounds and without it, it displays an error.
76+ - debian/patches/90_ubuntu-branding.patch: Use Ubuntu branding.
77+
78+ -- Robert Ancell <robert.ancell@canonical.com> Tue, 15 Jun 2021 11:21:52 +1200
79+
80 xscreensaver (5.45+dfsg1-2) unstable; urgency=medium
81
82 * Do not assign raw net capability to "sonar" hack due to a security
83diff --git a/debian/control b/debian/control
84index 68086b7..6b25977 100644
85--- a/debian/control
86+++ b/debian/control
87@@ -1,7 +1,8 @@
88 Source: xscreensaver
89 Section: x11
90 Priority: optional
91-Maintainer: Tormod Volden <debian.tormod@gmail.com>
92+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
93+XSBC-Original-Maintainer: Tormod Volden <debian.tormod@gmail.com>
94 Build-Depends: debhelper-compat (= 12),
95 bc,
96 fortune-mod,
97diff --git a/debian/patches/remove_version_upgrade_warnings.patch b/debian/patches/remove_version_upgrade_warnings.patch
98new file mode 100644
99index 0000000..c97b351
100--- /dev/null
101+++ b/debian/patches/remove_version_upgrade_warnings.patch
102@@ -0,0 +1,73 @@
103+From: Aaron Rainbolt <arraybolt3@ubuntu.com>
104+Date: Thu, 15 Feb 2024 09:33:20 +0000
105+Subject: Remove unnecessary version upgrade warnings.
106+
107+Bug-Ubuntu: https://launchpad.net/bugs/2009306
108+Forwarded: not-needed
109+Last-Updated: 2023-03-05
110+
111+In order to help users who are on old, buggy, and possibly insecure versions
112+of XScreenSaver, there is are multiple messages in XScreenSaver that warn the
113+user that their XScreenSaver version is very old and that they should
114+upgrade, building from source if necessary.
115+
116+Ubuntu backports bug and security fixes to older versions of software as
117+needed and as possible, and the Lubuntu Development team specifically watches
118+over XScreenSaver. It should not be necessary for the user to upgrade
119+XScreenSaver. Additionally, building XScreenSaver from source could possibly
120+break a user's system by changing system files without benefit of the package
121+manager.
122+
123+This patch removes the unnecessary warning.
124+
125+xscreensaver (6.02+dfsg1-2ubuntu2) lunar; urgency=medium
126+
127+ * Patch out a message warning users to upgrade XScreenSaver. Ubuntu
128+ backports bug and security fixes to older versions of software as needed
129+ and as possible, and XScreenSaver is specifically maintained by the
130+ Lubuntu team, therefore this message is not necessary for us.
131+---
132+ driver/dialog.c | 30 ++++++++++++++++++------------
133+ 1 file changed, 18 insertions(+), 12 deletions(-)
134+
135+diff --git a/driver/dialog.c b/driver/dialog.c
136+index 1ab6ee4..71b14f2 100644
137+--- a/driver/dialog.c
138++++ b/driver/dialog.c
139+@@ -1372,18 +1372,24 @@ window_draw (window_state *ws)
140+ lines[i].align = CENTER;
141+ i++;
142+
143+- if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
144+- {
145+- lines[i].text = _("Update available!\nThis version is very old.\n");
146+- lines[i].font = ws->error_font;
147+- lines[i].fg = ws->xft_error_foreground;
148+- lines[i].fg2 = lines[i].fg;
149+- lines[i].bg = ws->background;
150+- lines[i].type = LABEL;
151+- lines[i].align = CENTER;
152+- i++;
153+- }
154+- else if (strstr (ws->version, "a") ||
155++ /* The outdated software warning is unnecessary in Ubuntu. The "else" in the
156++ * else if block also needs patched out since it's a syntax error when the
157++ * first "if" is patched out.
158++ *
159++ * if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
160++ * {
161++ * lines[i].text = _("Update available!\nThis version is very old.\n");
162++ * lines[i].font = ws->error_font;
163++ * lines[i].fg = ws->xft_error_foreground;
164++ * lines[i].fg2 = lines[i].fg;
165++ * lines[i].bg = ws->background;
166++ * lines[i].type = LABEL;
167++ * lines[i].align = CENTER;
168++ * i++;
169++ * }
170++ * else if (strstr (ws->version, "a") ||
171++ */
172++ if (strstr (ws->version, "a") ||
173+ strstr (ws->version, "b"))
174+ {
175+ lines[i].text = _("PRE-RELEASE VERSION");
176diff --git a/debian/patches/series b/debian/patches/series
177index 5b175c7..3cf59ec 100644
178--- a/debian/patches/series
179+++ b/debian/patches/series
180@@ -27,3 +27,6 @@
181 96_nogl-build-for-nogl-config.patch
182 98_daemon_desktop_file.patch
183 100_configure_allow_warnings.patch
184+
185+ubuntu-branding.patch
186+remove_version_upgrade_warnings.patch
187diff --git a/debian/patches/ubuntu-branding.patch b/debian/patches/ubuntu-branding.patch
188new file mode 100644
189index 0000000..aeb51f8
190--- /dev/null
191+++ b/debian/patches/ubuntu-branding.patch
192@@ -0,0 +1,22 @@
193+From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
194+Date: Thu, 15 Feb 2024 08:47:18 +0000
195+Subject: _ubuntu-branding
196+
197+===================================================================
198+---
199+ driver/XScreenSaver.ad.in | 2 +-
200+ 1 file changed, 1 insertion(+), 1 deletion(-)
201+
202+diff --git a/driver/XScreenSaver.ad.in b/driver/XScreenSaver.ad.in
203+index 8323c43..e48b21a 100644
204+--- a/driver/XScreenSaver.ad.in
205++++ b/driver/XScreenSaver.ad.in
206+@@ -62,7 +62,7 @@
207+ *textLiteral: XScreenSaver
208+ *textFile: @DEFAULT_TEXT_FILE@
209+ *textProgram: fortune
210+-*textURL: https://planet.debian.org/rss20.xml
211++*textURL: https://feeds.feedburner.com/ubuntu-news
212+
213+ ! This is what the "Settings" button on the splash screen runs.
214+ *demoCommand: xscreensaver-settings
215diff --git a/debian/rules b/debian/rules
216index cf25214..4232930 100755
217--- a/debian/rules
218+++ b/debian/rules
219@@ -36,6 +36,7 @@ override_dh_auto_configure:
220 mv driver/XScreenSaver_Xm_ad.h driver/XScreenSaver_Xm_ad.h.upstream
221 # Configure for xscreensaver
222 dh_auto_configure -- \
223+ --with-image-directory=/usr/share/backgrounds \
224 --without-gl --with-pam --with-gtk --without-kerberos \
225 --without-shadow \
226 --with-hackdir=/usr/libexec/xscreensaver \
227@@ -46,6 +47,7 @@ override_dh_auto_configure:
228 cp driver/XScreenSaver.ad driver/XScreenSaver.ad-nogl
229 # Configure for xscreensaver-gl
230 dh_auto_configure -- \
231+ --with-image-directory=/usr/share/backgrounds \
232 --with-gl --with-pam --with-gtk --without-kerberos \
233 --without-shadow \
234 --with-hackdir=/usr/libexec/xscreensaver \
235@@ -69,6 +71,14 @@ override_dh_auto_install:
236 dh_auto_install -- install_prefix=$(CURDIR)/debian/tmp \
237 GTK_DATADIR=/usr/share KDEDIR=/usr \
238 UPDATE_ICON_CACHE=:
239+
240+ # Add translation domain to .desktop files
241+ DOMAIN=$$(grep --max-count 1 '^GETTEXT_PACKAGE[[:space:]]*=' $(CURDIR)/po/Makefile | sed 's/^.*=[[:space:]]\([^[:space:]]\)/\1/'); \
242+ for d in $$(find debian/tmp -type f -name "*.desktop" ); do \
243+ echo "Adding translation domain $$DOMAIN to $$d..."; \
244+ echo "X-Ubuntu-Gettext-Domain=$$DOMAIN" >> $$d; \
245+ done
246+
247 # Install .desktop files used by gnome-screensaver etc
248 mkdir -p debian/tmp/usr/share/applications/screensavers
249 cp debian/screensavers-desktop-files/*.desktop \
250diff --git a/debian/source_xscreensaver.py b/debian/source_xscreensaver.py
251new file mode 100644
252index 0000000..1afd612
253--- /dev/null
254+++ b/debian/source_xscreensaver.py
255@@ -0,0 +1,21 @@
256+'''apport package hook for xscreensaver
257+
258+(c) 2009 Canonical Ltd.
259+Author: Brian Murray <brian@ubuntu.com>
260+
261+This program is free software; you can redistribute it and/or modify it
262+under the terms of the GNU General Public License as published by the
263+Free Software Foundation; either version 3 of the License, or (at your
264+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
265+the full text of the license.
266+'''
267+
268+from apport.hookutils import *
269+
270+def add_info(report):
271+
272+ attach_file_if_exists(report, '/var/log/Xorg.0.log', 'XorgLog')
273+ attach_file_if_exists(report, '/var/log/Xorg.0.log.old', 'XorgLogOld')
274+ report['DisplayDevices'] = pci_devices(PCI_DISPLAY)
275+ report['glxinfo'] = command_output(['glxinfo'])
276+ nonfree_kernel_modules()
277diff --git a/debian/xscreensaver.dirs b/debian/xscreensaver.dirs
278new file mode 100644
279index 0000000..7ad5adb
280--- /dev/null
281+++ b/debian/xscreensaver.dirs
282@@ -0,0 +1 @@
283+/usr/share/backgrounds

Subscribers

People subscribed via source and target branches