Bug#943530: dahdi-source: The initialisation-script dahdi_span_types fails to access the correct spantypes-file

Matthias mb1315 at pc-handwerker.net
Fri Oct 25 21:22:56 BST 2019


Package: dahdi-source
Version: 1:2.11.1.0.20170917~dfsg-7
Severity: important
Tags: patch

-- System Information:
Debian Release: 10.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dahdi-source depends on:
ii  bzip2             1.0.6-9.2~deb10u1
ii  debhelper         12.1.1
ii  module-assistant  0.11.10

Versions of packages dahdi-source recommends:
ii  dahdi-linux  1:2.11.1.0.20170917~dfsg-7

dahdi-source suggests no packages.

-- no debconf information

Diff auf /usr/sbin/dahdi_span_types:
----------------
179c179
< 		cat "$device/spantype" | while read st; do
---
> 		cat "$device/dahdi_spantype" | while read st; do
192c192
< 	find $DEVICES -follow -maxdepth 1 -name spantype | \
---
> 	find $DEVICES -follow -maxdepth 1 -name dahdi_spantype | \
255c255
< 		cat "$device/spantype" | while read st; do
---
> 		cat "$device/dahdi_spantype" | while read st; do
281c281
< 	attr_file="$device/spantype"
---
> 	attr_file="$device/dahdi_spantype"
338c338
< 		cat "$device/spantype" | while read spantype; do
---
> 		cat "$device/dahdi_spantype" | while read spantype; do
----------------

/var/log/messages before applying the path: error messages
----------------
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: cat: '/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/pci:0000:07:01.0/spantype': No such file or directory
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: cat: '/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/pci:0000:07:01.0/spantype': No such file or directory
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: using '/etc/dahdi/assigned-spans.conf'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: using '/etc/dahdi/assigned-spans.conf'
----------------

/var/log/messages after the patch
----------------
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[611]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[623]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[623]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[611]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[611]: using '/etc/dahdi/assigned-spans.conf'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[623]: using '/etc/dahdi/assigned-spans.conf'
----------------

I don't know the consequences of the error and the patch,
because I could not yet finish my installation.
Regards
Matthias



More information about the Pkg-voip-maintainers mailing list