From lars.hollenbach at secunet.com Wed Nov 20 05:41:32 2024 From: lars.hollenbach at secunet.com (Hollenbach, Lars) Date: Wed Nov 20 07:36:25 2024 Subject: [studxml-users] Hash mismatch wehn building from cppget.org Message-ID: <206583bb0b9f4e63975d725e4346d7d8@secunet.com> Hi, I'm trying to build libstudxml from cppget. However, bpkg gives me the following error message: error: checksum mismatch for libstudxml 1.1.0-b.10+2 info: pkg:cppget.org/beta has 2f2cdab781da70ba6c214f73937145a86f53a24f55d276cdd2563b6d889fc2e4 info: fetched archive has dda2021e32e2a73b8b8f7f01aa5681f1dc388482da9482d6e6c2f73be5a57af7 The problem persists, even after running "bpkg fetch". I would assume this is an issue with the current package on cppget, correct? Greetings, -- Lars Hollenbach -- Lars Hollenbach Division Homeland Security secunet Security Networks AG Tel.: +49 201 5454 2487 E-Mail: Mergenthalerallee 77, 65760 Eschborn www.secunet.com ______________________________________________________________________ secunet Security Networks AG Sitz: Kurf?rstenstra?e 58, 45138 Essen, Deutschland Amtsgericht Essen HRB 13615 Vorstand: Axel Deininger (Vors.), Torsten Henn, Dr. Kai Martius, Thomas Pleines Aufsichtsratsvorsitzender: Ralf Wintergerst ______________________________________________________________________ From boris at codesynthesis.com Wed Nov 20 07:46:34 2024 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Nov 20 07:45:36 2024 Subject: [studxml-users] Hash mismatch wehn building from cppget.org In-Reply-To: <206583bb0b9f4e63975d725e4346d7d8@secunet.com> References: <206583bb0b9f4e63975d725e4346d7d8@secunet.com> Message-ID: Hollenbach, Lars writes: > error: checksum mismatch for libstudxml 1.1.0-b.10+2 > info: pkg:cppget.org/beta has 2f2cdab781da70ba6c214f73937145a86f53a24f55d276cdd2563b6d889fc2e4 > info: fetched archive has dda2021e32e2a73b8b8f7f01aa5681f1dc388482da9482d6e6c2f73be5a57af7 > > The problem persists, even after running "bpkg fetch". > > I would assume this is an issue with the current package on cppget, correct? Hm, I just tried to build it and things seem to work fine: $ bpkg create -d cfg cc $ cd cfg $ bpkg build libstudxml@https://pkg.cppget.org/1/beta I've also checked the checksum and it matches what your diagnostics says is on cppget.org: $ sha256sum libstudxml-1.1.0-b.10+2.tar.gz 2f2cdab781da70ba6c214f73937145a86f53a24f55d276cdd2563b6d889fc2e4 libstudxml-1.1.0-b.10+2.tar.gz I am not sure what's going on. Can you try to download the archive directly and see what checksum you get: https://pkg.cppget.org/1/beta/libstudxml/ From lars.hollenbach at secunet.com Wed Nov 20 11:34:21 2024 From: lars.hollenbach at secunet.com (Hollenbach, Lars) Date: Wed Nov 20 11:36:38 2024 Subject: [studxml-users] Hash mismatch wehn building from cppget.org In-Reply-To: References: <206583bb0b9f4e63975d725e4346d7d8@secunet.com> Message-ID: The checksum matches when I download the archive directly: $ wget https://pkg.cppget.org/1/beta/libstudxml/libstudxml-1.1.0-b.10+2.tar.gz $ sha256sum libstudxml-1.1.0-b.10+2.tar.gz 2f2cdab781da70ba6c214f73937145a86f53a24f55d276cdd2563b6d889fc2e4 libstudxml-1.1.0-b.10+2.tar.gz But, if I use the same command that bpkg shows me with --verbose 3: fetching libstudxml-1.1.0-b.10+2.tar.gz from pkg:cppget.org/beta curl -L -A "bpkg/0.17.0 (GNU/Linux; +https://build2.org) libbpkg/0.17.0 libbutl/0.17.0 curl" -i https://pkg.cppget.org/1/beta/libstudxml/libstudxml-1.1.0-b.10+2.tar.gz I get a different checksum each time. Which makes sense, because curl -i includes the response headers in the output. This is the same behaviour as with bpkg - a new checksum each time. But the headers should get removed/ignored by bpkg, right? On 20.11.24 13:46, Boris Kolpackov wrote: > Hollenbach, Lars writes: > >> error: checksum mismatch for libstudxml 1.1.0-b.10+2 >> info: pkg:cppget.org/beta has 2f2cdab781da70ba6c214f73937145a86f53a24f55d276cdd2563b6d889fc2e4 >> info: fetched archive has dda2021e32e2a73b8b8f7f01aa5681f1dc388482da9482d6e6c2f73be5a57af7 >> >> The problem persists, even after running "bpkg fetch". >> >> I would assume this is an issue with the current package on cppget, correct? > Hm, I just tried to build it and things seem to work fine: > > $ bpkg create -d cfg cc > $ cd cfg > $ bpkg build libstudxml@https://pkg.cppget.org/1/beta > > I've also checked the checksum and it matches what your diagnostics > says is on cppget.org: > > $ sha256sum libstudxml-1.1.0-b.10+2.tar.gz > 2f2cdab781da70ba6c214f73937145a86f53a24f55d276cdd2563b6d889fc2e4 libstudxml-1.1.0-b.10+2.tar.gz > > I am not sure what's going on. Can you try to download the archive > directly and see what checksum you get: > > https://pkg.cppget.org/1/beta/libstudxml/ From boris at codesynthesis.com Wed Nov 20 11:40:27 2024 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Nov 20 11:40:41 2024 Subject: [studxml-users] Hash mismatch wehn building from cppget.org In-Reply-To: References: <206583bb0b9f4e63975d725e4346d7d8@secunet.com> Message-ID: Hollenbach, Lars writes: > I get a different checksum each time. > > Which makes sense, because curl -i includes the response headers in the > output. > > This is the same behaviour as with bpkg - a new checksum each time. > > But the headers should get removed/ignored by bpkg, right? Ok, this is a known bug: https://github.com/build2/build2/issues/407 It has been fixed for the upcoming release of build2 (0.18.0). In the meantime, I suggest that you try the staged version, which also includes this fix: https://build2.org/community.xhtml#stage From lars.hollenbach at secunet.com Fri Nov 22 05:20:41 2024 From: lars.hollenbach at secunet.com (Hollenbach, Lars) Date: Mon Nov 25 02:14:21 2024 Subject: [studxml-users] Hash mismatch wehn building from cppget.org In-Reply-To: References: <206583bb0b9f4e63975d725e4346d7d8@secunet.com> Message-ID: <73394fd5-b3c6-42fe-8198-53b845172011@secunet.com> Using the stage build has indeed fixed the issue for me. Thanks very much for the help! On 20.11.24 17:40, Boris Kolpackov wrote: > Hollenbach, Lars writes: > >> I get a different checksum each time. >> >> Which makes sense, because curl -i includes the response headers in the >> output. >> >> This is the same behaviour as with bpkg - a new checksum each time. >> >> But the headers should get removed/ignored by bpkg, right? > Ok, this is a known bug: > > https://github.com/build2/build2/issues/407 > > It has been fixed for the upcoming release of build2 (0.18.0). > In the meantime, I suggest that you try the staged version, > which also includes this fix: > > https://build2.org/community.xhtml#stage