Merge ~aleasto/ubuntu/+source/brltty:merge-6.7-1 into ubuntu/+source/brltty:debian/sid

Proposed by Alessandro Astone
Status: Merged
Merge reported by: Alessandro Astone
Merged at revision: 91c627afe351f31fe20a0867536ffb3d4989a340
Proposed branch: ~aleasto/ubuntu/+source/brltty:merge-6.7-1
Merge into: ubuntu/+source/brltty:debian/sid
Diff against target: 801 lines (+618/-6)
13 files modified
debian/brltty-setup (+60/-0)
debian/brltty-udev.service (+29/-0)
debian/brltty.dirs (+1/-0)
debian/brltty.install (+3/-0)
debian/brltty.udev.rules.patch (+102/-0)
debian/changelog (+342/-0)
debian/clean (+1/-0)
debian/control (+2/-1)
debian/initramfs/brltty.sh (+38/-0)
debian/initramfs/hooks/brltty.in (+6/-0)
debian/initramfs/scripts/init-premount/brltty (+1/-3)
debian/initramfs/scripts/init-top/brltty (+22/-0)
debian/rules (+11/-2)
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
git-ubuntu import Pending
Review via email: mp+477046@code.launchpad.net

Description of the change

This merges debian/6.7-1 from debian unstable into ubuntu

