* [gentoo-commits] repo/gentoo:master commit in: dev-embedded/arduino-ctags/files/, dev-embedded/arduino-ctags/
@ 2024-11-05 0:03 Andreas K. Hüttel
0 siblings, 0 replies; only message in thread
From: Andreas K. Hüttel @ 2024-11-05 0:03 UTC (permalink / raw
To: gentoo-commits
commit: 6069bb281f0d021726c267276818b1c8763bc040
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 5 00:02:09 2024 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Nov 5 00:02:56 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6069bb28
dev-embedded/arduino-ctags: fix configure phase for modern c
Closes: https://bugs.gentoo.org/900022
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
...3-r1.ebuild => arduino-ctags-20161123-r2.ebuild} | 11 ++++++++++-
.../arduino-ctags-20161123-implicit-exit.patch | 21 +++++++++++++++++++++
.../files/arduino-ctags-20161123-implicit-int.patch | 12 ++++++++++++
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild b/dev-embedded/arduino-ctags/arduino-ctags-20161123-r2.ebuild
similarity index 79%
rename from dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild
rename to 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))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-05 0:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-05 0:03 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/arduino-ctags/files/, dev-embedded/arduino-ctags/ Andreas K. Hüttel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox