Commit Graph
9 Commits
Author SHA1 Message Date
Josef Schlehofer 5967138092 librespeed-cli: fix upload speed being overestimated
The upload body goes through an io.TeeReader, so Go frames the request as
chunked. Against a backend that answers before the client has finished
sending, the queued payload was counted anyway and both the reported rate
and bytes_sent came out several times too large.

Backport the two upstream commits that fix it, released in v1.0.14. A
version bump would need its own go.mod downgrade instead: 1.0.14 moved
the go directive to 1.25 and raised five dependencies past Go 1.23.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-09-09 21:58:32 +02:00
Josef Schlehofer 8b94be4151 librespeed-cli: fix build with Go 1.23
Version 1.0.13 bumped the go directive to 1.24 and pulled in
dependencies that require Go 1.24, which breaks the build on 24.10
where golang stays on 1.23:

  go: go.mod requires go >= 1.24.0 (running go 1.23.12; GOTOOLCHAIN=local)

Lower the directive back to 1.23 and downgrade golang.org/x/{net,sync,
sys,term} and prometheus-community/pro-bing to the latest versions that
still declare go 1.23. No code changes are needed; the tree compiles,
vets and cross-compiles for aarch64 cleanly with Go 1.23.12.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-08-12 11:56:57 +02:00
Josef Schlehofer 5cbb5f80ff librespeed-cli: update to 1.0.13
Carry fixes for a data race, a goroutine leak, output escaping, JSON and CSV
termination, and sub-millisecond ping precision, plus additional --debug
output. All patches are under review upstream.

Set the version through GO_PKG_LDFLAGS_X. The package never passed one, so
--version reported neither a name nor a version.

Drop the serverIdx patch: 1.0.13 resolves the same problem by checking the map
lookup rather than reading a possibly absent key.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit f61a21e472)
2026-08-11 14:12:05 +02:00
Richard Muzik d29a1b89a5 librespeed-cli: fix speedtest when server not available
If the server is down it can still be selected to test on it. This fixes
the bug.

See:
- https://github.com/librespeed/speedtest-cli/pull/94

Signed-off-by: Richard Muzik <richard.muzik@turris.com>
(cherry picked from commit fb1a0ebbfc)
2026-06-12 12:56:24 +02:00
Richard Muzik 99b7d48498 librespeed-cli: update to version 1.0.12
For full changelog see:
- https://github.com/librespeed/speedtest-cli/releases

Signed-off-by: Richard Muzik <richard.muzik@turris.com>
(cherry picked from commit 5c14cecb0f)
2026-06-12 12:56:17 +02:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Andre Heider 565866a472 treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16
See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with
PKG_BUILD_FLAGS:=no-mips16" on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Michal Vasilek c2ad338b0f librespeed-cli: rename binary to librespeed-cli
upstream names the binary librespeed-cli and this avoids a conflict with
python3-speedtest-cli

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2022-11-22 00:59:12 +08:00
Michal Vasilek bb33b55354 librespeed-cli: add package
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2022-11-04 13:09:07 -07:00