To post a comment you must log in.
Revision history for this message
Alessandro Astone (aleasto) :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks. I'm uploading the merge now but don't have the right to change the status

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/brltty-setup b/debian/brltty-setup
2new file mode 100644
3index 0000000..865a168
4--- /dev/null
5+++ b/debian/brltty-setup
6@@ -0,0 +1,60 @@
7+#! /bin/sh
8+set -e
9+
10+# Exits zero if a device was configured, otherwise non-zero.
11+
12+cat <<EOF
13+=== BRAILLE CONFIGURATION ===
14+
15+Please specify the type of braille device you wish to configure.
16+See http://access.ubuntu.com/braille for details.
17+Note that USB devices not connected via a USB serial converter will be
18+detected automatically, so if you have one of these you can press X.
19+
20+B - Bluetooth
21+S - Serial
22+U - USB serial
23+X - Exit
24+EOF
25+printf "Device type (b/s/u/x): "
26+read device_type
27+echo
28+
29+case "$device_type" in
30+ [bB])
31+ echo "== Bluetooth device configuration =="
32+ echo
33+ printf "Bluetooth device address: "
34+ read b_address
35+ echo
36+ echo "Configuring bluetooth braille device on address" \
37+ "$b_address"
38+ /lib/brltty/brltty.sh -b auto -d "bluetooth:$b_address"
39+ ;;
40+ [sS])
41+ echo "== Serial device configuration =="
42+ echo
43+ printf "Serial port (0-9 for ttyS0-9): "
44+ read s_port
45+ printf "Device type (brltty model code): "
46+ read s_model echo
47+ echo "Configuring serial braille device on ttyS$s_port"
48+ /lib/brltty/brltty.sh -b "$s_model" -d "serial:ttyS$s_port"
49+ ;;
50+ [uU])
51+ echo "== USB serial device configuration =="
52+ echo
53+ printf "USB serial port: "
54+ read u_port
55+ printf "Device type (brltty model code): "
56+ read u_model
57+ echo
58+ echo "Configuring serial braille device on ttyUSB$u_port"
59+ /lib/brltty/brltty.sh -b "$u_model" -d "serial:ttyUSB$u_port"
60+ ;;
61+ *)
62+ exit 1
63+ ;;
64+esac
65+
66+exit 0
67diff --git a/debian/brltty-udev.service b/debian/brltty-udev.service
68new file mode 100644
69index 0000000..3f9b3a9
70--- /dev/null
71+++ b/debian/brltty-udev.service
72@@ -0,0 +1,29 @@
73+[Unit]
74+
75+Description=Braille Device Support
76+Documentation=man:brltty(1)
77+Documentation=http://brltty.com/
78+
79+DefaultDependencies=no
80+StopWhenUnneeded=true
81+
82+RequiresMountsFor=/var/lib/brltty
83+
84+
85+[Service]
86+
87+Type=notify
88+ExecStart=/sbin/brltty -n -p /run/brltty.pid
89+
90+TimeoutStartSec=5
91+TimeoutStopSec=10
92+
93+Restart=always
94+RestartSec=30
95+
96+Nice=-10
97+OOMScoreAdjust=-900
98+
99+ProtectHome=read-only
100+ProtectSystem=full
101+SystemCallArchitectures=native
102diff --git a/debian/brltty.dirs b/debian/brltty.dirs
103index a10523d..b5003fa 100644
104--- a/debian/brltty.dirs
105+++ b/debian/brltty.dirs
106@@ -1,4 +1,5 @@
107 etc/brltty
108 lib/brltty
109+lib/udev/rules.d
110 usr/share/initramfs-tools/hooks
111 usr/share/initramfs-tools/scripts/init-premount
112diff --git a/debian/brltty.install b/debian/brltty.install
113index 83e5fc2..8ef2121 100644
114--- a/debian/brltty.install
115+++ b/debian/brltty.install
116@@ -18,4 +18,7 @@ debian/initramfs/hooks/brltty usr/share/initramfs-tools/hooks
117 debian/initramfs/scripts/init-premount/brltty usr/share/initramfs-tools/scripts/init-premount
118 debian/tmp/usr/share/polkit-1
119 debian/tmp/usr/share/metainfo
120+debian/initramfs/scripts/init-top/brltty usr/share/initramfs-tools/scripts/init-top
121+debian/initramfs/brltty.sh usr/share/brltty/initramfs
122+debian/brltty-setup sbin
123 debian/tmp/var/lib
124diff --git a/debian/brltty.udev.rules.patch b/debian/brltty.udev.rules.patch
125new file mode 100644
126index 0000000..4e99aeb
127--- /dev/null
128+++ b/debian/brltty.udev.rules.patch
129@@ -0,0 +1,102 @@
130+--- debian/brltty-udeb.udev.rules 2024-11-21 17:46:31.018674515 +0100
131++++ debian/brltty.udev.rules 2024-11-22 10:09:15.347543775 +0100
132+@@ -20,18 +20,12 @@
133+ # Udev rules for starting BRLTTY when a USB braille device is connected #
134+ #########################################################################
135+
136++# compare this with BRLTTY's Autostart/Udev/rules
137++
138+ SUBSYSTEM=="usb_device", GOTO="brltty_usb_begin"
139+ SUBSYSTEM=="usb", KERNEL!="*:*", GOTO="brltty_usb_begin"
140+ GOTO="brltty_device_end"
141+
142+-# Note: This is only meant for use in the Debian Installer, since it contains
143+-# the udev rules for generic USB IDs. For installed packages, make install-udev
144+-# should be used instead, and customized.rules can be installed by default, but
145+-# generic.rules should be installed only when one is sure that the system is
146+-# supposed to be running a Braille device.
147+-#
148+-# Note: Compare this with BRLTTY's Autostart/Udev/usb-{customized,generic}.rules after running make there.
149+-#
150+ # Note about generic identifiers:
151+ #
152+ # on updating, check in Programs/config.c's autodetectableBrailleDrivers_* about
153+@@ -54,17 +48,19 @@
154+ # HandyTech [FTDI chip]
155+ # Hedo [MobilLine]
156+ # MDV [all models]
157+-ENV{PRODUCT}=="403/6001/*", ATTR{manufacturer}=="FTDI", ENV{BRLTTY_BRAILLE_DRIVER}="hm,ht", GOTO="brltty_usb_run"
158++# Ubuntu disable those to avoid conflicts, https://launchpad.net/bugs/1958224
159++# ENV{PRODUCT}=="403/6001/*", ATTR{manufacturer}=="FTDI", ENV{BRLTTY_BRAILLE_DRIVER}="hd,hm,ht", GOTO="brltty_usb_run"
160+ ENV{PRODUCT}=="403/6001/*", ATTR{manufacturer}=="Hedo Reha Technik GmbH", ENV{BRLTTY_BRAILLE_DRIVER}="hd", GOTO="brltty_usb_run"
161+ ENV{PRODUCT}=="403/6001/*", ATTR{manufacturer}=="Tivomatic Oy", ENV{BRLTTY_BRAILLE_DRIVER}="at", GOTO="brltty_usb_run"
162+-ENV{PRODUCT}=="403/6001/*", ENV{BRLTTY_BRAILLE_DRIVER}="ce,md", GOTO="brltty_usb_run"
163++#ENV{PRODUCT}=="403/6001/*", ENV{BRLTTY_BRAILLE_DRIVER}="ce,md", GOTO="brltty_usb_run"
164+
165+ # Device: 0403:6010
166+ # Generic Identifier
167+ # Vendor: Future Technology Devices International, Ltd
168+ # Product: FT2232C/D/H Dual UART/FIFO IC
169+ # DotPad [all models]
170+-ENV{PRODUCT}=="403/6010/*", ENV{BRLTTY_BRAILLE_DRIVER}="dp", GOTO="brltty_usb_run"
171++# Ubuntu disable those to avoid conflicts, https://launchpad.net/bugs/1958224
172++#ENV{PRODUCT}=="403/6010/*", ENV{BRLTTY_BRAILLE_DRIVER}="dp", GOTO="brltty_usb_run"
173+
174+ # Device: 10C4:EA60
175+ # Generic Identifier
176+@@ -73,28 +69,31 @@
177+ # BrailleMemo [Next Touch 40]
178+ # BrailleMemo [Pocket]
179+ # Seika [Braille Display]
180+-ENV{PRODUCT}=="10c4/ea60/*", ATTR{manufacturer}=="Silicon Labs", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run"
181++# Ubuntu disable those to avoid conflicts, https://launchpad.net/bugs/1958224
182++#ENV{PRODUCT}=="10c4/ea60/*", ATTR{manufacturer}=="Silicon Labs", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run"
183+
184+ # Device: 10C4:EA80
185+ # Generic Identifier
186+ # Vendor: Cygnal Integrated Products, Inc.
187+ # Product: CP210x UART Bridge
188+ # Seika [Note Taker]
189+-ENV{PRODUCT}=="10c4/ea80/*", ATTR{manufacturer}=="Silicon Laboratories", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run"
190++# Ubuntu disable those to avoid conflicts, https://launchpad.net/bugs/1958224
191++#ENV{PRODUCT}=="10c4/ea80/*", ATTR{manufacturer}=="Silicon Laboratories", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run"
192+
193+ # Device: 1A86:55D3
194+ # Generic Identifier
195+ # Vendor: QinHeng Electronics
196+ # Product: USB Single Serial
197+ # HIMS [eMotion (legacy)]
198+-ENV{PRODUCT}=="1a86/55d3/*", ENV{BRLTTY_BRAILLE_DRIVER}="hm", GOTO="brltty_usb_run"
199++# Ubuntu disable those to avoid conflicts, https://launchpad.net/bugs/1958224
200++#ENV{PRODUCT}=="1a86/55d3/*", ENV{BRLTTY_BRAILLE_DRIVER}="hm", GOTO="brltty_usb_run"
201+
202+ # Device: 1A86:7523
203+ # Generic Identifier
204+ # Vendor: Jiangsu QinHeng, Ltd.
205+ # Product: CH341 USB Bridge Controller
206+ # Baum [NLS eReader Zoomax (20 cells)]
207+-ENV{PRODUCT}=="1a86/7523/*", ATTRS{idVendor}=="1a40", ATTRS{idProduct}=="0101", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"
208++#ENV{PRODUCT}=="1a86/7523/*", ATTRS{idVendor}=="1a40", ATTRS{idProduct}=="0101", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"
209+
210+ # Device: 0403:DE58
211+ # Hedo [MobilLine]
212+@@ -613,17 +612,8 @@
213+
214+ LABEL="brltty_device_run"
215+ ENV{BRLTTY_PID_FILE}="/var/run/brltty.pid"
216+-
217+-ACTION=="add", GOTO="brltty_add"
218+-ACTION=="remove", GOTO="brltty_remove"
219+-GOTO="brltty_device_end"
220+-
221+-LABEL="brltty_add"
222+-RUN+="/lib/udev/brltty.sh"
223+-GOTO="brltty_device_end"
224+-
225+-LABEL="brltty_remove"
226+-RUN+="/lib/udev/brltty.sh -C"
227++TAG+="systemd"
228++ENV{SYSTEMD_WANTS}+="brltty-udev.service"
229+ GOTO="brltty_device_end"
230+
231+ LABEL="brltty_device_end"
232diff --git a/debian/changelog b/debian/changelog
233index 57636f3..ec83c13 100644
234--- a/debian/changelog
235+++ b/debian/changelog
236@@ -1,3 +1,32 @@
237+brltty (6.7-1ubuntu1) UNRELEASED; urgency=medium
238+
239+ * Merge from Debian unstable (LP: #2089289). Remaining changes:
240+ + add brltty-setup
241+ - debian/brltty-setup
242+ - debian/brltty.install
243+ - debian/rules
244+ + add initramfs integration to run brltty-setup if necessary before
245+ plymouth starts
246+ - debian/initramfs/brltty.sh
247+ - debian/initramfs/hooks/brltty.in
248+ - debian/initramfs/scripts/init-premount/brltty
249+ - debian/initramfs/scripts/init-top/brltty
250+ - debian/brltty.install
251+ - debian/brltty.postinst
252+ + add udev rules file that uses brltty-udev.service to activate via
253+ systemd
254+ - debian/brltty-udev.service
255+ - debian/brltty.dirs
256+ - debian/brltty.udev.rules.patch
257+ - debian/rules
258+ - debian/clean
259+ + disable brltty.service by default, but enable it if the user configures
260+ Braille at install time for a non-USB display
261+ - debian/rules
262+ * Disable generic devices 1A86:55D3 and 1A86:7523 (LP: #1958224)
263+
264+ -- Alessandro Astone <alessandro.astone@canonical.com> Fri, 22 Nov 2024 10:10:12 +0100
265+
266 brltty (6.7-1) unstable; urgency=medium
267
268 * New upstream release.
269@@ -9,6 +38,46 @@ brltty (6.7-1) unstable; urgency=medium
270
271 -- Samuel Thibault <sthibault@debian.org> Thu, 17 Oct 2024 20:32:36 +0200
272
273+brltty (6.6-5ubuntu2) plucky; urgency=medium
274+
275+ * No-change rebuild to add support for Python 3.13.
276+
277+ -- Matthias Klose <doko@ubuntu.com> Thu, 14 Nov 2024 19:29:23 +0100
278+
279+brltty (6.6-5ubuntu1) oracular; urgency=medium
280+
281+ * Merge from Debian unstable. Remaining changes:
282+ + add brltty-setup
283+ - debian/brltty-setup
284+ - debian/brltty.install
285+ - debian/rules
286+ + add initramfs integration to run brltty-setup if necessary before
287+ plymouth starts
288+ - debian/initramfs/brltty.sh
289+ - debian/initramfs/hooks/brltty.in
290+ - debian/initramfs/scripts/init-premount/brltty
291+ - debian/initramfs/scripts/init-top/brltty
292+ - debian/brltty.install
293+ - debian/brltty.postinst
294+ + add udev rules file that uses brltty-udev.service to activate via
295+ systemd
296+ - debian/brltty-udev.service
297+ - debian/brltty.dirs
298+ - debian/brltty.udev.rules.patch
299+ - debian/rules
300+ - debian/clean
301+ + disable brltty.service by default, but enable it if the user configures
302+ Braille at install time for a non-USB display
303+ - debian/rules
304+ * Dropped changes, no longer needed:
305+ - drop ubiquity integration, as ubiquity is now obsolete.
306+ - dropped versioned build-dependency on the dapper version of
307+ initramfs-tools; brltty does not depend on initramfs-tools being
308+ present, it merely integrates with it.
309+ * Drop reference to obsolete /var/run.
310+
311+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 06 Jun 2024 19:23:50 -0700
312+
313 brltty (6.6-5) unstable; urgency=medium
314
315 * control: Replace pkg-config deps with pkgconf.
316@@ -24,6 +93,78 @@ brltty (6.6-4+exp1) experimental; urgency=medium
317
318 -- Samuel Thibault <sthibault@debian.org> Sat, 17 Feb 2024 22:42:48 +0100
319
320+brltty (6.6-4ubuntu5) noble; urgency=medium
321+
322+ * No-change rebuild for CVE-2024-3094
323+
324+ -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 31 Mar 2024 00:24:15 +0000
325+
326+brltty (6.6-4ubuntu4) noble; urgency=medium
327+
328+ * No-change rebuild against libglib2.0-0t64
329+
330+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 11 Mar 2024 22:05:38 +0000
331+
332+brltty (6.6-4ubuntu3) noble; urgency=medium
333+
334+ * No-change rebuild against libglib2.0-0t64
335+
336+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 08 Mar 2024 03:58:09 +0000
337+
338+brltty (6.6-4ubuntu2) noble; urgency=medium
339+
340+ * No-change rebuild for ICU soname change.
341+
342+ -- Matthias Klose <doko@ubuntu.com> Tue, 19 Dec 2023 11:05:14 +0100
343+
344+brltty (6.6-4ubuntu1) noble; urgency=low
345+
346+ * Merge from Debian unstable. Remaining changes:
347+ - Remaining changes:
348+ + add brltty-setup
349+ - debian/brltty-setup
350+ - debian/brltty.install
351+ - debian/rules
352+ + add initramfs integration to run brltty-setup if necessary before
353+ plymouth starts
354+ - debian/control
355+ - debian/initramfs/brltty.sh
356+ - debian/initramfs/hooks/brltty.in
357+ - debian/initramfs/scripts/init-premount/brltty
358+ - debian/initramfs/scripts/init-top/brltty
359+ - debian/brltty.dirs
360+ - debian/brltty.install
361+ - debian/brltty.postinst
362+ + add ubiquity integration to propagate any brltty configuration to the
363+ target system
364+ - debian/31brltty
365+ - debian/brltty.dirs
366+ - debian/brltty.install
367+ + add udev rules file that uses brltty-udev.service to activate via
368+ systemd
369+ - debian/brltty-udev.service
370+ - debian/brltty.dirs
371+ - debian/brltty.udev.rules
372+ - debian/rules
373+ + disable brltty.service by default, but enable it if the user configures
374+ Braille at install time for a non-USB display
375+ - debian/31brltty
376+ - debian/rules
377+ + don't install /etc/brltty.conf in the package
378+ - debian/31brltty
379+ * Include further updates to brltty.udev.rules from brltty-udeb.udev.rules
380+ that were omitted in the previous release cycle due to timing.
381+ - devices with FTDI and Silicon Laboratories as a manufacturer remain
382+ disabled as these do not uniquely identify accessibility devices.
383+ * Re-enable udev rules for devices from Hedo Reha Technik GmbH, which is
384+ a maker of accessibility devices and therefore not a false positive
385+ * Move debian/brltty.udev.rules to a patch debian/brltty.udev.rules.patch
386+ against debian/brltty-udeb.udev.rules to be applied at build time and
387+ hard fail on any inconsistencies, to avoid future issues with missing
388+ updates to the Ubuntu-specific file
389+
390+ -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 19 Nov 2023 04:08:14 -0800
391+
392 brltty (6.6-4) unstable; urgency=high
393
394 * patches/git-base-none-quality: Set quality to low or none for base and no
395@@ -62,6 +203,65 @@ brltty (6.6-1) unstable; urgency=medium
396
397 -- Samuel Thibault <sthibault@debian.org> Sat, 05 Aug 2023 02:42:32 +0200
398
399+brltty (6.5-7ubuntu3) noble; urgency=medium
400+
401+ * No-change rebuild to build with python3.12 as supported.
402+
403+ -- Matthias Klose <doko@ubuntu.com> Thu, 02 Nov 2023 09:19:04 +0100
404+
405+brltty (6.5-7ubuntu2) mantic; urgency=medium
406+
407+ * Merge brltty.udev.rules from brltty-udeb.udev.rules. This picks up only
408+ changes to comments, enablement of new device IDs that are from
409+ manufacturers that work specifically in Braille devices (HumanWare), and
410+ those changes that restrict existing matches on generic device IDs to
411+ reduce false-positives matches. Additional changes should be merged for
412+ testing at the start of the next release cycle. Thanks to
413+ Samuel Thibault for pointing this out (LP 1958224).
414+
415+ -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 01 Oct 2023 16:58:06 -0700
416+
417+brltty (6.5-7ubuntu1) mantic; urgency=low
418+
419+ * Merge from Debian unstable. Remaining changes:
420+ - Remaining changes:
421+ + add brltty-setup
422+ - debian/brltty-setup
423+ - debian/brltty.install
424+ - debian/rules
425+ + add initramfs integration to run brltty-setup if necessary before
426+ plymouth starts
427+ - debian/control
428+ - debian/initramfs/brltty.sh
429+ - debian/initramfs/hooks/brltty.in
430+ - debian/initramfs/scripts/init-premount/brltty
431+ - debian/initramfs/scripts/init-top/brltty
432+ - debian/brltty.dirs
433+ - debian/brltty.install
434+ - debian/brltty.postinst
435+ + add ubiquity integration to propagate any brltty configuration to the
436+ target system
437+ - debian/31brltty
438+ - debian/brltty.dirs
439+ - debian/brltty.install
440+ + add udev rules file that uses brltty-udev.service to activate via
441+ systemd
442+ - debian/brltty-udev.service
443+ - debian/brltty.dirs
444+ - debian/brltty.udev.rules
445+ - debian/rules
446+ + disable brltty.service by default, but enable it if the user configures
447+ Braille at install time for a non-USB display
448+ - debian/31brltty
449+ - debian/rules
450+ + don't install /etc/brltty.conf in the package
451+ - debian/31brltty
452+ + debian/brltty.udev.rules: don't claim generic USB device IDs it leads
453+ to brltty grabbing serial ports which other devices like Arduinos
454+ boards can't use anymore
455+
456+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 18 May 2023 08:32:55 -0700
457+
458 brltty (6.5-7) unstable; urgency=medium
459
460 [ Remus-Gabriel Chelu ]
461@@ -82,6 +282,59 @@ brltty (6.5-6) unstable; urgency=medium
462
463 -- Samuel Thibault <sthibault@debian.org> Tue, 06 Dec 2022 22:25:48 +0100
464
465+brltty (6.5-5ubuntu3) lunar; urgency=medium
466+
467+ * Rebuild against latest icu
468+
469+ -- Jeremy Bicha <jbicha@ubuntu.com> Sat, 04 Feb 2023 14:27:29 -0500
470+
471+brltty (6.5-5ubuntu2) lunar; urgency=medium
472+
473+ * Fix accidentally uploaded merge conflict
474+
475+ -- William 'jawn-smith' Wilson <jawn-smith@ubuntu.com> Thu, 24 Nov 2022 09:55:15 -0600
476+
477+brltty (6.5-5ubuntu1) lunar; urgency=low
478+
479+ * Merge from Debian unstable. Remaining changes:
480+ - Remaining changes:
481+ + add brltty-setup
482+ - debian/brltty-setup
483+ - debian/brltty.install
484+ - debian/rules
485+ + add initramfs integration to run brltty-setup if necessary before
486+ plymouth starts
487+ - debian/control
488+ - debian/initramfs/brltty.sh
489+ - debian/initramfs/hooks/brltty.in
490+ - debian/initramfs/scripts/init-premount/brltty
491+ - debian/initramfs/scripts/init-top/brltty
492+ - debian/brltty.dirs
493+ - debian/brltty.install
494+ - debian/brltty.postinst
495+ + add ubiquity integration to propagate any brltty configuration to the
496+ target system
497+ - debian/31brltty
498+ - debian/brltty.dirs
499+ - debian/brltty.install
500+ + add udev rules file that uses brltty-udev.service to activate via
501+ systemd
502+ - debian/brltty-udev.service
503+ - debian/brltty.dirs
504+ - debian/brltty.udev.rules
505+ - debian/rules
506+ + disable brltty.service by default, but enable it if the user configures
507+ Braille at install time for a non-USB display
508+ - debian/31brltty
509+ - debian/rules
510+ + don't install /etc/brltty.conf in the package
511+ - debian/31brltty
512+ + debian/brltty.udev.rules: don't claim generic USB device IDs it leads
513+ to brltty grabbing serial ports which other devices like Arduinos
514+ boards can't use anymore
515+
516+ -- William 'jawn-smith' Wilson <jawn-smith@ubuntu.com> Fri, 23 Nov 2022 16:22:13 +0000
517+
518 brltty (6.5-5) unstable; urgency=medium
519
520 [ Samuel Thibault ]
521@@ -116,6 +369,53 @@ brltty (6.5-4) unstable; urgency=medium
522
523 -- Samuel Thibault <sthibault@debian.org> Sat, 17 Sep 2022 21:01:50 +0200
524
525+brltty (6.5-3ubuntu2) lunar; urgency=medium
526+
527+ * No-change rebuild with Python 3.11 as supported
528+
529+ -- Graham Inggs <ginggs@ubuntu.com> Thu, 03 Nov 2022 15:39:30 +0000
530+
531+brltty (6.5-3ubuntu1) kinetic; urgency=low
532+
533+ * Merge from Debian unstable. Remaining changes:
534+ - Remaining changes:
535+ + add brltty-setup
536+ - debian/brltty-setup
537+ - debian/brltty.install
538+ - debian/rules
539+ + add initramfs integration to run brltty-setup if necessary before
540+ plymouth starts
541+ - debian/control
542+ - debian/initramfs/brltty.sh
543+ - debian/initramfs/hooks/brltty.in
544+ - debian/initramfs/scripts/init-premount/brltty
545+ - debian/initramfs/scripts/init-top/brltty
546+ - debian/brltty.dirs
547+ - debian/brltty.install
548+ - debian/brltty.postinst
549+ + add ubiquity integration to propagate any brltty configuration to the
550+ target system
551+ - debian/31brltty
552+ - debian/brltty.dirs
553+ - debian/brltty.install
554+ + add udev rules file that uses brltty-udev.service to activate via
555+ systemd
556+ - debian/brltty-udev.service
557+ - debian/brltty.dirs
558+ - debian/brltty.udev.rules
559+ - debian/rules
560+ + disable brltty.service by default, but enable it if the user configures
561+ Braille at install time for a non-USB display
562+ - debian/31brltty
563+ - debian/rules
564+ + don't install /etc/brltty.conf in the package
565+ - debian/31brltty
566+ + debian/brltty.udev.rules: don't claim generic USB device IDs it leads
567+ to brltty grabbing serial ports which other devices like Arduinos
568+ boards can't use anymore
569+
570+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 15 Aug 2022 20:28:46 -0700
571+
572 brltty (6.5-3) unstable; urgency=medium
573
574 * debian/brltty-udeb.sh: Automatically shrink d-i width to 80 columns, as
575@@ -148,6 +448,47 @@ brltty (6.5-1) unstable; urgency=medium
576
577 -- Samuel Thibault <sthibault@debian.org> Sat, 11 Jun 2022 18:59:43 +0200
578
579+brltty (6.4-6ubuntu1) kinetic; urgency=medium
580+
581+ * Resynchronize on Debian
582+ - Remaining changes:
583+ + add brltty-setup
584+ - debian/brltty-setup
585+ - debian/brltty.install
586+ - debian/rules
587+ + add initramfs integration to run brltty-setup if necessary before
588+ plymouth starts
589+ - debian/control
590+ - debian/initramfs/brltty.sh
591+ - debian/initramfs/hooks/brltty.in
592+ - debian/initramfs/scripts/init-premount/brltty
593+ - debian/initramfs/scripts/init-top/brltty
594+ - debian/brltty.dirs
595+ - debian/brltty.install
596+ - debian/brltty.postinst
597+ + add ubiquity integration to propagate any brltty configuration to the
598+ target system
599+ - debian/31brltty
600+ - debian/brltty.dirs
601+ - debian/brltty.install
602+ + add udev rules file that uses brltty-udev.service to activate via
603+ systemd
604+ - debian/brltty-udev.service
605+ - debian/brltty.dirs
606+ - debian/brltty.udev.rules
607+ - debian/rules
608+ + disable brltty.service by default, but enable it if the user configures
609+ Braille at install time for a non-USB display
610+ - debian/31brltty
611+ - debian/rules
612+ + don't install /etc/brltty.conf in the package
613+ - debian/31brltty
614+ + debian/brltty.udev.rules: don't claim generic USB device IDs it leads
615+ to brltty grabbing serial ports which other devices like Arduinos
616+ boards can't use anymore, thanks Samuel Thibault (lp: #1958224)
617+
618+ -- Sebastien Bacher <seb128@ubuntu.com> Thu, 12 May 2022 16:01:05 +0200
619+
620 brltty (6.4-6) unstable; urgency=medium
621
622 * patches/paste-newlines: Fix pasting newlines in X with the brltty
623@@ -1991,3 +2332,4 @@ brltty (2.98-1) unstable; urgency=low
624 * Initial Release.
625
626 -- Mario Lang <mlang@delysid.org> Thu, 4 Jan 2001 16:22:12 +0100
627+
628diff --git a/debian/clean b/debian/clean
629new file mode 100644
630index 0000000..d07280d
631--- /dev/null
632+++ b/debian/clean
633@@ -0,0 +1 @@
634+debian/brltty.udev.rules
635diff --git a/debian/control b/debian/control
636index aa3a78e..a1e0c4d 100644
637--- a/debian/control
638+++ b/debian/control
639@@ -1,7 +1,8 @@
640 Source: brltty
641 Section: admin
642 Priority: optional
643-Maintainer: Debian Accessibility Team <pkg-a11y-devel@alioth-lists.debian.net>
644+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
645+XSBC-Original-Maintainer: Debian Accessibility Team <pkg-a11y-devel@alioth-lists.debian.net>
646 Uploaders: Samuel Thibault <sthibault@debian.org>
647 Vcs-Browser: https://salsa.debian.org/a11y-team/brltty
648 Vcs-Git: https://salsa.debian.org/a11y-team/brltty.git
649diff --git a/debian/initramfs/brltty.sh b/debian/initramfs/brltty.sh
650new file mode 100644
651index 0000000..c3cb28a
652--- /dev/null
653+++ b/debian/initramfs/brltty.sh
654@@ -0,0 +1,38 @@
655+#! /bin/sh
656+set -e
657+
658+# A fake /lib/brltty/brltty.sh for the initramfs. Rather than actually
659+# starting brltty (which is problematic because brltty would have to be shut
660+# down and restarted when switching out of early userspace), we just write
661+# out a brltty.conf which will be copied over to the real root filesystem
662+# later.
663+
664+brailleDriver=auto
665+brailleDevice=usb:
666+
667+while [ "$1" ]; do
668+ case $1 in
669+ -b)
670+ brailleDriver="$2"
671+ shift 2
672+ ;;
673+ -d)
674+ brailleDevice="$2"
675+ shift 2
676+ ;;
677+ -*)
678+ shift 2
679+ ;;
680+ *)
681+ shift
682+ ;;
683+ esac
684+done
685+
686+cat >/dev/.initramfs/brltty.conf <<EOF
687+# Created by $0
688+braille-driver $brailleDriver
689+braille-device $brailleDevice
690+EOF
691+
692+exit 0
693diff --git a/debian/initramfs/hooks/brltty.in b/debian/initramfs/hooks/brltty.in
694index d43e19c..1b8d132 100755
695--- a/debian/initramfs/hooks/brltty.in
696+++ b/debian/initramfs/hooks/brltty.in
697@@ -1,5 +1,6 @@
698 #!/bin/sh -e
699
700+OPTION=FRAMEBUFFER
701 PREREQS=""
702
703 prereqs() { echo "$PREREQS"; }
704@@ -43,4 +44,9 @@ if [ "$START_IN_INITRAMFS" = "true" -o "$START_IN_INITRAMFS" = "yes" ]; then
705 manual_add_modules uinput
706
707 echo "done"
708+else
709+ mkdir -p $DESTDIR/lib/brltty
710+ copy_exec /usr/share/brltty/initramfs/brltty.sh /lib/brltty
711+ mkdir -p $DESTDIR/sbin
712+ copy_exec /sbin/brltty-setup /sbin
713 fi
714diff --git a/debian/initramfs/scripts/init-premount/brltty b/debian/initramfs/scripts/init-premount/brltty
715index 0016fae..1e786bd 100755
716--- a/debian/initramfs/scripts/init-premount/brltty
717+++ b/debian/initramfs/scripts/init-premount/brltty
718@@ -1,5 +1,6 @@
719 #!/bin/sh
720
721+OPTION=FRAMEBUFFER
722 PREREQ="udev"
723 prereqs()
724 {
725@@ -15,9 +16,6 @@ esac
726
727 [ -x /bin/brltty ] || exit 0
728
729-[ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb
730-cp /proc/mounts /etc/mtab
731-
732 # Start BRLTTY
733 if [ -r /etc/brltty.conf ]; then
734 /bin/brltty -P /run/brltty-initramfs.pid -eqN 2>/dev/tty2
735diff --git a/debian/initramfs/scripts/init-top/brltty b/debian/initramfs/scripts/init-top/brltty
736new file mode 100644
737index 0000000..a6ea78d
738--- /dev/null
739+++ b/debian/initramfs/scripts/init-top/brltty
740@@ -0,0 +1,22 @@
741+#! /bin/sh
742+set -e
743+
744+OPTION=FRAMEBUFFER
745+PREREQ="framebuffer console_setup"
746+
747+prereqs () {
748+ echo "$PREREQ"
749+}
750+
751+case $1 in
752+ prereqs)
753+ prereqs
754+ exit 0
755+ ;;
756+esac
757+
758+if grep -q braille=ask /proc/cmdline; then
759+ brltty-setup || true
760+fi
761+
762+exit 0
763diff --git a/debian/rules b/debian/rules
764index cb9b448..916496b 100755
765--- a/debian/rules
766+++ b/debian/rules
767@@ -154,7 +154,12 @@ binary-indep: brltty
768 # Build architecture-dependent files here.
769 binary-arch: brltty $(if $(with_udeb),brltty-udeb)
770
771-brltty: build-brltty build-python
772+debian/brltty.udev.rules: debian/brltty-udeb.udev.rules debian/brltty.udev.rules.patch
773+ patch -p0 -F0 -o debian/brltty.udev.rules \
774+ debian/brltty-udeb.udev.rules \
775+ debian/brltty.udev.rules.patch
776+
777+brltty: debian/brltty.udev.rules build-brltty build-python
778 dh_testdir
779 dh_testroot
780 dh_prep
781@@ -182,8 +187,11 @@ brltty: build-brltty build-python
782 for file in Drivers/Braille/*/README*; \
783 do cp $$file `pwd`/debian/$(PACKAGE)/usr/share/doc/brltty/`basename $$(dirname $$file)`.`basename $$file`; \
784 done
785+ cp debian/brltty.udev.rules debian/$@/lib/udev/rules.d/85-brltty.rules
786+ dh_installsystemd -p$@ --no-enable
787+ dh_installsystemd -p$@ --name brltty-udev
788 # -r because we don't want to lose the console on an upgrade
789- dh_installinit -p$@ -r -- start 25 S .
790+ # dh_installinit -p$@ -r -- start 25 S .
791 # and likewise for systemd
792 dh_installsystemd -p$@ --restart-after-upgrade
793 dh_installchangelogs Documents/ChangeLog
794@@ -266,6 +274,7 @@ brltty-udeb: build-udeb
795 cp debian/brltty-udeb.udev.rules debian/$@/lib/udev/rules.d/brltty.rules
796 cp debian/brltty-udeb.udev.sh debian/$@/lib/udev/brltty.sh
797 chmod +x debian/$@/lib/udev/brltty.sh
798+ install -m755 debian/brltty-setup debian/$@/sbin/brltty-setup
799 cp debian/brltty-udeb.sh debian/$@/lib/brltty/brltty.sh
800 chmod +x debian/$@/lib/brltty/brltty.sh
801 mkdir -p debian/$@/usr/share/brltty-udeb

Subscribers

People subscribed via source and target branches