zos-remote-config: include libgen.h for basename(3)#521
Open
WavyEbuilder wants to merge 1 commit intolinux-audit:masterfrom
Open
zos-remote-config: include libgen.h for basename(3)#521WavyEbuilder wants to merge 1 commit intolinux-audit:masterfrom
WavyEbuilder wants to merge 1 commit intolinux-audit:masterfrom
Conversation
POSIX stipulates that basename(3) is provided by libgen.h[1]. The musl libc, since 1.2.5, has stopped providing basename(3) in string.h[2]. As such, include libgen.h for our usage of basename(3). A similar patch is currently carried downstream by Gentoo[3][4]. [1] https://pubs.opengroup.org/onlinepubs/9799919799/ [2] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 [3] https://codeberg.org/gentoo/gentoo/src/commit/2ac58d82e4db15c305a039841e81a07d918529e5/sys-process/audit/files/audit-4.0.1-musl-basename.patch [4] https://codeberg.org/gentoo/gentoo/commit/d1f53d5bae5657db01f6aac127f352e21ccf14eb Signed-off-by: Rahul Sandhu <nvraxn@posteo.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POSIX stipulates that basename(3) is provided by libgen.h[1]. The musl libc, since 1.2.5, has stopped providing basename(3) in string.h[2]. As such, include libgen.h for our usage of basename(3).
A similar patch is currently carried downstream by Gentoo[3][4].
[1] https://pubs.opengroup.org/onlinepubs/9799919799/
[2] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
[3] https://codeberg.org/gentoo/gentoo/src/commit/2ac58d82e4db15c305a039841e81a07d918529e5/sys-process/audit/files/audit-4.0.1-musl-basename.patch
[4] https://codeberg.org/gentoo/gentoo/commit/d1f53d5bae5657db01f6aac127f352e21ccf14eb