device-tree-compiler ftbfs with Python 3.12 as default

Bug #2051399 reported by Sergio Durigan Junior
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
device-tree-compiler
New
Unknown
device-tree-compiler (Debian)
Fix Released
Unknown
device-tree-compiler (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This is the Ubuntu counterpart of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061318.

When building the package using Python 3.12:

[...]

testCreate (__main__.PyLibfdtSwTests.testCreate) ... FAIL

======================================================================
FAIL: testReserveMap (__main__.PyLibfdtBasicTests.testReserveMap)
Test that we can access the memory reserve map
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/./pylibfdt_tests.py", line 421, in
testReserveMap
    self.assertEqual([ 0xdeadbeef00000000, 0x100000],
AssertionError: Lists differ: [16045690981097406464, 1048576] != [0,
16045690981097406464, 1048576]

First differing element 0:
16045690981097406464
0

Second list contains 1 additional elements.
First extra element 2:
1048576

- [16045690981097406464, 1048576]
+ [0, 16045690981097406464, 1048576]
? +++

======================================================================
FAIL: testCreate (__main__.PyLibfdtSwTests.testCreate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/./pylibfdt_tests.py", line 585, in
testCreate
    self.assertEqual([TEST_ADDR_1, TEST_SIZE_1], fdt.get_mem_rsv(0))
AssertionError: Lists differ: [9223372036854775808, 1048576] != [0,
9223372036854775808, 1048576]

First differing element 0:
9223372036854775808
0

Second list contains 1 additional elements.
First extra element 2:
1048576

- [9223372036854775808, 1048576]
+ [0, 9223372036854775808, 1048576]
? +++

----------------------------------------------------------------------
Ran 39 tests in 0.005s

FAILED (failures=2)
********** TEST SUMMARY
* Total testcases: 2100
* PASS: 2098
* FAIL: 0
* Bad configuration: 0
* Strange test result: 0
**********
make[1]: *** [tests/Makefile.tests:89: check] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'

Changed in device-tree-compiler (Debian):
status: Unknown → New
Changed in device-tree-compiler:
status: Unknown → New
Changed in device-tree-compiler (Debian):
status: New → Confirmed
Changed in device-tree-compiler (Debian):
status: Confirmed → Fix Released
Changed in device-tree-compiler (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.