<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>282197</bug_id>
          
          <creation_ts>2024-10-28 12:48:59 -0700</creation_ts>
          <short_desc>Update autoinstalled cffi</short_desc>
          <delta_ts>2024-10-29 07:48:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>281877</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2071012</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-10-28 12:48:59 -0700</bug_when>
    <thetext>There are a huge number of warnings when autoinstalling cffi, which fails to build its wheel on Fedora 41 due to -Werror=implicit-function-declaration. Let&apos;s update it. I&apos;ve pasted only one copy of the warnings below, but they all print five times when running &apos;git-webkit pr&apos;. I guess the script repeats its attempt to install cffi many times. But git-webkit seems to work just fine nevertheless, though.

Downloading cffi-1.15.1...
Installing cffi-1.15.1...
/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!

        ********************************************************************************
        The license_file parameter is deprecated, use license_files instead.

        This deprecation is overdue, please update your project and remove deprecated
        calls to avoid build errors in the future.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  parsed = self.parsers.get(option_name, lambda x: x)(value)
running install
/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-313
creating build/lib.linux-x86_64-cpython-313/cffi
copying cffi/__init__.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/api.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/backend_ctypes.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/cffi_opcode.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/commontypes.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/cparser.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/error.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/ffiplatform.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/lock.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/model.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/pkgconfig.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/recompiler.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/setuptools_ext.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/vengine_cpy.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/vengine_gen.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/verifier.py -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/_cffi_include.h -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/parse_c_type.h -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/_embedding.h -&gt; build/lib.linux-x86_64-cpython-313/cffi
copying cffi/_cffi_errors.h -&gt; build/lib.linux-x86_64-cpython-313/cffi
running build_ext
building &apos;_cffi_backend&apos; extension
creating build/temp.linux-x86_64-cpython-313
creating build/temp.linux-x86_64-cpython-313/c
gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.13 -c c/_cffi_backend.c -o build/temp.linux-x86_64-cpython-313/c/_cffi_backend.o
c/_cffi_backend.c: In function ‘b_do_dlopen’:
c/_cffi_backend.c:4523:22: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
 4523 |                      Py_FileSystemDefaultEncoding, &amp;filename_or_null, &amp;flags))
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:99,
                 from c/_cffi_backend.c:2:
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c: In function ‘_my_PyErr_WriteUnraisable’:
c/_cffi_backend.c:6112:9: error: implicit declaration of function ‘_PyErr_WriteUnraisableMsg’; did you mean ‘PyErr_WriteUnraisable’? [-Wimplicit-function-declaration]
 6112 |         _PyErr_WriteUnraisableMsg(PyText_AS_UTF8(s), NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |         PyErr_WriteUnraisable
error: command &apos;/usr/lib64/ccache/gcc&apos; failed with exit code 1
Failed to install cffi-1.15.1!
ERROR:keyring.backend:Error initializing plugin EntryPoint(name=&apos;SecretService&apos;, value=&apos;keyring.backends.SecretService&apos;, group=&apos;keyring.backends&apos;).
Traceback (most recent call last):
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/keyring/backend.py&quot;, line 201, in _load_plugins
    init_func = ep.load()
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/importlib_metadata/__init__.py&quot;, line 194, in load
    module = import_module(match.group(&apos;module&apos;))
  File &quot;/usr/lib64/python3.13/importlib/__init__.py&quot;, line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1387, in _gcd_import
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1360, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1331, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 935, in _load_unlocked
  File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 1022, in exec_module
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 488, in _call_with_frames_removed
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/keyring/backends/SecretService.py&quot;, line 15, in &lt;module&gt;
    import secretstorage
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/secretstorage/__init__.py&quot;, line 13, in &lt;module&gt;
    from secretstorage.collection import Collection, create_collection, \
     get_all_collections, get_default_collection, get_any_collection, \
     get_collection_by_alias, search_items
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/secretstorage/collection.py&quot;, line 24, in &lt;module&gt;
    from secretstorage.item import Item
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/secretstorage/item.py&quot;, line 17, in &lt;module&gt;
    from secretstorage.util import DBusAddressWrapper, \
     exec_prompt, open_session, format_secret, unlock_objects
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/secretstorage/util.py&quot;, line 23, in &lt;module&gt;
    from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1360, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1322, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1262, in _find_spec
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 699, in find_spec
    loader = cls.find_module(fullname, path=path)
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 713, in find_module
    cls.install(name)
    ~~~~~~~~~~~^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 686, in install
    return all([to_install.install() for to_install in packages])
                ~~~~~~~~~~~~~~~~~~^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 310, in install
    AutoInstall.install(dependency)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 686, in install
    return all([to_install.install() for to_install in packages])
                ~~~~~~~~~~~~~~~~~~^^
  File &quot;/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py&quot;, line 361, in install
    subprocess.check_call(
    ~~~~~~~~~~~~~~~~~~~~~^
        [
        ^
    ...&lt;26 lines&gt;...
        stderr=setup_log,
        ^^^^^^^^^^^^^^^^^
    )
    ^
  File &quot;/usr/lib64/python3.13/subprocess.py&quot;, line 419, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command &apos;[&apos;/usr/bin/python3&apos;, &apos;/tmp/cffi-162222/cffi-1.15.1/setup.py&apos;, &apos;install&apos;, &apos;--home=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64&apos;, &apos;--root=/&apos;, &apos;--prefix=&apos;, &apos;--install-lib=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64&apos;, &apos;--install-scripts=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/bin&apos;, &apos;--install-data=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/data&apos;, &apos;--install-headers=/home/mcatanzaro/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/headers&apos;]&apos; returned non-zero exit status 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071013</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-10-28 12:50:49 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/35815</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071238</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-29 07:47:35 -0700</bug_when>
    <thetext>Committed 285831@main (9afb773813fd): &lt;https://commits.webkit.org/285831@main&gt;

Reviewed commits have been landed. Closing PR #35815 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071239</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-29 07:48:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/138842891&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>