diff --git a/alpine-qsort.patch b/alpine-qsort.patch new file mode 100644 index 0000000..f75e008 --- /dev/null +++ b/alpine-qsort.patch @@ -0,0 +1,11 @@ +--- configure.ac.orig ++++ configure.ac +@@ -1964,7 +1964,7 @@ ac_cv_func_qsort_argtype, + #endif + + extern void *base; +-extern sortf(const void *, const void *); ++extern int sortf(const void *, const void *); + int sortf(a, b) + const void *a; + const void *b; { return 0; } diff --git a/alpine.changes b/alpine.changes index f6ac07b..5f322b9 100644 --- a/alpine.changes +++ b/alpine.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 21 13:25:15 UTC 2024 - Reinhard Max + +- boo#1224533: Add alpine-qsort.patch to fix build with gcc 14. + ------------------------------------------------------------------- Tue Feb 20 10:39:56 UTC 2024 - Dominique Leuenberger diff --git a/alpine.spec b/alpine.spec index 74969fd..fd4fc9f 100644 --- a/alpine.spec +++ b/alpine.spec @@ -1,7 +1,7 @@ # # spec file for package alpine # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -44,6 +44,7 @@ Patch10: pico-fix-spurious-undef-warnings.diff Patch20: pine-expression-warnings.diff Patch60: signal-and-panic-improvements.diff Patch61: return-values.diff +Patch62: alpine-qsort.patch # # Eduardo Chappa's patches. # http://patches.freeiz.com/alpine/ @@ -147,6 +148,7 @@ fi %patch -P 20 -p1 %patch -P 60 -p1 %patch -P 61 -p1 +%patch -P 62 %endif %build