Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64018 closed defect (duplicate)

py38-tomli @1.2.2 cannot be built on PPC Mac OS X 10.4.11, Tiger, because "ZIP does not support timestamps before 1980"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: tiger Cc: tobypeterson
Port: py-tomli

Description

It starts with

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-tomli/py38-tomli/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/py-tomli/tomli-1.2.2.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-tomli/py38-tomli/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/py-tomli/tomli-1.2.2.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
/usr/bin/gnutar: tomli-1.2.2/LICENSE: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/README.md: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/pyproject.toml: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/tomli/__init__.py: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/tomli/_parser.py: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/tomli/_re.py: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/tomli/_types.py: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/tomli/py.typed: implausibly old time stamp 1970-01-01 01:00:00
/usr/bin/gnutar: tomli-1.2.2/PKG-INFO: implausibly old time stamp 1970-01-01 01:00:00

and ends with

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

ERROR Backend subproccess exited when trying to invoke build_wheel
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-tomli/py38-tomli/work/tomli-1.2.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -m build --wheel --no-isolation --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_python_py-tomli/py38-tomli/work --skip-dependency-check 
Exit code: 1

Attachments (1)

main.log (11.3 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:1 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

The same with py38-pep517. (I just keep touching the ordinary files to work these failures.)

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

Cc: tobypeterson added; toby@… removed
Port: py-tomli added; py38-tomli removed

comment:4 Changed 3 years ago by kencu (Ken)

all these gnutar related tickets are basically dups of 61276.

some comprehensive solutions were proposed there, so far none accepted.

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

I get the impression that this will be a problem for a lot of modules, maybe everything that uses flit_core, maybe more. Might be worth using strict_timestamps=False there.

comment:6 in reply to:  4 ; Changed 3 years ago by jmroot (Joshua Root)

Replying to kencu:

all these gnutar related tickets are basically dups of 61276.

It's not clear to me that this is tar's fault, as extracting on Big Sur also produces a PKG-INFO with a timestamp of 1 Jan 1970.

comment:7 Changed 3 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

comment:8 in reply to:  6 Changed 3 years ago by jmroot (Joshua Root)

Replying to jmroot:

Replying to kencu:

all these gnutar related tickets are basically dups of 61276.

It's not clear to me that this is tar's fault, as extracting on Big Sur also produces a PKG-INFO with a timestamp of 1 Jan 1970.

Just noting here that it is sort of the old tar's fault and sort of not. See the other ticket.

Note: See TracTickets for help on using tickets.