Package: joystick
Version: 1:1.7.1-1
Severity: normal
Tags: patch

Dear Maintainer,

When original-awk is configured as /usr/bin/awk, jscal-store produces
the following errors:

/usr/bin/awk: syntax error in regular expression $^ at 
 source line number 41 source file /usr/share/joystick/ident
 context is
         >>> /$^/ <<<  {
No product name or vendor available, calibration will be stored for the
given device name () only!
/usr/bin/awk: syntax error in regular expression $^ at 
 source line number 69 source file /usr/share/joystick/filter
 context is
                if ($0 ~ >>>  /$^/ <<< ) {

This can be fixed by changing /$^/ to /^$/ on line 41 of ident and 69
of filter, as in the attached patch.

Thanks,
Kevin

Note: I think this might be a bug in original-awk (although it also
present in BSD awk), so I've opened
<https://github.com/onetrueawk/awk/issues/145> as well.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (990, 'testing-debug'), (990, 'testing'), (500, 
'unstable-debug'), (500, 'stable-debug'), (500, 'unstable'), (101, 
'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-rc3 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages joystick depends on:
ii  libc6          2.33-7
ii  libsdl2-2.0-0  2.0.20+dfsg-2

Versions of packages joystick recommends:
ii  evtest       1:1.34-1
pn  inputattach  <none>

joystick suggests no packages.

Attachment: 0001-avoid-syntax-error-with-original-awk.patch
Description: inode/empty

  • Bug#1010041: ident: awk: syntax error in regular expression... Kevin Locke

Reply via email to