diff options
author | Sam James <sam@gentoo.org> | 2023-02-13 22:43:33 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-13 22:44:50 +0000 |
commit | eccbaa58e0c21cc6df13f6028244158f144145a0 (patch) | |
tree | 9557fdbb214efdf02b04512bf4ce4fefa763976b /media-libs/id3lib/files/id3lib-3.8.3-configure-clang.patch | |
parent | net-mail/cyrus-imapd: drop .la files, fix trivial bashism in init script (diff) | |
download | gentoo-eccbaa58e0c21cc6df13f6028244158f144145a0.tar.gz gentoo-eccbaa58e0c21cc6df13f6028244158f144145a0.tar.bz2 gentoo-eccbaa58e0c21cc6df13f6028244158f144145a0.zip |
media-libs/id3lib: fix build with Clang, EAPI 8
Thanks to Jannik2099 for spotting the problem in configure.
Closes: https://bugs.gentoo.org/871087
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/id3lib/files/id3lib-3.8.3-configure-clang.patch')
-rw-r--r-- | media-libs/id3lib/files/id3lib-3.8.3-configure-clang.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/media-libs/id3lib/files/id3lib-3.8.3-configure-clang.patch b/media-libs/id3lib/files/id3lib-3.8.3-configure-clang.patch new file mode 100644 index 000000000000..730a00b62dbf --- /dev/null +++ b/media-libs/id3lib/files/id3lib-3.8.3-configure-clang.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/871087 +--- a/m4/id3_cxx.m4 ++++ b/m4/id3_cxx.m4 +@@ -81,7 +81,7 @@ AC_DEFUN(ID3_CXX_PORTABILITY,[ + + dnl Check whether we have bool + AC_MSG_CHECKING(whether C++ has bool) +- AC_TRY_RUN([main() { bool b1=true; bool b2=false; }], ++ AC_TRY_RUN([int main() { bool b1=true; bool b2=false; }], + [ AC_MSG_RESULT(yes) ], + [ AC_MSG_RESULT(no) + AC_DEFINE(CXX_HAS_NO_BOOL) ], +@@ -90,7 +90,7 @@ AC_DEFUN(ID3_CXX_PORTABILITY,[ + + dnl Test whether C++ has buggy for-loops + AC_MSG_CHECKING(whether C++ has correct scoping in for-loops) +- AC_TRY_COMPILE([#include <iostream.h>], [ ++ AC_TRY_COMPILE([#include <iostream>], [ + for (int i=0;i<10;i++) { } + for (int i=0;i<10;i++) { } + ], [ AC_MSG_RESULT(yes) ], |