diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-11-05 01:02:09 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-11-05 01:02:56 +0100 |
commit | 6069bb281f0d021726c267276818b1c8763bc040 (patch) | |
tree | 1a1797ad0735ef71ffb26ecc7ee8ec148b37e5cc /dev-embedded | |
parent | sys-apps/cpuid: fix patch (diff) | |
download | gentoo-6069bb281f0d021726c267276818b1c8763bc040.tar.gz gentoo-6069bb281f0d021726c267276818b1c8763bc040.tar.bz2 gentoo-6069bb281f0d021726c267276818b1c8763bc040.zip |
dev-embedded/arduino-ctags: fix configure phase for modern c
Closes: https://bugs.gentoo.org/900022
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/arduino-ctags/arduino-ctags-20161123-r2.ebuild (renamed from dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild) | 11 | ||||
-rw-r--r-- | dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-exit.patch | 21 | ||||
-rw-r--r-- | dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-int.patch | 12 |
3 files changed, 43 insertions, 1 deletions
diff --git a/dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild b/dev-embedded/arduino-ctags/arduino-ctags-20161123-r2.ebuild index 116436b6fd42..77e78545e384 100644 --- a/dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild +++ b/dev-embedded/arduino-ctags/arduino-ctags-20161123-r2.ebuild @@ -1,8 +1,10 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 +inherit autotools + MY_COMMIT_HASH="abc8fca7499f44c725122881cd380a88c37abe0e" DESCRIPTION="Arduino private fork of dev-util/ctags" HOMEPAGE="https://github.com/arduino/ctags" @@ -15,8 +17,15 @@ KEYWORDS="amd64 x86" PATCHES=( "${FILESDIR}"/${PN}-20161123-gcc-unused-attribute.patch + "${FILESDIR}"/${PN}-20161123-implicit-exit.patch + "${FILESDIR}"/${PN}-20161123-implicit-int.patch ) +src_prepare() { + default + eautoreconf +} + src_configure() { econf \ --disable-readlib \ diff --git a/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-exit.patch b/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-exit.patch new file mode 100644 index 000000000000..c14555ca503b --- /dev/null +++ b/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-exit.patch @@ -0,0 +1,21 @@ +diff '--color=auto' -ruN ctags-abc8fca7499f44c725122881cd380a88c37abe0e.orig/configure.ac ctags-abc8fca7499f44c725122881cd380a88c37abe0e/configure.ac +--- ctags-abc8fca7499f44c725122881cd380a88c37abe0e.orig/configure.ac 2016-11-23 10:52:52.000000000 +0100 ++++ ctags-abc8fca7499f44c725122881cd380a88c37abe0e/configure.ac 2024-11-05 00:53:01.050413525 +0100 +@@ -369,7 +369,8 @@ + AC_EXEEXT + + AC_MSG_CHECKING(if struct stat contains st_ino) +-AC_TRY_COMPILE([#include <sys/stat.h>], [ ++AC_TRY_COMPILE([#include <sys/stat.h> ++#include <stdlib.h>], [ + struct stat st; + stat(".", &st); + if (st.st_ino > 0) +@@ -449,6 +450,7 @@ + AC_TRY_RUN([ + #include <sys/types.h> + #include <regex.h> ++#include <stdlib.h> + main() { + regex_t patbuf; + exit (regcomp (&patbuf, "/hello/", 0) != 0); diff --git a/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-int.patch b/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-int.patch new file mode 100644 index 000000000000..5331df9db0d0 --- /dev/null +++ b/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-implicit-int.patch @@ -0,0 +1,12 @@ +diff '--color=auto' -ruN ctags-abc8fca7499f44c725122881cd380a88c37abe0e.orig/configure.ac ctags-abc8fca7499f44c725122881cd380a88c37abe0e/configure.ac +--- ctags-abc8fca7499f44c725122881cd380a88c37abe0e.orig/configure.ac 2024-11-05 00:55:57.281788938 +0100 ++++ ctags-abc8fca7499f44c725122881cd380a88c37abe0e/configure.ac 2024-11-05 00:59:21.852536947 +0100 +@@ -451,7 +451,7 @@ + #include <sys/types.h> + #include <regex.h> + #include <stdlib.h> +-main() { ++int main() { + regex_t patbuf; + exit (regcomp (&patbuf, "/hello/", 0) != 0); + }],regcomp_works=yes,regcomp_works=no,AC_DEFINE(CHECK_REGCOMP)) |