Bug 2251915 - setools fails to build in Fedora Rawhide: error: ‘cond_expr_t’ {aka ‘struct cond_expr’} has no member named ‘bool’; did you mean ‘boolean’
Summary: setools fails to build in Fedora Rawhide: error: ‘cond_expr_t’ {aka ‘struct c...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F40FTBFS PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-28 12:03 UTC by Karolina Surma
Modified: 2023-12-11 18:39 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-12-11 18:39:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SELinuxProject setools issues 110 0 None open 4.4.3: build fails wit `cython` 3.0.5 2023-12-04 14:19:09 UTC
Github SELinuxProject setools pull 113 0 None open Update for libsepol 3.6 2023-12-05 09:31:49 UTC

Description Karolina Surma 2023-11-28 12:03:12 UTC
During the Python 3.13 rebuild in Copr we discovered that setools fails to build in Fedora Rawhide.
See also Koschei: https://koschei.fedoraproject.org/package/setools?

setools/policyrep.c: In function ‘__pyx_pf_7setools_9policyrep_23ConditionalExprIterator___next__’:
setools/policyrep.c:27857:138: error: ‘cond_expr_t’ {aka ‘struct cond_expr’} has no member named ‘bool’; did you mean ‘boolean’?
27857 |     __pyx_t_3 = __pyx_f_7setools_9policyrep_13SELinuxPolicy_boolean_value_to_datum(__pyx_v_self->__pyx_base.policy, (__pyx_v_self->curr->bool - 1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 336, __pyx_L1_error)
      |                                                                                                                                          ^~~~
      |                                                                                                                                          boolean


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692282-setools/

For all our attempts to build setools with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/setools/

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.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Comment 1 Petr Lautrbach 2023-11-30 12:07:06 UTC
Last time, it was related to something in Cython - https://bugzilla.redhat.com/show_bug.cgi?id=2247027#c1 Given that it's still the cython generated code could it be the same case?

Comment 2 Miro Hrončok 2023-11-30 13:32:18 UTC
For the record, upgrading Cython to 3.0.6 does not change the error here.

Comment 3 Karolina Surma 2023-11-30 15:35:30 UTC
When I'm looking at the dependency changes in Koschei: https://koschei.fedoraproject.org/package/setools it doesn't seem straightforwardly connected to Cython. Maybe there were breaking changes in libsepol or libselinux that affect setools?

Comment 4 Petr Lautrbach 2023-12-04 13:58:26 UTC
it's not related to python 3.13 it fails also with 3.12 - https://koji.fedoraproject.org/koji/taskinfo?taskID=109893147


Note You need to log in before you can comment on or make changes to this bug.