Package: src:golang-github-rickb777-date
Version: 1.19.1-1
Severity: serious
Tags: ftbfs patch

Dear maintainer:

During a rebuild of all packages in bookworm, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary-indep
dh binary-indep --builddirectory=_build --buildsystem=golang --with=golang
   dh_update_autotools_config -i -O--builddirectory=_build 
-O--buildsystem=golang
   dh_autoreconf -i -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_configure -i -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_build -i -O--builddirectory=_build -O--buildsystem=golang
        cd _build && go install -trimpath -v -p 1 github.com/rickb777/date 
github.com/rickb777/date/clock github.com/rickb777/date/gregorian 
github.com/rickb777/date/period github.com/rickb777/date/timespan 
github.com/rickb777/date/view
internal/goarch
internal/unsafeheader
internal/abi
internal/cpu
internal/bytealg
internal/goexperiment
internal/goos
runtime/internal/atomic
runtime/internal/math
runtime/internal/sys
runtime/internal/syscall
runtime
internal/reflectlite
errors
internal/race
sync/atomic
sync
io
unicode
unicode/utf8
bytes
internal/itoa
internal/oserror
syscall
time
context
math/bits
math
strconv
reflect
sort
internal/fmtsort
internal/syscall/unix
internal/poll
internal/syscall/execenv
internal/testlog
path
io/fs
os
fmt
database/sql/driver
github.com/rickb777/date/gregorian
strings
github.com/rickb777/plural
github.com/rickb777/date/period
github.com/rickb777/date
github.com/rickb777/date/clock
github.com/rickb777/date/timespan
github.com/rickb777/date/view
   dh_auto_test -i -O--builddirectory=_build -O--buildsystem=golang
        cd _build && go test -vet=off -v -p 1 github.com/rickb777/date 
