When trying to emerge package, portage complaints that file size does not match. ---- full log: >>> Emerging (1 of 1) media-libs/shaderc-2023.3::gentoo >>> Downloading 'rsync://ftp.vectranet.pl/gentoo/distfiles/d7/shaderc-2023.3.tar.gz' rsync: [sender] link_stat "/distfiles/d7/shaderc-2023.3.tar.gz" (in gentoo) failed: No such file or directory (2) sent 8 bytes received 124 bytes 264.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1861) [Receiver=3.2.7] >>> Downloading 'https://github.com/google/shaderc/archive/v2023.3.tar.gz' --2023-07-02 12:54:30-- https://github.com/google/shaderc/archive/v2023.3.tar.gz Resolving github.com... 140.82.121.4 Connecting to github.com|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/google/shaderc/tar.gz/refs/tags/v2023.3 [following] --2023-07-02 12:54:31-- https://codeload.github.com/google/shaderc/tar.gz/refs/tags/v2023.3 Resolving codeload.github.com... 140.82.121.10 Connecting to codeload.github.com|140.82.121.10|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: '/var/cache/distfiles/shaderc-2023.3.tar.gz.__download__' /var/cache/distfile [ <=> ] 218.05K 1.36MB/s in 0.2s 2023-07-02 12:54:31 (1.36 MB/s) - '/var/cache/distfiles/shaderc-2023.3.tar.gz.__download__' saved [223282] !!! Fetched file: shaderc-2023.3.tar.gz VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 223282 !!! Expected: 223292 Refetching... File renamed to '/var/cache/distfiles/shaderc-2023.3.tar.gz._checksum_failure_.37sodq4x' !!! Couldn't download 'shaderc-2023.3.tar.gz'. Aborting. * Fetch failed for 'media-libs/shaderc-2023.3', Log file: * '/var/tmp/portage/media-libs/shaderc-2023.3/temp/build.log'
Same for me while using the same mirror. Just unset GENTOO_MIRRORS and remerge shaderc, so it fetches the file from http://distfiles.gentoo.org/distfiles/d7/shaderc-2023.3.tar.gz There are two interesting points here though: 1. Is this mirror configured correctly? 2. Why isn't fetch from github working? Perhaps the ebuild shouldnt say: SRC_URI="https://github.com/google/${PN}/archive/v${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" which resolves to: https://github.com/google/shaderc/archive/v2023.3.tar.gz but rather: SRC_URI="https://github.com/google/${PN}/archive/refs/tags/v${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" which would work: https://github.com/google/shaderc/archive/refs/tags/v2023.3.tar.gz
They retagged: https://github.com/google/shaderc/issues/1325.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d90c3cccf3e2cb6245a8b64f411ed85b6fc4d8c0 commit d90c3cccf3e2cb6245a8b64f411ed85b6fc4d8c0 Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2023-08-01 22:18:29 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2023-08-01 22:18:39 +0000 media-libs/shaderc: drop 2022.3, 2023.2, 2023.3 Closes: https://bugs.gentoo.org/909514 Signed-off-by: Nick Sarnie <sarnex@gentoo.org> media-libs/shaderc/Manifest | 3 -- media-libs/shaderc/shaderc-2022.3.ebuild | 79 -------------------------------- media-libs/shaderc/shaderc-2023.2.ebuild | 79 -------------------------------- media-libs/shaderc/shaderc-2023.3.ebuild | 79 -------------------------------- 4 files changed, 240 deletions(-)