From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sun, 20 May 2018 16:44:51 +0200 Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2018-05-16 In-Reply-To: <5afe16031511a_a612ac2d925f5644458@ultri5.mail> References: <5afe16031511a_a612ac2d925f5644458@ultri5.mail> Message-ID: <20180520144451.GC3453@scaer> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Ricrado, All, On 2018-05-17 20:53 -0300, Ricardo Martincoski spake thusly: > On Thu, May 17, 2018 at 03:51 AM, Erik Larsson wrote: > >> arm | host-imx-mkimage-rel_imx_4.... | NOK | http://autobuild.buildroot.net/results/7c63ab1188a45d4684e159456f561a4e7c39e612 | > > > > This error is because the hash is incorrect. But I don't really > > understand why. I've downloaded the new source and compared it with > > the old source that I had in my dl folder and it's the same. There are > > no changes in the git-repo but when I compare the tar.gz file in the > > dl folder they differs, just as the test notice. So the simple > > solution would be to update the hash value and commit it. But I don't > > really like not understanding why this error happens at the first > > place. > > By inspecting the tarball [1] with 'tar -tvf' I can see it contains: > "imx-mkimage-rel_imx_4.9.51_8mq_ga\\/Makefile" > instead of > "imx-mkimage-rel_imx_4.9.51_8mq_ga/Makefile" > > I believe the hash was calculated (and the tarball [1] was generated) using tar > 1.27.1 before 6e2f5d0254 "download/git: fix transform regexp for older tar > versions" (Fri Apr 20 09:36:32 2018 +0200), see my tests below. > > I think we can safely update the hash value and commit it. Agreed. Besides, this type of issue would be solved with the series I have posted, that adds host-tar as a download-dependency, so that we ensure we have a known-working tar to locally generate tarballs: https://patchwork.ozlabs.org/project/buildroot/list/?series=43275 > When the patch fixing the hash get applied, should the tarball [1] be manually > removed? Will it be automatically overwritten by an autobuilder instance? > > [1] http://sources.buildroot.net/imx-mkimage/imx-mkimage-rel_imx_4.9.51_8mq_ga.tar.gz > 2018-Apr-10 08:10:35 118.1K application/x-gtar-compressed Peter, Thomas, can you remove that tarball after the hash has been updated? Regards, Yann E. MORIN. > Tests: > $ git checkout origin/master # 45cf64ca0c > $ make defconfig > $ ./utils/config --set-str BR2_BACKUP_SITE "" > $ rm package/tar/tar.hash > $ sed -e 's,^TAR_VERSION .*,TAR_VERSION = 1.27.1,g' -i package/tar/tar.mk > $ make host-tar > $ BR2_DL_DIR=$(mktemp -d) make host-imx-mkimage-dirclean host-imx-mkimage-source > ERROR: expected: 17e8285a346eb19d00780b13916dc281421c5b955707b9f2a662a6734142f1fb > ERROR: got : bc79e11cfbde303e200287fa6624028c8ce5344f8a35ed179b3fe217d74155da > $ git revert 6e2f5d0254 # download/git: fix transform regexp for older tar versions > $ BR2_DL_DIR=$(mktemp -d) make host-imx-mkimage-dirclean host-imx-mkimage-source > imx-mkimage-rel_imx_4.9.51_8mq_ga.tar.gz: OK (sha256: 17e8285a346eb19d00780b13916dc281421c5b955707b9f2a662a6734142f1fb) > > Regards, > Ricardo -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'