Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes applied in Gentoo as patches-1 #4

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

arkamar
Copy link

@arkamar arkamar commented Nov 6, 2024

This PR moves files to the root of the repo as suggested in #1, rebases #2 to the moved files, applies some other changes used in Gentoo but it resolves the issue from PR #3 differently, plus few more changes necessary for Gentoo.

arkamar and others added 10 commits November 5, 2024 17:37
Clang 16 will not allow implicit ints, implicit function declarations etc.
by default. This patch overhauls to whole package source to make it build
with clang16. It also gets rid of old K&R style function declaration.

Bug: https://bugs.gentoo.org/861830
Bug: https://bugs.gentoo.org/870940
Signed-off-by: Pascal Jäger <[email protected]>
Upstream-PR: arineng#2
Prevent build to directly call ar and use a variable instead.

Bug: https://bugs.gentoo.org/725194
Signed-off-by: Pascal Jäger <[email protected]>
The __sighandler_t is glibc thing. It is not needed to explicitly retype
then if all signal handlers will return void, which is expected callback
return type in Linux or BSDs.

Bug: https://bugs.gentoo.org/924504
Signed-off-by: Petr Vaněk <[email protected]>
Otherwise it could end up badly or even ugly, see the linked bug.

Bug: https://bugs.gentoo.org/927273
Signed-off-by: Petr Vaněk <[email protected]>
Glibc-2.1 is ancient version (1999-02-03), we don't have to care about
older versions anymore. The check removal makes it easier for musl libc.

Bug: https://bugs.gentoo.org/715310
Signed-off-by: Petr Vaněk <[email protected]>
bool is a keyword since C23, modern GCC emits errors when it is used as
an argument name.

Bug: https://bugs.gentoo.org/943795
Signed-off-by: Petr Vaněk <[email protected]>
This commit updates the usage of the destroy callback function to use
the new dl_destroy_fn typedef. Explicit casting to dl_destroy_fn is
added in calls to dl_list_default to address type mismatches, which are
problematic with modern GCC.

Bug: https://bugs.gentoo.org/943795
Signed-off-by: Petr Vaněk <[email protected]>
Explicitly include stdlib.h and string.h to provide a proper declaration
for malloc and strncpy.

Bug: https://bugs.gentoo.org/943795
Signed-off-by: Petr Vaněk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants