Opened 2 years ago

Closed 2 years ago

#63926 closed defect (fixed)

py39-tomli @1.2.2_0: Build failure on 10.4.11 ("ZIP does not support timestamps before 1980")

Reported by: evanmiller (Evan Miller) Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: tiger Cc:
Port: py39-tomli

Description

:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tomli/py39-tomli/work/tomli-1.2.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m build --wheel --no-isolation --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tomli/py39-tomli/work --skip-dependency-check
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/share/py-bootstrap-modules/pep517/in_process/_in_process.py", line 363, in <module>
:info:build     main()
:info:build   File "/opt/local/share/py-bootstrap-modules/pep517/in_process/_in_process.py", line 345, in main
:info:build     json_out['return_val'] = hook(**hook_input['kwargs'])
:info:build   File "/opt/local/share/py-bootstrap-modules/pep517/in_process/_in_process.py", line 261, in build_wheel
:info:build     return _build_backend().build_wheel(wheel_directory, config_settings,
:info:build   File "/opt/local/share/py-bootstrap-modules/flit_core/buildapi.py", line 72, in build_wheel
:info:build     info = make_wheel_in(pyproj_toml, Path(wheel_directory))
:info:build   File "/opt/local/share/py-bootstrap-modules/flit_core/wheel.py", line 208, in make_wheel_in
:info:build     wb.build(editable)
:info:build   File "/opt/local/share/py-bootstrap-modules/flit_core/wheel.py", line 195, in build
:info:build     self.copy_module()
:info:build   File "/opt/local/share/py-bootstrap-modules/flit_core/wheel.py", line 157, in copy_module
:info:build     self._add_file(full_path, rel_path)
:info:build   File "/opt/local/share/py-bootstrap-modules/flit_core/wheel.py", line 105, in _add_file
:info:build     zinfo = zipfile.ZipInfo.from_file(full_path, rel_path)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/zipfile.py", line 517, in from_file
:info:build     zinfo = cls(arcname, date_time)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/zipfile.py", line 361, in __init__
:info:build     raise ValueError('ZIP does not support timestamps before 1980')
:info:build ValueError: ZIP does not support timestamps before 1980
:info:build * Building wheel...
:info:build ERROR Backend subproccess exited when trying to invoke build_wheel

Related discussion in this ticket: https://trac.macports.org/ticket/60165

Attachments (1)

py39-tomli-main.log (11.6 KB) - added by evanmiller (Evan Miller) 2 years ago.

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by evanmiller (Evan Miller)

Attachment: py39-tomli-main.log added

comment:1 Changed 2 years ago by tobypeterson

Is this due to PKG-INFO having a timestamp of 0? Maybe touching it post-extract would work? I obviously don't have ready access to such an old OS for repro purposes.

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Seems like this should be closed as a dup of #61276.

comment:3 in reply to:  2 Changed 2 years ago by evanmiller (Evan Miller)

Replying to jmroot:

Seems like this should be closed as a dup of #61276.

This is a build failure rather than a warning so it seems like a distinct issue.

comment:4 Changed 2 years ago by jmroot (Joshua Root)

It's exactly the same underlying problem of mtime=0 on the extracted files though.

comment:5 Changed 2 years ago by jmroot (Joshua Root)

In 1920889433cd7adc47db5f3345cdbae9319c24e8/macports-ports (master):

py-flit_core: update to 3.5.0

Also add patch for timestamp error.

See: #63926

comment:6 Changed 2 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 11b2758fc9b36a88b0ad3177cf6c78ecb56604e2/macports-ports (master):

py-bootstrap-modules: update flit_core to 3.5.0

Including patch for zipfile timestamp error.

Closes: #63926

Note: See TracTickets for help on using tickets.