gcc -Wdeprecated fails with: readdir_r is deprecated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snap-confine |
Fix Released
|
High
|
Zygmunt Krynicki | ||
snap-confine (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The readdir_r function, which is a reentrant version of readdir() is deprecated in glibc. Some newer distributions (e.g. Ubuntu Yakkety) could no longer build snap-confine with this function. For more detail on readdir_r issue see the end of this bug description.
[Test Case]
The package doesn't FTBFS anymore and works as before. This feature is used by the LXD quirk code which is covered by this bug report and the same SRU request: https:/
[Regression Potential]
* Minimal, snap-confine is a single-threaded application that doesn't use signal handlers with any non-trivial code that might be affected by the use of non-reentrant readdir().
[Other Info]
* This bug is a part of a major SRU that brings snap-confine in Ubuntu 16.04 in line with the current upstream release 1.0.41.
* snap-confine is technically an integral part of snapd which has an SRU exception and is allowed to introduce new features and take advantage of accelerated procedure. For more information see https:/
== # Pre-SRU bug description follows # ==
Since Fedora 24 and Ubuntu 16.10 readdir_r is deprecated and causes build failures in strict packaging builds.
Some more details:
https:/
https:/
description: | updated |
Changed in snap-confine: | |
status: | In Progress → Fix Committed |
Changed in snap-confine: | |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in snap-confine (Ubuntu): | |
status: | New → Fix Released |
Changed in snap-confine (Ubuntu Xenial): | |
status: | New → In Progress |
This bug is fixed with the following pull request: https:/ /github. com/snapcore/ snap-confine/ pull/118