Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 930096

Summary: sys-apps/portage: fails to create binpkg (ValueError: overflow in number field) for [guru] games-fps/the-dark-mod-bin-2.12
Product: Portage Development Reporter: Agostino Sarubbo <ago>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: guru-bugs, mgorny, rincat, zdanevich.vitaly
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-04-16 07:27:46 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-fps/the-dark-mod-bin-2.12 fails to compile.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-04-16 07:27:47 UTC
Created attachment 890906 [details]
build.log

build log and emerge --info
Comment 2 Vitaly Zdanevich 2024-04-26 01:13:08 UTC
Cannot reproduce. What should I do with that?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-01 00:06:10 UTC
"""
>>> Completed testing games-fps/the-dark-mod-bin-2.12

>>> Install games-fps/the-dark-mod-bin-2.12 into /var/tmp/portage/games-fps/the-dark-mod-bin-2.12/image
>>> Completed installing games-fps/the-dark-mod-bin-2.12 into /var/tmp/portage/games-fps/the-dark-mod-bin-2.12/image

 * Final size of build directory: 17568156 KiB (16.7 GiB)
 * Final size of installed tree:  17568160 KiB (16.7 GiB)


Traceback (most recent call last):
  File "/usr/lib/portage/python3.12/gpkg-helper.py", line 75, in <module>
    rval = main(sys.argv[:])
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/portage/python3.12/gpkg-helper.py", line 67, in main
    rval = command_compose(args[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/portage/python3.12/gpkg-helper.py", line 39, in command_compose
    gpkg_file.compress(image_dir, metadata)
  File "/usr/lib/python3.12/site-packages/portage/gpkg.py", line 949, in compress
    with tar_stream_writer(
  File "/usr/lib/python3.12/site-packages/portage/gpkg.py", line 146, in __exit__
    self.close()
  File "/usr/lib/python3.12/site-packages/portage/gpkg.py", line 240, in close
    tar_header = self.tarinfo.tobuf(
                 ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/tarfile.py", line 991, in tobuf
    return self.create_ustar_header(info, encoding, errors)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/tarfile.py", line 1010, in create_ustar_header
    return self._create_header(info, USTAR_FORMAT, encoding, errors)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/tarfile.py", line 1130, in _create_header
    itn(info.get("size", 0), 12, format),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/tarfile.py", line 221, in itn
    raise ValueError("overflow in number field")
ValueError: overflow in number field
Exception ignored in: <function tar_stream_writer.__del__ at 0x720f62861b20>
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/portage/gpkg.py", line 140, in __del__
  File "/usr/lib/python3.12/site-packages/portage/gpkg.py", line 240, in close
  File "/usr/lib/python3.12/tarfile.py", line 991, in tobuf
  File "/usr/lib/python3.12/tarfile.py", line 1010, in create_ustar_header
  File "/usr/lib/python3.12/tarfile.py", line 1130, in _create_header
  File "/usr/lib/python3.12/tarfile.py", line 221, in itn
ValueError: overflow in number field
 * ERROR: games-fps/the-dark-mod-bin-2.12::guru failed (package phase):
 *   Failed to create binpkg file
"""

Portage bug then.