github.com/rickb777/date/clock github.com/rickb777/date/gregorian 
github.com/rickb777/date/period github.com/rickb777/date/timespan 
github.com/rickb777/date/view
=== RUN   TestDate_New
--- PASS: TestDate_New (0.00s)
=== RUN   TestDate_DaysSinceEpoch
--- PASS: TestDate_DaysSinceEpoch (0.00s)
=== RUN   TestDate_Today
--- PASS: TestDate_Today (0.00s)
=== RUN   TestDate_Time
--- PASS: TestDate_Time (0.00s)
=== RUN   TestPredicates
--- PASS: TestPredicates (0.00s)
=== RUN   TestArithmetic
--- PASS: TestArithmetic (0.00s)
=== RUN   TestDate_AddDate
--- PASS: TestDate_AddDate (0.00s)
=== RUN   TestDate_AddPeriod
--- PASS: TestDate_AddPeriod (0.00s)
=== RUN   TestIsLeap
--- PASS: TestIsLeap (0.00s)
=== RUN   TestDaysIn
--- PASS: TestDaysIn (0.00s)
=== RUN   TestDate_String
--- PASS: TestDate_String (0.00s)
=== RUN   TestDate_FormatISO
--- PASS: TestDate_FormatISO (0.00s)
=== RUN   TestDate_Format
--- PASS: TestDate_Format (0.00s)
=== RUN   TestDate_gob_Encode_round_tripe
--- PASS: TestDate_gob_Encode_round_tripe (0.00s)
=== RUN   TestDate_MarshalJSON_round_trip
--- PASS: TestDate_MarshalJSON_round_trip (0.00s)
=== RUN   TestDate_MarshalText_round_trip
--- PASS: TestDate_MarshalText_round_trip (0.00s)
=== RUN   TestDate_MarshalBinary_round_trip
--- PASS: TestDate_MarshalBinary_round_trip (0.00s)
=== RUN   TestDate_UnmarshalBinary_errors
--- PASS: TestDate_UnmarshalBinary_errors (0.00s)
=== RUN   TestDate_UnmarshalText_invalid_date_text
--- PASS: TestDate_UnmarshalText_invalid_date_text (0.00s)
=== RUN   TestAutoParse
--- PASS: TestAutoParse (0.00s)
=== RUN   TestParseISO
--- PASS: TestParseISO (0.00s)
=== RUN   TestParse
--- PASS: TestParse (0.00s)
=== RUN   TestEncode
--- PASS: TestEncode (0.00s)
=== RUN   TestEncodeDecode
--- PASS: TestEncodeDecode (0.00s)
=== RUN   TestDecodeEncode
--- PASS: TestDecodeEncode (0.00s)
=== RUN   TestZone
--- PASS: TestZone (0.00s)
=== RUN   TestDate_Scan
--- PASS: TestDate_Scan (0.00s)
=== RUN   TestDateString_Scan
--- PASS: TestDateString_Scan (0.00s)
=== RUN   TestDate_Scan_with_junk
--- PASS: TestDate_Scan_with_junk (0.00s)
=== RUN   TestDateString_Scan_with_junk
--- PASS: TestDateString_Scan_with_junk (0.00s)
=== RUN   TestDate_Scan_with_nil
--- PASS: TestDate_Scan_with_nil (0.00s)
=== RUN   ExampleMax
--- PASS: ExampleMax (0.00s)
=== RUN   ExampleMin
--- PASS: ExampleMin (0.00s)
=== RUN   ExampleNew
--- PASS: ExampleNew (0.00s)
=== RUN   ExampleParse
--- PASS: ExampleParse (0.00s)
=== RUN   ExampleParseISO
--- PASS: ExampleParseISO (0.00s)
=== RUN   ExampleDate_AddDate
--- PASS: ExampleDate_AddDate (0.00s)
=== RUN   ExampleDate_Format
--- PASS: ExampleDate_Format (0.00s)
=== RUN   ExampleDate_FormatISO
--- PASS: ExampleDate_FormatISO (0.00s)
PASS
ok      github.com/rickb777/date        0.005s
=== RUN   TestClockHoursMinutesSeconds
--- PASS: TestClockHoursMinutesSeconds (0.00s)
=== RUN   TestClockSinceMidnight
--- PASS: TestClockSinceMidnight (0.00s)
=== RUN   TestClockIsInOneDay
--- PASS: TestClockIsInOneDay (0.00s)
=== RUN   TestClockAdd
--- PASS: TestClockAdd (0.00s)
=== RUN   TestClockAddDuration
--- PASS: TestClockAddDuration (0.00s)
=== RUN   TestClockSubtract
--- PASS: TestClockSubtract (0.00s)
=== RUN   TestClockIsMidnight
--- PASS: TestClockIsMidnight (0.00s)
=== RUN   TestClockMod
--- PASS: TestClockMod (0.00s)
=== RUN   TestClockDays
--- PASS: TestClockDays (0.00s)
=== RUN   TestClockString
--- PASS: TestClockString (0.00s)
=== RUN   TestClockParseGoods
--- PASS: TestClockParseGoods (0.00s)
=== RUN   TestClockParseBads
--- PASS: TestClockParseBads (0.00s)
=== RUN   TestGobEncoding
--- PASS: TestGobEncoding (0.00s)
=== RUN   TestJSONMarshalling
--- PASS: TestJSONMarshalling (0.00s)
=== RUN   TestJSONUnmarshalling
--- PASS: TestJSONUnmarshalling (0.00s)
=== RUN   TestBinaryMarshalling
--- PASS: TestBinaryMarshalling (0.00s)
=== RUN   TestBinaryUnmarshallingErrors
--- PASS: TestBinaryUnmarshallingErrors (0.00s)
=== RUN   TestInvalidClockText
--- PASS: TestInvalidClockText (0.00s)
=== RUN   TestClockScan
--- PASS: TestClockScan (0.00s)
=== RUN   TestClockScanWithJunk
--- PASS: TestClockScanWithJunk (0.00s)
=== RUN   TestClockScanWithNil
--- PASS: TestClockScanWithNil (0.00s)
PASS
ok      github.com/rickb777/date/clock  0.003s
=== RUN   TestIsLeap
--- PASS: TestIsLeap (0.00s)
=== RUN   TestDaysInYear
--- PASS: TestDaysInYear (0.00s)
=== RUN   TestDaysIn
--- PASS: TestDaysIn (0.00s)
PASS
ok      github.com/rickb777/date/gregorian      0.006s
=== RUN   TestPeriodScale
--- PASS: TestPeriodScale (0.00s)
=== RUN   TestPeriodAdd
--- PASS: TestPeriodAdd (0.00s)
=== RUN   TestPeriodAddToTime
--- PASS: TestPeriodAddToTime (0.00s)
=== RUN   TestGobEncoding
--- PASS: TestGobEncoding (0.00s)
=== RUN   TestPeriodJSONMarshalling
--- PASS: TestPeriodJSONMarshalling (0.00s)
=== RUN   TestPeriodTextMarshalling
--- PASS: TestPeriodTextMarshalling (0.00s)
=== RUN   TestInvalidPeriodText
--- PASS: TestInvalidPeriodText (0.00s)
=== RUN   TestParseErrors
--- PASS: TestParseErrors (0.00s)
=== RUN   TestParsePeriodWithNormalise
--- PASS: TestParsePeriodWithNormalise (0.00s)
=== RUN   TestParsePeriodWithoutNormalise
--- PASS: TestParsePeriodWithoutNormalise (0.00s)
=== RUN   TestPeriodString
--- PASS: TestPeriodString (0.00s)
=== RUN   TestPeriodIntComponents
--- PASS: TestPeriodIntComponents (0.00s)
=== RUN   TestPeriodFloatComponents
--- PASS: TestPeriodFloatComponents (0.00s)
=== RUN   TestPeriodToDuration
--- PASS: TestPeriodToDuration (0.00s)
=== RUN   TestSignPositiveNegative
--- PASS: TestSignPositiveNegative (0.00s)
=== RUN   TestPeriodApproxDays
--- PASS: TestPeriodApproxDays (0.00s)
=== RUN   TestPeriodApproxMonths
--- PASS: TestPeriodApproxMonths (0.00s)
=== RUN   TestNewPeriod
--- PASS: TestNewPeriod (0.00s)
=== RUN   TestNewHMS
--- PASS: TestNewHMS (0.00s)
=== RUN   TestNewYMD
--- PASS: TestNewYMD (0.00s)
=== RUN   TestNewOf
--- PASS: TestNewOf (0.00s)
=== RUN   TestBetween
--- FAIL: TestBetween (0.00s)
panic: time: missing Location in call to Date [recovered]
        panic: time: missing Location in call to Date

