[Buildroot] [PATCH v2 1/3] package/bmap-tools: update GitHub URL

Dario Binacchi dario.binacchi at amarulasolutions.com
Tue May 7 18:58:01 UTC 2024


Hi Peter,

On Tue, May 7, 2024 at 6:06 PM Peter Korsgaard <peter at korsgaard.com> wrote:
>
> >>>>> "Dario" == Dario Binacchi <dario.binacchi at amarulasolutions.com> writes:
>
>  > As reported in the README file of the old GitHub URL (i.e.
>  > https://github.com/intel/bmap-tools), "The code at this location is no
>  > longer maintained and will likely be removed in the future. This project
>  > has moved to https://github.com/yoctoproject/bmaptool".
>
>  > Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
>  > ---
>  >  package/bmap-tools/Config.in      | 2 +-
>  >  package/bmap-tools/Config.in.host | 2 +-
>  >  package/bmap-tools/bmap-tools.mk  | 2 +-
>  >  3 files changed, 3 insertions(+), 3 deletions(-)
>
>  > diff --git a/package/bmap-tools/Config.in b/package/bmap-tools/Config.in
>  > index 91081069c739..425b7dfb9e07 100644
>  > --- a/package/bmap-tools/Config.in
>  > +++ b/package/bmap-tools/Config.in
>  > @@ -40,4 +40,4 @@ config BR2_PACKAGE_BMAP_TOOLS
>  >        python-gpgme is not available. Optimized bzip2 decompression
>  >        is not supported as pbzip2 is not available.
>
>  > -      https://github.com/intel/bmap-tools
>  > +      https://github.com/yoctoproject/bmaptool
>  > diff --git a/package/bmap-tools/Config.in.host b/package/bmap-tools/Config.in.host
>  > index a20829030d68..cb4d35a437fa 100644
>  > --- a/package/bmap-tools/Config.in.host
>  > +++ b/package/bmap-tools/Config.in.host
>  > @@ -9,4 +9,4 @@ config BR2_PACKAGE_HOST_BMAP_TOOLS
>  >        image files, can be copied or flashed a lot faster with
>  >        bmaptool than with traditional tools like "dd" or "cp".
>
>  > -      https://github.com/intel/bmap-tools
>  > +      https://github.com/yoctoproject/bmaptool
>  > diff --git a/package/bmap-tools/bmap-tools.mk b/package/bmap-tools/bmap-tools.mk
>  > index 32399ca151c4..69a22c4745ab 100644
>  > --- a/package/bmap-tools/bmap-tools.mk
>  > +++ b/package/bmap-tools/bmap-tools.mk
>  > @@ -5,7 +5,7 @@
>  >  ################################################################################
>
>  >  BMAP_TOOLS_VERSION = 3.6
>  > -BMAP_TOOLS_SITE = $(call github,intel,bmap-tools,v$(BMAP_TOOLS_VERSION))
>  > +BMAP_TOOLS_SITE = $(call github,yoctoproject,bmaptool,v$(BMAP_TOOLS_VERSION))
>
> I wanted to apply this to 2024.02.x, but this change of repo changes the
> hash of the tarball (I guess the name of the toplevel directory
> changed):
>
> ERROR: while checking hashes from package/bmap-tools//bmap-tools.hash
> ERROR: bmap-tools-3.6.tar.gz has wrong sha256 hash:
> ERROR: expected: 0658afb972e7221aa16fece3f84e29e5102e901c929253d7fb6040bde28243f7
> ERROR: got     : 7a2e1305bf7e06bc4a580cc719f0facf9d99af8d41659b57c0acae4ad93ff45a
> ERROR: Incomplete download, or man-in-the-middle (MITM) attack
>

This is what I see:

>>> host-bmap-tools 3.6 Downloading
wget --passive-ftp -nd -t 3 -O
'/home/dario/projects/buildroot/output/build/.bmap-tools-3.6.tar.gz.idZCyY/output'
'https://github.com/yoctoproject/bmaptool/archive/v3.6/bmap-tools-3.6.tar.gz'
--2024-05-07 19:49:56--
https://github.com/yoctoproject/bmaptool/archive/v3.6/bmap-tools-3.6.tar.gz
wget: /home/dario/.netrc:1: unknown token "xxxxxxx"
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/yoctoproject/bmaptool/tar.gz/refs/tags/v3.6
[following]
--2024-05-07 19:49:57--
https://codeload.github.com/yoctoproject/bmaptool/tar.gz/refs/tags/v3.6
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com
(codeload.github.com)|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/home/dario/projects/buildroot/output/build/.bmap-tools-3.6.tar.gz.idZCyY/output’

/home/dario/projects/buildroot/output/bui     [   <=>
                                                            ]  95,52K
 191KB/s    in 0,5s

2024-05-07 19:49:58 (191 KB/s) -
‘/home/dario/projects/buildroot/output/build/.bmap-tools-3.6.tar.gz.idZCyY/output’
saved [97812]

ERROR: while checking hashes from package/bmap-tools/bmap-tools.hash
ERROR: bmap-tools-3.6.tar.gz has wrong sha256 hash:
ERROR: expected:
0658afb972e7221aa16fece3f84e29e5102e901c929253d7fb6040bde28243f7
ERROR: got     :
7a2e1305bf7e06bc4a580cc719f0facf9d99af8d41659b57c0acae4ad93ff45a
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
wget --passive-ftp -nd -t 3 -O
'/home/dario/projects/buildroot/output/build/.bmap-tools-3.6.tar.gz.QH5BrC/output'
'https://sources.buildroot.net/bmap-tools/bmap-tools-3.6.tar.gz'
--2024-05-07 19:49:58--
https://sources.buildroot.net/bmap-tools/bmap-tools-3.6.tar.gz
wget: /home/dario/.netrc:1: unknown token "xxxxxxxx"
Resolving sources.buildroot.net (sources.buildroot.net)...
172.67.72.56, 104.26.1.37, 104.26.0.37, ...
Connecting to sources.buildroot.net
(sources.buildroot.net)|172.67.72.56|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 97815 (96K) [application/x-gtar-compressed]
Saving to: ‘/home/dario/projects/buildroot/output/build/.bmap-tools-3.6.tar.gz.QH5BrC/output’

/home/dario/projects/buildroot/output/bui
100%[===================================================================================>]
 95,52K  --.-KB/s    in 0,1s

2024-05-07 19:49:59 (663 KB/s) -
‘/home/dario/projects/buildroot/output/build/.bmap-tools-3.6.tar.gz.QH5BrC/output’
saved [97815/97815]

bmap-tools-3.6.tar.gz: OK (sha256:
0658afb972e7221aa16fece3f84e29e5102e901c929253d7fb6040bde28243f7)



I see your error message, but also
'bmap-tools-3.6.tar.gz: OK (sha256:
0658afb972e7221aa16fece3f84e29e5102e901c929253d7fb6040bde28243f7)"
and the compilation process does not stop.

Is it exactly the same issue you're experiencing, or is it something
different? Does your compilation process halt with the error?

Thanks and regards,
Dario

> --
> Bye, Peter Korsgaard



-- 

Dario Binacchi

Senior Embedded Linux Developer

dario.binacchi at amarulasolutions.com

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
info at amarulasolutions.com

www.amarulasolutions.com



More information about the buildroot mailing list