[Bug 1842618] Re: python3.7 might need a rebuild against the new glibc 2.30 - fails with stropts define
Christian Ehrhardt
1842618 at bugs.launchpad.net
Wed Sep 4 08:15:32 UTC 2019
>From IRC:
[09:53] <cpaelzer> doko: I think I found an issue in glibc 2.30 vs python triggering further issues in samba https://bugs.launchpad.net/ubuntu/+source/python3.7/+bug/1842618
[09:54] <cpaelzer> doko: once you are around it would be great if you could let me know if you agree and schedule a python3 rebuild or if it is more complex than that
[09:54] <cpaelzer> because in case of the latter we might (for now) add some silly but working [10:09] <doko> cpaelzer: uploaded
And I see [1] building:
python3.7 (3.7.4-4) unstable; urgency=medium
* Update to 20190904 from the 3.7 branch.
There is no bug reference, so it won't be updated automatically.
But I might recheck if it reached proposed later and then retest a samba build.
Thanks Doko for the quick upload, it seems you had an upload in mind
anyway :-)
[1]: https://launchpad.net/ubuntu/+source/python3.7/3.7.4-4
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1842618
Title:
python3.7 might need a rebuild against the new glibc 2.30 - fails with
stropts define
Status in python3.7 package in Ubuntu:
New
Bug description:
Hi,
this was triggered by an issue rebuilding samba in Eoan.
In file included from ../../source4/heimdal_build/krb5-types.h:8,
from ../../source4/heimdal/lib/krb5/krb5.h:42,
from ../../lib/replace/system/kerberos.h:33,
from ../../auth/credentials/pycredentials.c:34:
../../lib/replace/system/network.h:91:10: fatal error: stropts.h: No such file or directory
91 | #include <stropts.h>
| ^~~~~~~~~~~
After some initial confusion it turned out that nothing in samba
enables HAVE_STROPTS_H and the configure stage properly detects:
Checking for header stropts.h : no
Never the less this triggered:
../../lib/replace/system/network.h
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
And due to glibc 2.30 containing [1] no stropts files are shipped anymore.
Therefore the above failure happens and the build aborts.
But since nothing in samba defines HAVE_STROPTS_H I had to reach out
and checked an eoan-proposed build environment. There I found that
python (this part of samba builds pycredentials.c and therefore has
python related includes) is the root cause for this.
usr/include/x86_64-linux-gnu/python3.7m/pyconfig.h:986:#define
HAVE_STROPTS_H 1
So everything that includes pyconfig.h direct or indirect and then
based on HAVE_STROPTS_H will include stropts.h will be a broken build
right now.
pyconfig.h is generated on the build of python, so I guess we need a
no change rebuild of python to resolve this?
[1]:
https://github.com/bminor/glibc/commit/a0a0dc83173ce11ff45105fd32e5d14356cdfb9c
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.7/+bug/1842618/+subscriptions
More information about the foundations-bugs
mailing list