Checksum failures fetching from xfce mirror (meta-xfce)
Hi,
I've noticed that xfce packages fail on do_fetch with checksum errors:
ERROR: xfce4-session-4.20.0-r0 do_fetch: Checksum failure fetching
http://archive.xfce.org/src/xfce/xfce4-session/4.20/xfce4-session-4.20.0.tar.bz2
Checking what's going on with bitbake xfce4-session -c do_fetch -v
[0] Downloading 'http://archive.xfce.org/ ... HTTP response 301 Moved Permanently [http://archive.xfce.org/...] Adding URL: https://archive.xfce.org/... Adding URL: https://archive.xfce.org/ [0] Downloading 'https://archive.xfce.org/src/xfce/xfce4-session/4.20/xfce4-session-4.20.0.tar.bz2' ... HTTP response 302 [https://archive.xfce.org/src/xfce/xfce4-session/4.20/xfce4-session-4.20.0.tar.bz2] Adding URL: https://archive.al-us.xfce.org/... Adding URL: https://mirror.slackbuilds.org/... [0] Downloading 'https://archive.al-us.xfce.org/... Saving '.../xfce4-session-4.20.0.tar.bz2.tmp' [1] Downloading 'https://mirror.slackbuilds.org//... Saving '.../xfce4-session-4.20.0.tar.bz2.tmp'
We see that the XFCE mirror gives us two redirects. Both are concatenated to the same file, hence the checksum failures. We can reproduce the same behavior with wget:
$ wget http://archive.xfce.org/src/xfce/xfce4-session/4.20/xfce4-session-4.20.0.tar.bz2 ... Saving 'xfce4-session-4.20.0.tar.bz2' Saving 'xfce4-session-4.20.0.tar.bz2.1'
$ wget -O xfce4-session-o.tar.bz2 http://archive.xfce.org/src/xfce/xfce4-session/4.20/xfce4-session-4.20.0.tar.bz2 ... Saving 'xfce4-session-o.tar.bz2' Saving 'xfce4-session-o.tar.bz2'
$ $ ls -lh xfce4-session-*
-rw-r--r--. 1 mrnuke mrnuke 1.2M Dec 15 2024 xfce4-session-4.20.0.tar.bz2
-rw-r--r--. 1 mrnuke mrnuke 1.2M Dec 15 2024 xfce4-session-4.20.0.tar.bz2.1
-rw-r--r--. 1 mrnuke mrnuke 2.3M Dec 15 2024 xfce4-session-o.tar.bz2The first wget call realized that this is two files. The '-O' argument causes the them to be concatenated. I wonder if this is a bug in the wget fetcher, or if the XFCE mirror is doing something weird.
Either way, what is the correct way to resolve this?
Alex