Skip to content

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 <pascal.jaeger@leimstift.de>
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 <pascal.jaeger@leimstift.de>
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 <arkamar@gentoo.org>
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 <arkamar@gentoo.org>
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 <arkamar@gentoo.org>
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
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 <arkamar@gentoo.org>
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 <arkamar@gentoo.org>
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 <arkamar@gentoo.org>
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