gentoo-ebuilds/dev-vcs/fossil/files/fossil-2.24-fix-json-test-content-length.patch
Aaron W. Swenson b83b55c6ed
dev-vcs/fossil: Fix incorrect checksum and tests
Tag number wasn't changed before generating manifest. Correct
file/release now fetched and correct checksum generated.

No longer a straight to stable ebuild, either.

New depend on dev-tcltk/tcllib for JSON tests. If the package is
missing, as it currently will be on riscv architectures, the tests are
nonfatally skipped.

Several more test patches included from upstream to fix tests that
didn't work in the wider world.

Now installs a man page. Thanks to Bernd Feige <Bernd.Feige@gmx.net> for
this addition.

Closes: https://bugs.gentoo.org/931862
Closes: https://bugs.gentoo.org/923783
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
2024-05-14 23:43:51 -04:00

18 lines
425 B
Diff

Index: test/json.test
==================================================================
--- test/json.test
+++ test/json.test
@@ -107,11 +107,11 @@
set request [subst {POST $url HTTP/1.0\r
Host: localhost\r
User-Agent: Fossil-Test\r
Cookie: $cookie\r
Content-Type: application/json
-Content-Length $len
+Content-Length: $len
\r
$data}]
} else {
set request [subst {GET $url HTTP/1.0\r
Host: localhost\r