Debian Patches
Status for golang-github-alicebob-miniredis/2.40.0-1
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| 0001-support-32bit-architectures.patch | support 32bit architectures The package did not build on 32bit: proto.Int() takes an int, so the EXPIRETIME/PEXPIRETIME expectations overflow, and even once that compiled the expire paths themselves were int-based and returned wrong results. Make the wire-protocol integer paths 64bit: - proto: add Int64(); server: add Peer/Writer.WriteInt64(). - EXPIREAT/PEXPIREAT/EXPIRETIME/PEXPIRETIME: parse and format via int64, so timestamps past 2038 work on 32bit. at() now takes an int64. - SET/GETEX/HSETEX EXAT/PXAT: parse with ParseInt instead of Atoi. - INCR/INCRBY/DECR/DECRBY: add stringIncr64() and reply with WriteInt64, so overflow behaves like 64bit Redis on 32bit platforms. The public Incr()/HIncr() API keeps its int signature. Make the tests architecture independent: - use int64 arithmetic for large timestamps (TestPexpireat, expiretime). - MEMORY USAGE: compare against size.Of() instead of hardcoded 64bit sizes. - size/size_test.go: measure slice/string/map header sizes via Of() itself and assert fixed-size deltas plus padding lower bounds, instead of hardcoding 64bit byte counts. Verified with go test ./... (64 bit) and GOOS=linux GOARCH=386 go test ./... (32bit) |
Rafael Passos <rafael@rcpassos.me> | yes | 2026-11-07 |