goroutine 28 [running]:
testing.tRunner.func1.2({0x60f400, 0x6b0630})
        /usr/lib/go-1.18/src/testing/testing.go:1389 +0x24e
testing.tRunner.func1()
        /usr/lib/go-1.18/src/testing/testing.go:1392 +0x39f
panic({0x60f400, 0x6b0630})
        /usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
time.Date(0x2?, 0x1?, 0x0?, 0xc000121c08?, 0x90f5602d?, 0x7f7417cdcfff?, 
0x7f7417cdcfff?, 0x810d80?)
        /usr/lib/go-1.18/src/time/time.go:1404 +0x4e5
github.com/rickb777/date/period.bst(...)
        
/<<PKGBUILDDIR>>/_build/src/github.com/rickb777/date/period/period_test.go:1083
github.com/rickb777/date/period.TestBetween(0xc0001a6680)
        
/<<PKGBUILDDIR>>/_build/src/github.com/rickb777/date/period/period_test.go:714 
+0x869
testing.tRunner(0xc0001a6680, 0x671d48)
        /usr/lib/go-1.18/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
        /usr/lib/go-1.18/src/testing/testing.go:1486 +0x35f
FAIL    github.com/rickb777/date/period 0.011s
panic: unknown time zone Europe/London

goroutine 1 [running]:
github.com/rickb777/date/timespan.mustLoadLocation(...)
        
/<<PKGBUILDDIR>>/_build/src/github.com/rickb777/date/timespan/daterange_test.go:42
github.com/rickb777/date/timespan.init()
        
/<<PKGBUILDDIR>>/_build/src/github.com/rickb777/date/timespan/daterange_test.go:37
 +0x3b6
FAIL    github.com/rickb777/date/timespan       0.005s
=== RUN   TestBasicFormatting
--- PASS: TestBasicFormatting (0.00s)
=== RUN   TestZeroFormatting
--- PASS: TestZeroFormatting (0.00s)
=== RUN   TestDate
--- PASS: TestDate (0.00s)
=== RUN   TestIsToday
--- PASS: TestIsToday (0.00s)
=== RUN   TestIsOdd
--- PASS: TestIsOdd (0.00s)
=== RUN   TestNext
--- PASS: TestNext (0.00s)
=== RUN   TestPrevious
--- PASS: TestPrevious (0.00s)
=== RUN   TestJSONMarshalling
--- PASS: TestJSONMarshalling (0.00s)
=== RUN   TestTextMarshalling
--- PASS: TestTextMarshalling (0.00s)
PASS
ok      github.com/rickb777/date/view   0.002s
FAIL
dh_auto_test: error: cd _build && go test -vet=off -v -p 1 
github.com/rickb777/date github.com/rickb777/date/clock 
github.com/rickb777/date/gregorian github.com/rickb777/date/period 
github.com/rickb777/date/timespan github.com/rickb777/date/view returned exit code 1
make: *** [debian/rules:6: binary-indep] Error 25
dpkg-buildpackage: error: debian/rules binary-indep subprocess returned exit 
status 2
--------------------------------------------------------------------------------

(The above is just how the build ends and not necessarily the most relevant 
part)

Note: I'm using the "patch" tag because there is an obvious fix
(indicated in the subject).

About the archive rebuild: The build was made using virtual machines
from Hetzner, with enough memory, enough disk, and either one or two
CPUs, using a reduced chroot with only build-essential packages (plus
debhelper).

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to