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
diff --git a/debian/changelog b/debian/changelog
index 20942db..3559a7f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,23 @@
1xscreensaver (6.06+dfsg1-3ubuntu1) noble; urgency=medium
2
3 * Merge with Debian unstable. Remaining changes:
4 - debian/rules:
5 + Use /usr/share/backgrounds as image directory.
6 + Add translation domain to .desktop files.
7 - debian/source_xscreensaver.py:
8 + Add apport hook.
9 - debian/xscreensaver.dirs:
10 + Install /usr/share/backgrounds. By default, settings search in
11 /usr/share/backgrounds and without it, it displays an error.
12 - debian/patches/ubuntu-branding.patch: Use Ubuntu branding.
13 - Patch out multiple messages warning users to upgrade XScreenSaver. Ubuntu
14 backports bug and security fixes to older versions of software as needed
15 and as possible, and XScreenSaver is specifically maintained by the
16 Lubuntu team, therefore this message is not necessary for us.
17 (LP: 2009306)
18
19 -- Mate Kukri <mate.kukri@canonical.com> Thu, 15 Feb 2024 08:46:37 +0000
20
1xscreensaver (6.06+dfsg1-3) unstable; urgency=medium21xscreensaver (6.06+dfsg1-3) unstable; urgency=medium
222
3 * Add 02_dpms_prefs_lost.patch from upstream:23 * Add 02_dpms_prefs_lost.patch from upstream:
@@ -89,6 +109,31 @@ xscreensaver (6.02+dfsg1-3) unstable; urgency=medium
89109
90 -- Tormod Volden <debian.tormod@gmail.com> Fri, 18 Feb 2022 09:11:58 +0100110 -- Tormod Volden <debian.tormod@gmail.com> Fri, 18 Feb 2022 09:11:58 +0100
91111
112xscreensaver (6.02+dfsg1-2ubuntu2) lunar; urgency=medium
113
114 * Patch out multiple messages warning users to upgrade XScreenSaver. Ubuntu
115 backports bug and security fixes to older versions of software as needed
116 and as possible, and XScreenSaver is specifically maintained by the
117 Lubuntu team, therefore this message is not necessary for us.
118 (LP: #2009306)
119
120 -- Aaron Rainbolt <arraybolt3@ubuntu.com> Sun, 05 Mar 2023 17:25:54 -0600
121
122xscreensaver (6.02+dfsg1-2ubuntu1) kinetic; urgency=medium
123
124 * Merge from Debian unstable. Remaining changes: (LP: #1961634)
125 - debian/rules:
126 + Use /usr/share/backgrounds as image directory.
127 + Add translation domain to .desktop files.
128 - debian/source_xscreensaver.py:
129 + Add apport hook.
130 - debian/xscreensaver.dirs:
131 + Install /usr/share/backgrounds. By default, settings search in
132 /usr/share/backgrounds and without it, it displays an error.
133 - debian/patches/90_ubuntu-branding.patch: Use Ubuntu branding.
134
135 -- Tormod Volden <debian.tormod@gmail.com> Thu, 24 Feb 2022 12:02:25 +0100
136
92xscreensaver (6.02+dfsg1-2) unstable; urgency=medium137xscreensaver (6.02+dfsg1-2) unstable; urgency=medium
93138
94 * Borrow patch from Fedora to fix building "marbling" on arm64139 * Borrow patch from Fedora to fix building "marbling" on arm64
@@ -145,6 +190,21 @@ xscreensaver (6.02+dfsg1-1) unstable; urgency=medium
145190
146 -- Tormod Volden <debian.tormod@gmail.com> Mon, 10 Jan 2022 23:10:18 +0100191 -- Tormod Volden <debian.tormod@gmail.com> Mon, 10 Jan 2022 23:10:18 +0100
147192
193xscreensaver (5.45+dfsg1-2ubuntu1) impish; urgency=medium
194
195 * Merge from Debian unstable. Remaining changes:
196 - debian/rules:
197 + Use /usr/share/backgrounds as image directory.
198 + Add translation domain to .desktop files.
199 - debian/source_xscreensaver.py:
200 + Add apport hook.
201 - debian/xscreensaver.dirs:
202 + Install /usr/share/backgrounds. By default, settings search in
203 /usr/share/backgrounds and without it, it displays an error.
204 - debian/patches/90_ubuntu-branding.patch: Use Ubuntu branding.
205
206 -- Robert Ancell <robert.ancell@canonical.com> Tue, 15 Jun 2021 11:21:52 +1200
207
148xscreensaver (5.45+dfsg1-2) unstable; urgency=medium208xscreensaver (5.45+dfsg1-2) unstable; urgency=medium
149209
150 * Do not assign raw net capability to "sonar" hack due to a security210 * Do not assign raw net capability to "sonar" hack due to a security
diff --git a/debian/control b/debian/control
index 68086b7..6b25977 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: xscreensaver1Source: xscreensaver
2Section: x112Section: x11
3Priority: optional3Priority: optional
4Maintainer: Tormod Volden <debian.tormod@gmail.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Tormod Volden <debian.tormod@gmail.com>
5Build-Depends: debhelper-compat (= 12),6Build-Depends: debhelper-compat (= 12),
6 bc,7 bc,
7 fortune-mod,8 fortune-mod,
diff --git a/debian/patches/remove_version_upgrade_warnings.patch b/debian/patches/remove_version_upgrade_warnings.patch
8new file mode 1006449new file mode 100644
index 0000000..c97b351
--- /dev/null
+++ b/debian/patches/remove_version_upgrade_warnings.patch
@@ -0,0 +1,73 @@
1From: Aaron Rainbolt <arraybolt3@ubuntu.com>
2Date: Thu, 15 Feb 2024 09:33:20 +0000
3Subject: Remove unnecessary version upgrade warnings.
4
5Bug-Ubuntu: https://launchpad.net/bugs/2009306
6Forwarded: not-needed
7Last-Updated: 2023-03-05
8
9In order to help users who are on old, buggy, and possibly insecure versions
10of XScreenSaver, there is are multiple messages in XScreenSaver that warn the
11user that their XScreenSaver version is very old and that they should
12upgrade, building from source if necessary.
13
14Ubuntu backports bug and security fixes to older versions of software as
15needed and as possible, and the Lubuntu Development team specifically watches
16over XScreenSaver. It should not be necessary for the user to upgrade
17XScreenSaver. Additionally, building XScreenSaver from source could possibly
18break a user's system by changing system files without benefit of the package
19manager.
20
21This patch removes the unnecessary warning.
22
23xscreensaver (6.02+dfsg1-2ubuntu2) lunar; urgency=medium
24
25 * Patch out a message warning users to upgrade XScreenSaver. Ubuntu
26 backports bug and security fixes to older versions of software as needed
27 and as possible, and XScreenSaver is specifically maintained by the
28 Lubuntu team, therefore this message is not necessary for us.
29---
30 driver/dialog.c | 30 ++++++++++++++++++------------
31 1 file changed, 18 insertions(+), 12 deletions(-)
32
33diff --git a/driver/dialog.c b/driver/dialog.c
34index 1ab6ee4..71b14f2 100644
35--- a/driver/dialog.c
36+++ b/driver/dialog.c
37@@ -1372,18 +1372,24 @@ window_draw (window_state *ws)
38 lines[i].align = CENTER;
39 i++;
40
41- if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
42- {
43- lines[i].text = _("Update available!\nThis version is very old.\n");
44- lines[i].font = ws->error_font;
45- lines[i].fg = ws->xft_error_foreground;
46- lines[i].fg2 = lines[i].fg;
47- lines[i].bg = ws->background;
48- lines[i].type = LABEL;
49- lines[i].align = CENTER;
50- i++;
51- }
52- else if (strstr (ws->version, "a") ||
53+ /* The outdated software warning is unnecessary in Ubuntu. The "else" in the
54+ * else if block also needs patched out since it's a syntax error when the
55+ * first "if" is patched out.
56+ *
57+ * if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
58+ * {
59+ * lines[i].text = _("Update available!\nThis version is very old.\n");
60+ * lines[i].font = ws->error_font;
61+ * lines[i].fg = ws->xft_error_foreground;
62+ * lines[i].fg2 = lines[i].fg;
63+ * lines[i].bg = ws->background;
64+ * lines[i].type = LABEL;
65+ * lines[i].align = CENTER;
66+ * i++;
67+ * }
68+ * else if (strstr (ws->version, "a") ||
69+ */
70+ if (strstr (ws->version, "a") ||
71 strstr (ws->version, "b"))
72 {
73 lines[i].text = _("PRE-RELEASE VERSION");
diff --git a/debian/patches/series b/debian/patches/series
index 5b175c7..3cf59ec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -27,3 +27,6 @@
2796_nogl-build-for-nogl-config.patch2796_nogl-build-for-nogl-config.patch
2898_daemon_desktop_file.patch2898_daemon_desktop_file.patch
29100_configure_allow_warnings.patch29100_configure_allow_warnings.patch
30
31ubuntu-branding.patch
32remove_version_upgrade_warnings.patch
diff --git a/debian/patches/ubuntu-branding.patch b/debian/patches/ubuntu-branding.patch
30new file mode 10064433new file mode 100644
index 0000000..aeb51f8
--- /dev/null
+++ b/debian/patches/ubuntu-branding.patch
@@ -0,0 +1,22 @@
1From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
2Date: Thu, 15 Feb 2024 08:47:18 +0000
3Subject: _ubuntu-branding
4
5===================================================================
6---
7 driver/XScreenSaver.ad.in | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/driver/XScreenSaver.ad.in b/driver/XScreenSaver.ad.in
11index 8323c43..e48b21a 100644
12--- a/driver/XScreenSaver.ad.in
13+++ b/driver/XScreenSaver.ad.in
14@@ -62,7 +62,7 @@
15 *textLiteral: XScreenSaver
16 *textFile: @DEFAULT_TEXT_FILE@
17 *textProgram: fortune
18-*textURL: https://planet.debian.org/rss20.xml
19+*textURL: https://feeds.feedburner.com/ubuntu-news
20
21 ! This is what the "Settings" button on the splash screen runs.
22 *demoCommand: xscreensaver-settings
diff --git a/debian/rules b/debian/rules
index cf25214..4232930 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,6 +36,7 @@ override_dh_auto_configure:
36 mv driver/XScreenSaver_Xm_ad.h driver/XScreenSaver_Xm_ad.h.upstream36 mv driver/XScreenSaver_Xm_ad.h driver/XScreenSaver_Xm_ad.h.upstream
37 # Configure for xscreensaver37 # Configure for xscreensaver
38 dh_auto_configure -- \38 dh_auto_configure -- \
39 --with-image-directory=/usr/share/backgrounds \
39 --without-gl --with-pam --with-gtk --without-kerberos \40 --without-gl --with-pam --with-gtk --without-kerberos \
40 --without-shadow \41 --without-shadow \
41 --with-hackdir=/usr/libexec/xscreensaver \42 --with-hackdir=/usr/libexec/xscreensaver \
@@ -46,6 +47,7 @@ override_dh_auto_configure:
46 cp driver/XScreenSaver.ad driver/XScreenSaver.ad-nogl47 cp driver/XScreenSaver.ad driver/XScreenSaver.ad-nogl
47 # Configure for xscreensaver-gl48 # Configure for xscreensaver-gl
48 dh_auto_configure -- \49 dh_auto_configure -- \
50 --with-image-directory=/usr/share/backgrounds \
49 --with-gl --with-pam --with-gtk --without-kerberos \51 --with-gl --with-pam --with-gtk --without-kerberos \
50 --without-shadow \52 --without-shadow \
51 --with-hackdir=/usr/libexec/xscreensaver \53 --with-hackdir=/usr/libexec/xscreensaver \
@@ -69,6 +71,14 @@ override_dh_auto_install:
69 dh_auto_install -- install_prefix=$(CURDIR)/debian/tmp \71 dh_auto_install -- install_prefix=$(CURDIR)/debian/tmp \
70 GTK_DATADIR=/usr/share KDEDIR=/usr \72 GTK_DATADIR=/usr/share KDEDIR=/usr \
71 UPDATE_ICON_CACHE=:73 UPDATE_ICON_CACHE=:
74
75 # Add translation domain to .desktop files
76 DOMAIN=$$(grep --max-count 1 '^GETTEXT_PACKAGE[[:space:]]*=' $(CURDIR)/po/Makefile | sed 's/^.*=[[:space:]]\([^[:space:]]\)/\1/'); \
77 for d in $$(find debian/tmp -type f -name "*.desktop" ); do \
78 echo "Adding translation domain $$DOMAIN to $$d..."; \
79 echo "X-Ubuntu-Gettext-Domain=$$DOMAIN" >> $$d; \
80 done
81
72 # Install .desktop files used by gnome-screensaver etc82 # Install .desktop files used by gnome-screensaver etc
73 mkdir -p debian/tmp/usr/share/applications/screensavers83 mkdir -p debian/tmp/usr/share/applications/screensavers
74 cp debian/screensavers-desktop-files/*.desktop \84 cp debian/screensavers-desktop-files/*.desktop \
diff --git a/debian/source_xscreensaver.py b/debian/source_xscreensaver.py
75new file mode 10064485new file mode 100644
index 0000000..1afd612
--- /dev/null
+++ b/debian/source_xscreensaver.py
@@ -0,0 +1,21 @@
1'''apport package hook for xscreensaver
2
3(c) 2009 Canonical Ltd.
4Author: Brian Murray <brian@ubuntu.com>
5
6This program is free software; you can redistribute it and/or modify it
7under the terms of the GNU General Public License as published by the
8Free Software Foundation; either version 3 of the License, or (at your
9option) any later version. See http://www.gnu.org/copyleft/gpl.html for
10the full text of the license.
11'''
12
13from apport.hookutils import *
14
15def add_info(report):
16
17 attach_file_if_exists(report, '/var/log/Xorg.0.log', 'XorgLog')
18 attach_file_if_exists(report, '/var/log/Xorg.0.log.old', 'XorgLogOld')
19 report['DisplayDevices'] = pci_devices(PCI_DISPLAY)
20 report['glxinfo'] = command_output(['glxinfo'])
21 nonfree_kernel_modules()
diff --git a/debian/xscreensaver.dirs b/debian/xscreensaver.dirs
0new file mode 10064422new file mode 100644
index 0000000..7ad5adb
--- /dev/null
+++ b/debian/xscreensaver.dirs
@@ -0,0 +1 @@
1/usr/share/backgrounds

Subscribers

People subscribed via source and target branches