Bug 1715756
| Summary: | libselinux fails to build with Python 3.8 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | libselinux | Assignee: | Petr Lautrbach <plautrba> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dwalsh, mgrepl, plautrba, vmojzis |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/libselinux/ | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-05-31 09:33:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1686977 | ||
|
Description
Miro Hrončok
2019-05-31 07:40:32 UTC
I believe this is already fixed in libselinux-2.9-2.fc31, see https://copr.fedorainfracloud.org/coprs/plautrba/libselinux-python-3.8/build/918499/ in -2 we switched to use distutils and follow https://docs.python.org/3.8/extending/building.html#building Now our setup.py looks like: #!/usr/bin/python3 from distutils.core import Extension, setup setup( name="selinux", version="2.9", description="SELinux python 3 bindings", author="SELinux Project", author_email="selinux.org", ext_modules=[ Extension('selinux._selinux', sources=['selinuxswig_python.i'], include_dirs=['../include'], library_dirs=['.'], libraries=['selinux']), Extension('selinux.audit2why', sources=['audit2why.c'], include_dirs=['../include'], library_dirs=['.'], libraries=['selinux'], extra_link_args=['-l:libsepol.a']) ], ) Miro, please review the results and close it works for you Seems like I might have just forgot to pull :facepalm: Sorry about that, running a verifying build. Builds. Sorry again. |