diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
commit | 17e5f1ea4a2e1c5664f96480ca46348d008e8711 (patch) | |
tree | 7166d1b58a582290a4ad23ff5882cca911b8035c /sys-fs/progsreiserfs/files | |
parent | a0ce545d52f231499bf9f3644493113d8af58ec9 (diff) |
gentoo auto-resync : 10:05:2024 - 00:01:13
Diffstat (limited to 'sys-fs/progsreiserfs/files')
-rw-r--r-- | sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-c99-configure.patch | 93 | ||||
-rw-r--r-- | sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-musl-getopt_internal-fix.patch | 36 |
2 files changed, 129 insertions, 0 deletions
diff --git a/sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-c99-configure.patch b/sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-c99-configure.patch new file mode 100644 index 000000000000..23fec252657b --- /dev/null +++ b/sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-c99-configure.patch @@ -0,0 +1,93 @@ +configure-only as cannot regenerate with new autotools :( +--- a/configure ++++ b/configure +@@ -7486,6 +7486,7 @@ else + #line 7486 "configure" + #include "confdefs.h" + #include <ctype.h> ++#include <stdlib.h> + #if ((' ' & 0x0FF) == 0x020) + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +@@ -9698,6 +9699,7 @@ else + #line 9698 "configure" + #include "confdefs.h" + #include <ctype.h> ++#include <stdlib.h> + #if ((' ' & 0x0FF) == 0x020) + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +--- a/configure ++++ b/configure +@@ -2279,6 +2279,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF + #line 2280 "configure" + #include "confdefs.h" ++#include <stdlib.h> + $ac_declaration + int + main () +@@ -3088,6 +3089,7 @@ else + #include "confdefs.h" + + #include <stdio.h> ++ #include <stdlib.h> + #include <sys/types.h> + #include <unistd.h> + +@@ -6541,6 +6543,7 @@ else + #endif + + #include <stdio.h> ++#include <stdlib.h> + + #ifdef RTLD_GLOBAL + # define LT_DLGLOBAL RTLD_GLOBAL +@@ -6638,6 +6641,7 @@ else + #endif + + #include <stdio.h> ++#include <stdlib.h> + + #ifdef RTLD_GLOBAL + # define LT_DLGLOBAL RTLD_GLOBAL +@@ -8165,6 +8169,7 @@ else + cat >conftest.$ac_ext <<_ACEOF + #line 8165 "configure" + #include "confdefs.h" ++#include <stdlib.h> + int + find_stack_direction () + { +@@ -8368,6 +8373,7 @@ $ac_includes_default + + #include <fcntl.h> + #include <sys/mman.h> ++#include <stdlib.h> + + #if !STDC_HEADERS && !HAVE_STDLIB_H + char *malloc (); +@@ -9957,6 +9963,7 @@ else + cat >conftest.$ac_ext <<_ACEOF + #line 9956 "configure" + #include "confdefs.h" ++#include <stdlib.h> + int + main () + { +@@ -10438,6 +10445,7 @@ else + cat >conftest.$ac_ext <<_ACEOF + #line 10437 "configure" + #include "confdefs.h" ++#include <stdlib.h> + int + find_stack_direction () + { +@@ -10745,6 +10753,7 @@ $ac_includes_default + + #include <fcntl.h> + #include <sys/mman.h> ++#include <stdlib.h> + + #if !STDC_HEADERS && !HAVE_STDLIB_H + char *malloc (); diff --git a/sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-musl-getopt_internal-fix.patch b/sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-musl-getopt_internal-fix.patch new file mode 100644 index 000000000000..06ba7e357a55 --- /dev/null +++ b/sys-fs/progsreiserfs/files/progsreiserfs-0.3.1_rc8-musl-getopt_internal-fix.patch @@ -0,0 +1,36 @@ +Bug: https://bugs.gentoo.org/898616 +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Tue, 13 Jun 2023 05:23:45 +0000 +Subject: [PATCH] getopt1.c: wrap the getopt_long and getopt_long_only + functions around include directive + +The header guard HAVE_GETOPT_LONG_ONLY can be used to check if the +functions are available or not, as the functions getopt_long and +getopt_long_only defined in getopt1.c uses the function _getopt_internal +which is glibc specific and cannot be used on other libc systems (for +example musl). +Hence we're wrapping those two functions with this include guard. + +Bug: https://bugs.gentoo.org/898616 +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- a/progsreiserfs/libmisc/getopt1.c ++++ b/progsreiserfs/libmisc/getopt1.c +@@ -63,6 +63,7 @@ + #define NULL 0 + #endif + ++#ifndef HAVE_GETOPT_LONG_ONLY + int + getopt_long(argc, argv, options, long_options, opt_index) + int argc; +@@ -89,6 +90,7 @@ int + { + return _getopt_internal(argc, argv, options, long_options, opt_index, 1); + } ++#endif + + #endif /* Not ELIDE_CODE. */ + +-- +2.41.0 + |