https://bugzilla.redhat.com/show_bug.cgi?id=1728058

            Bug ID: 1728058
           Summary: fontforge fails to build with Python 3.8
           Product: Fedora
           Version: rawhide
            Status: NEW
         Component: fontforge
          Severity: high
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
            Blocks: 1686977 (PYTHON38)
  Target Milestone: ---
    Classification: Fedora



fontforge fails to build with Python 3.8.0b1.

python.c:17919:5: error: initialization of 'long int' from 'void *' makes
integer from pointer without a cast [-Werror=int-conversion]
17919 |     NULL,                      /* tp_print */
      |     ^~~~
python.c:17919:5: note: (near initialization for
'PyFF_FontType.tp_vectorcall_offset')
python.c:18036:5: error: initialization of 'long int' from 'void *' makes
integer from pointer without a cast [-Werror=int-conversion]
18036 |     NULL,                      /* tp_print */
      |     ^~~~
python.c:18036:5: note: (near initialization for
'PyFF_AWGlyphIndexType.tp_vectorcall_offset')
python.c:18174:5: error: initialization of 'long int' from 'void *' makes
integer from pointer without a cast [-Werror=int-conversion]
18174 |     NULL,                      /* tp_print */
      |     ^~~~
python.c:18174:5: note: (near initialization for
'PyFF_AWGlyphType.tp_vectorcall_offset')
python.c:18297:5: error: initialization of 'long int' from 'void *' makes
integer from pointer without a cast [-Werror=int-conversion]
18297 |     NULL,                      /* tp_print */
      |     ^~~~

In Python 3.8, the reserved "tp_print" slot was changed from a function pointer
to a number, `Py_ssize_t tp_vectorcall_offset`.
In C either a 0 or NULL casts automatically to both pointers and numbers,
however the -Werror=int-conversion flag makes it fail.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00963487-fontforge/

For all our attempts to build fontforge with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/fontforge/

Testing and mass rebuild of packages is happening in copr. You can follow these
instructions to test locally in mock if your package builds with Python 3.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1686977
[Bug 1686977] Python 3.8
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
fonts-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to