Bug#1052066: awk: illegal field $(ID=debian), name "0" while upgrading to 1.9.4-2

2023-10-05 Thread Julien Palard
Looks like the culpit is in postinst:

DEBIAN/postinst:EFIDIR=$(awk '/^ID=/ {gsub(/"/,""); split($$0,a,"="); print 
tolower(a[2])}' /etc/os-release)

running the awk command gives the same output:

$ awk '/^ID=/ {gsub(/"/,""); split($$0,a,"="); print tolower(a[2])}' 
/etc/os-release
awk: illegal field $(ID=debian), name "0"
 input record number 4, file /etc/os-release
 source line number 1

Looks like it has been copied from a Makefile, the $ is doubled, it should be:

EFIDIR=$(awk '/^ID=/ {gsub(/"/,""); split($0,a,"="); print tolower(a[2])}' 
/etc/os-release)

which gives:

$ echo $EFIDIR 
debian

-- 
[Julien Palard](https://mdk.fr)



Bug#1052066: awk: illegal field $(ID=debian), name "0" while upgrading to 1.9.4-2

2023-09-16 Thread Julien Palard
Package: fwupd
Version: 1.9.4-2
Severity: normal
X-Debbugs-Cc: jul...@palard.fr

Hi,

while upgrading my laptop from Bookworm to Trixie I got:

> Setting up fwupd (1.9.4-2) ...
> /usr/sbin/policy-rc.d returned 101, not running 'restart 
> fwupd-offline-update.service fwupd-refresh.service fwupd-refresh.timer 
> fwupd.service'
> awk: illegal field $(ID=debian), name "0"
>  input record number 4, file /etc/os-release
>  source line number 1
> dpkg: error processing package fwupd (--configure):
>  installed fwupd package post-installation script subprocess returned error 
> exit status 2
> Errors were encountered while processing:
>  fwupd
> E: Sub-process /usr/bin/dpkg returned an error code (1)

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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 fwupd depends on:
ii  adduser3.137
ii  libarchive13   3.6.2-1
ii  libc6  2.37-8
ii  libcbor0.8 0.8.0-2+b1
ii  libcurl3-gnutls8.2.1-2
ii  libflashrom1   1.3.0-2.1
ii  libfwupd2  1.9.4-2
ii  libgcab-1.0-0  1.6-1
ii  libglib2.0-0   2.78.0-1
ii  libgnutls303.8.1-4+b1
ii  libgudev-1.0-0 237-2
ii  libgusb2   0.4.5-1.1
ii  libjcat1   0.1.9-1
ii  libjson-glib-1.0-0 1.6.6-1
ii  liblzma5   5.4.4-0.1
ii  libmbim-glib4  1.28.4-2
ii  libmbim-proxy  1.28.4-2
ii  libmm-glib01.20.6-2
ii  libpolkit-gobject-1-0  123-1
ii  libprotobuf-c1 1.4.1-1+b1
ii  libqmi-glib5   1.32.4-2
ii  libqmi-proxy   1.32.4-2
ii  libsmbios-c2   2.4.3-1
ii  libsqlite3-0   3.43.0-1
ii  libsystemd0254.1-3
ii  libtss2-esys-3.0.2-0   3.2.1-3
ii  libxmlb2   0.3.14-2
ii  shared-mime-info   2.2-1

Versions of packages fwupd recommends:
ii  bolt   0.9.5-1
ii  dbus   1.14.10-1
ii  fwupd-amd64-signed [fwupd-signed]  1:1.4+1
ii  jq 1.6-3
ii  python33.11.4-5+b1
pn  secureboot-db  
ii  udisks22.10.0-5

Versions of packages fwupd suggests:
pn  gir1.2-fwupd-2.0  

-- Configuration Files:
/etc/fwupd/redfish.conf [Errno 13] Permission non accordée: 
'/etc/fwupd/redfish.conf'

-- no debconf information