Am Dienstag, dem 08.10.2024 um 23:48 +0200 schrieb Petter Reinholdtsen:
> 
> I believe part of the locale related problem is caused by wildcard
> paths in some kernel module, and that the following patch should get
> rid of that particular problem:
> ...
> Perhaps you can test it and see if the 'unexpected operator' message
> go away, and the script behave the same for both LANG=C and
> LANG=de_DE.UTF-8?

Thank you, that was a good starting point.

1. I confirm that the 'unexpected operator' message went away, both for
LANG=C and LANG=de_DE.UTF-8. 

2. The different behaviour for different LANG's is unchanged.

3. I did some investigation and found that:
a) for LANG=de_DE.UTF-8:
fwfile: brcm/brcmfmac43241b5-sdio.clm_blob matches binpkginfo:
say: [none]
and
b) for LANG=C:
fwfile: brcm/brcmfmac43241b5-sdio.clm_blob matches binpkginfo:
firmware-realtek
firmware-misc-nonfree
firmware-netxen
firmware-samsung
firmware-bnx2x
firmware-siano
firmware-amd-graphics
firmware-ivtv
firmware-bnx2
firmware-netronome
firmware-libertas
firmware-linux-free
firmware-ti-connectivity
firmware-brcm80211
firmware-intel-sound
firmware-qlogic
firmware-qcom-soc
firmware-cavium
firmware-atheros
firmware-myricom
firmware-iwlwifi
firmware-ipw2x00
firmware-ath9k-htc

So the thing is:
appstreamcli has differnt outputs depending on LANG, and while you look
for lines with the word '/Package:/' with german LANG the same line
starts with the word "Paket".

I still was not able to figure out, why isenkramcli 'wants' to install
raspi-firmware and what happens with a second call of isenkram-
autoinstall-firmware, after raspi-firmware is installed successfully.

4. But I just added a LANG=C to appstreamlookup() and now it works
fine.


appstreamlookup() {
    fwfile="$1"
    LANG=C appstreamcli what-provides firmware:runtime "$fwfile" | \
        awk '/Package:/ { print $2}'
}

Thank you for your hint
Christian Meyer

Reply via email to