【備忘録】AmazonVOD addon for Kodi 18.7 on Raspbian 10(buster)が動かなくなった

# kodi 18.7で、amazon VODを観れるようにしてます。
久々に見ようとしたら、WideVine CDMを更新しますか？と聞かれて [YES]を選んだが。。。

# なぜか Amazon VOD addonは起動できるが、、
動画再生がしれっとできない。なぜ。。。？

# このままじゃ、アーニャちゃんが観れないじゃないか。（混乱中）
SSHでログインして、ログを確認。($ less .kodi/temp/kodi.log)

> 2022-11-19 10:25:24.330 T:1444434112  NOTICE: [Amazon VOD] Using Host: Cloudfront
2022-11-19 10:25:24.332 T:1444434112  NOTICE: [Amazon VOD] checkURL: https://s3-nrt-ww.cf.dash.row.aiv-cdn.net/dm/2$0Zm0lqkAjv55ROvxSP
wZKzvkGjE~/b08d/3c82/9119/46ed-942a-045155125195/f8ab947e-b2ae-4262-a217-cf7927578cee_corrected.mpd
2022-11-19 10:25:24.493 T:1444434112  NOTICE: [Amazon VOD] Using inputstream.adaptive Version: 2.4.4
2022-11-19 10:25:24.694 T:1899416704  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.amazon-test/?asin=B0B8MJ2VLP&mode=PlayVideo
&adult=0&name=16+-+%E3%80%90MISSION%EF%BC%9A16%E3%80%91+%E3%83%A8%E3%83%AB%E2%80%99s%E3%82%AD%E3%83%83%E3%83%81%E3%83%B3%EF%BC%8F%E6%8
3%85%E5%A0%B1%E5%B1%8B%E3%81%AE%E6%81%8B%E6%84%9B%E5%A4%A7%E4%BD%9C%E6%88%A6&trailer=0&selbitrate=0
2022-11-19 10:25:24.695 T:1283449024  NOTICE: Creating InputStream
2022-11-19 10:25:25.532 T:1283449024   ERROR: AddOnLog: InputStream Adaptive: Unable to load widevine shared library (/home/pi/.kodi/c
dm/libwidevinecdm.so)
2022-11-19 10:25:25.532 T:1283449024   ERROR: AddOnLog: InputStream Adaptive: OpenDRMSystem failed
2022-11-19 10:25:25.534 T:1283449024   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.amazon-test/?asin=B
0B8MJ2VLP&mode=PlayVideo&adult=0&name=16+-+%E3%80%90MISSION%EF%BC%9A16%E3%80%91+%E3%83%A8%E3%83%AB%E2%80%99s%E3%82%AD%E3%83%83%E3%83%8
1%E3%83%B3%EF%BC%8F%E6%83%85%E5%A0%B1%E5%B1%8B%E3%81%AE%E6%81%8B%E6%84%9B%E5%A4%A7%E4%BD%9C%E6%88%A6&trailer=0&selbitrate=0]
2022-11-19 10:25:25.534 T:1283449024  NOTICE: CVideoPlayer::OnExit()
2022-11-19 10:25:25.592 T:1899416704  NOTICE: CVideoPlayer::CloseFile()
2022-11-19 10:25:25.593 T:1899416704  NOTICE: VideoPlayer: waiting for threads to exit
2022-11-19 10:25:25.593 T:1899416704  NOTICE: VideoPlayer: finished waiting
2022-11-19 10:33:42.758 T:1436041408  NOTICE: [Amazon VOD] Version: 0.9.5
2022-11-19 10:33:42.760 T:1436041408  NOTICE: [Amazon VOD] Unicode filename support: False

# libwidevinecdm.soが問題のようだ。
... libcのアップデートは大事すぐるなぁ。

>pi@raspberrypi:~/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15117.112.0 $ ls
config.json  libwidevinecdm.so  recovery.json
pi@raspberrypi:~/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15117.112.0 $ ldd libwidevinecdm.so 
./libwidevinecdm.so: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by ./libwidevinecdm.so)
        linux-vdso.so.1 (0x7eede000)
        /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0x75acb000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x75aa1000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x75a77000)
        libnspr4.so => /usr/lib/arm-linux-gnueabihf/libnspr4.so (0x75a37000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x759b5000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x75868000)
        /lib/ld-linux-armhf.so.3 (0x76f94000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x75851000)

# 以前のバージョンのファイルに（ハード）リンク貼り直して終了。（逃げとも言う）
(rm libwidevinecdm.so && ln (backuped-dir)/libwidevineccdm.so .)

>pi@raspberrypi:~/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup $ ldd 14989.107.0/libwidevinecdm.so
        linux-vdso.so.1 (0x7efd5000)
        /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0x75dec000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x75dc2000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x75d98000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x75d81000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x75cff000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x75bb2000)
        /lib/ld-linux-armhf.so.3 (0x76ef7000)
pi@raspberrypi:~/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup $ ls -li */libwidevinecdm.so
130342 -rwxr--r-- 1 pi pi 8499656 Feb 23  2022 14388.52.0/libwidevinecdm.so
163173 -rwxr--r-- 1 pi pi 7607224 Jun 29 23:15 14695.107.0/libwidevinecdm.so
  2446 -rwxr--r-- 1 pi pi 7607224 Aug 20 15:26 14816.131.0/libwidevinecdm.so
 25242 -rwxr--r-- 2 pi pi 7607224 Sep 25 16:49 14989.107.0/libwidevinecdm.so
 31249 -rwxr--r-- 1 pi pi 8790584 Nov 19 10:08 15117.112.0/libwidevinecdm.so
pi@raspberrypi:~/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup $ cd ~/.kodi/cdm
pi@raspberrypi:~/.kodi/cdm $ ls -li libwidevinecdm.so 
25242 -rwxr--r-- 2 pi pi 7607224 Sep 25 16:49 libwidevinecdm.so

# OS ver, kodi version等

>pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
pi@raspberrypi:~ $ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $ kodi --version
18.7 Git:20200528-2c5354e70a Media Center Kodi
Copyright (C) 2005-2020 Team Kodi - http://kodi.tv
[E] Invalid arguments ' '