make_distrib.py: ZIP does not support timestamps before 1980

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

make_distrib.py: ZIP does not support timestamps before 1980

Postby linuxcef07 » Sun Mar 03, 2024 11:41 am

I have successfully compiled cef 121.0.6167.160 using conan recipe on windows by referring https://bitbucket.org/chromiumembedded/ ... dows-setup

Now while creating zip file with below command, make_distrib.py is throwing error: ZIP does not support timestamps before 1980
Command:
Code: Select all
make_distrib.bat --ninja-build --minimal --no-docs --distrib-subdir=win64_vc140 --x64-build


surprisingly, I don't see any file older than 1980 in "chromium\src\cef\binary_distrib\win64_vc140_minimal" directory.

I am seeing this error first time with CEF. Is there something that I am missing this time?
I know, there is “strict_timestamps” flag for zip_File function in zipfile py library which will fix this issue but I don’t want any explicit code changes in make_distrib.py cef file.
Can someone please share if there is any solution/workaround without modifying make_distrib.py file?

Detailed logs:
Transferring K:\cg\chromium\src\cef\include/cef_sandbox_win.h file.
Transferring K:\cg\chromium\src\cef\include/internal/cef_win.h file.
Transferring K:\cg\chromium\src\cef\include/internal/cef_app_win.h file.
Transferring K:\cg\chromium\src\cef\include/internal/cef_types_win.h file.
Creating zip archive for win64_vc140_minimal...
Traceback (most recent call last):
File "K:\cg\chromium\src\cef\tools\\make_distrib.py", line 1302, in <module>
create_zip_archive(dir)
File "K:\cg\chromium\src\cef\tools\\make_distrib.py", line 38, in create_zip_archive
addDir(input_dir)
File "K:\cg\chromium\src\cef\tools\\make_distrib.py", line 33, in addDir
addDir(full_path)
File "K:\cg\chromium\src\cef\tools\\make_distrib.py", line 35, in addDir
zf.write(full_path, os.path.relpath(full_path, \
File "K:\depot_tools\bootstrap-2@3_11_6_chromium_30_bin\python3\bin\Lib\zipfile.py", line 1775, in write
zinfo = ZipInfo.from_file(filename, arcname,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\depot_tools\bootstrap-2@3_11_6_chromium_30_bin\python3\bin\Lib\zipfile.py", line 548, in from_file
zinfo = cls(arcname, date_time)
^^^^^^^^^^^^^^^^^^^^^^^
File "K:\depot_tools\bootstrap-2@3_11_6_chromium_30_bin\python3\bin\Lib\zipfile.py", line 390, in __init__
raise ValueError('ZIP does not support timestamps before 1980')
ValueError: ZIP does not support timestamps before 1980


Thanks
linuxcef07
Techie
 
Posts: 34
Joined: Wed Dec 20, 2023 11:57 am

Re: make_distrib.py: ZIP does not support timestamps before

Postby linuxcef07 » Wed Mar 06, 2024 2:28 am

Fixed by setting “strict_timestamps=False” in make_distrib.py cef file.
linuxcef07
Techie
 
Posts: 34
Joined: Wed Dec 20, 2023 11:57 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 157 guests