diff options
author | Sam James <sam@gentoo.org> | 2021-12-23 00:14:46 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-23 00:15:23 +0000 |
commit | 612c3d433d5cc3d78ca7f48fb9e134eaefa38b7b (patch) | |
tree | f1a0bdfa51ecb8f59286c40d09eee9daa0d7fae2 /dev-embedded | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.4.168 (diff) | |
download | gentoo-612c3d433d5cc3d78ca7f48fb9e134eaefa38b7b.tar.gz gentoo-612c3d433d5cc3d78ca7f48fb9e134eaefa38b7b.tar.bz2 gentoo-612c3d433d5cc3d78ca7f48fb9e134eaefa38b7b.zip |
dev-embedded/arduino-ctags: update EAPI 6 -> 8, fix build
Bug: https://bugs.gentoo.org/828550
Thanks-to: <s.zharkoff@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild | 32 | ||||
-rw-r--r-- | dev-embedded/arduino-ctags/files/arduino-ctags-20161123-gcc-unused-attribute.patch | 225 |
2 files changed, 257 insertions, 0 deletions
diff --git a/dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild b/dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild new file mode 100644 index 000000000000..64676af3c7c1 --- /dev/null +++ b/dev-embedded/arduino-ctags/arduino-ctags-20161123-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_COMMIT_HASH="abc8fca7499f44c725122881cd380a88c37abe0e" +DESCRIPTION="Arduino private fork of dev-util/ctags" +HOMEPAGE="https://github.com/arduino/ctags" +SRC_URI="https://github.com/arduino/ctags/archive/${COMMITHASH}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/ctags-${MY_COMMIT_HASH}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PN}-20161123-gcc-unused-attribute.patch +) + +src_configure() { + econf \ + --disable-readlib \ + --disable-etags \ + --enable-tmpdir="${EPREFIX}"/tmp +} + +src_install() { + # This package compiles into a "ctags" executable, but don't want to clash into + # actually legitimate ctags implementations. + mv ctags arduino-ctags + dobin arduino-ctags +} diff --git a/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-gcc-unused-attribute.patch b/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-gcc-unused-attribute.patch new file mode 100644 index 000000000000..e725e1193685 --- /dev/null +++ b/dev-embedded/arduino-ctags/files/arduino-ctags-20161123-gcc-unused-attribute.patch @@ -0,0 +1,225 @@ +https://bugs.gentoo.org/828550 + +Thanks-to: <s.zharkoff@gmail.com> +--- a/eiffel.c ++++ b/eiffel.c +@@ -807,7 +807,7 @@ + + static boolean parseType (tokenInfo *const token); + +-static void parseGeneric (tokenInfo *const token, boolean declaration __unused__) ++static void parseGeneric (tokenInfo *const token, boolean declaration __arduino_unused__) + { + unsigned int depth = 0; + #ifdef TYPE_REFERENCE_TOOL +--- a/general.h ++++ b/general.h +@@ -57,7 +57,7 @@ + * to prevent warnings about unused variables. + */ + #if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) && !defined (__GNUG__) +-# define __unused__ __attribute__((unused)) ++# define __arduino_unused__ __attribute__ ((__unused__)) + # define __printf__(s,f) __attribute__((format (printf, s, f))) + #else + # define __unused__ +--- a/lregex.c ++++ b/lregex.c +@@ -538,11 +538,11 @@ + #endif /* HAVE_REGEX */ + + extern void addTagRegex ( +- const langType language __unused__, +- const char* const regex __unused__, +- const char* const name __unused__, +- const char* const kinds __unused__, +- const char* const flags __unused__) ++ const langType language __arduino_unused__, ++ const char* const regex __arduino_unused__, ++ const char* const name __arduino_unused__, ++ const char* const kinds __arduino_unused__, ++ const char* const flags __arduino_unused__) + { + #ifdef HAVE_REGEX + Assert (regex != NULL); +@@ -564,10 +564,10 @@ + } + + extern void addCallbackRegex ( +- const langType language __unused__, +- const char* const regex __unused__, +- const char* const flags __unused__, +- const regexCallback callback __unused__) ++ const langType language __arduino_unused__, ++ const char* const regex __arduino_unused__, ++ const char* const flags __arduino_unused__, ++ const regexCallback callback __arduino_unused__) + { + #ifdef HAVE_REGEX + Assert (regex != NULL); +@@ -581,7 +581,7 @@ + } + + extern void addLanguageRegex ( +- const langType language __unused__, const char* const regex __unused__) ++ const langType language __arduino_unused__, const char* const regex __arduino_unused__) + { + #ifdef HAVE_REGEX + if (! regexBroken) +@@ -602,7 +602,7 @@ + */ + + extern boolean processRegexOption (const char *const option, +- const char *const parameter __unused__) ++ const char *const parameter __arduino_unused__) + { + boolean handled = FALSE; + const char* const dash = strchr (option, '-'); +@@ -624,7 +624,7 @@ + return handled; + } + +-extern void disableRegexKinds (const langType language __unused__) ++extern void disableRegexKinds (const langType language __arduino_unused__) + { + #ifdef HAVE_REGEX + if (language <= SetUpper && Sets [language].count > 0) +@@ -639,8 +639,8 @@ + } + + extern boolean enableRegexKind ( +- const langType language __unused__, +- const int kind __unused__, const boolean mode __unused__) ++ const langType language __arduino_unused__, ++ const int kind __arduino_unused__, const boolean mode __arduino_unused__) + { + boolean result = FALSE; + #ifdef HAVE_REGEX +@@ -660,7 +660,7 @@ + return result; + } + +-extern void printRegexKinds (const langType language __unused__, boolean indent __unused__) ++extern void printRegexKinds (const langType language __arduino_unused__, boolean indent __arduino_unused__) + { + #ifdef HAVE_REGEX + if (language <= SetUpper && Sets [language].count > 0) +--- a/lua.c ++++ b/lua.c +@@ -37,7 +37,7 @@ + */ + + /* for debugging purposes */ +-static void __unused__ print_string (char *p, char *q) ++static void __arduino_unused__ print_string (char *p, char *q) + { + for ( ; p != q; p++) + fprintf (errout, "%c", *p); +--- a/main.c ++++ b/main.c +@@ -522,7 +522,7 @@ + * Start up code + */ + +-extern int main (int __unused__ argc, char **argv) ++extern int main (int __arduino_unused__ argc, char **argv) + { + cookedArgs *args; + #ifdef VMS +--- a/options.c ++++ b/options.c +@@ -731,7 +731,7 @@ + } + + static void processExcludeOption ( +- const char *const option __unused__, const char *const parameter) ++ const char *const option __arduino_unused__, const char *const parameter) + { + const char *const fileName = parameter + 1; + if (parameter [0] == '\0') +@@ -869,7 +869,7 @@ + } + + static void processFilterTerminatorOption ( +- const char *const option __unused__, const char *const parameter) ++ const char *const option __arduino_unused__, const char *const parameter) + { + freeString (&Option.filterTerminator); + Option.filterTerminator = stringCopy (parameter); +@@ -932,8 +932,8 @@ + } + + static void processHelpOption ( +- const char *const option __unused__, +- const char *const parameter __unused__) ++ const char *const option __arduino_unused__, ++ const char *const parameter __arduino_unused__) + { + printProgramIdentification (); + putchar ('\n'); +@@ -1141,8 +1141,8 @@ + } + + static void processLicenseOption ( +- const char *const option __unused__, +- const char *const parameter __unused__) ++ const char *const option __arduino_unused__, ++ const char *const parameter __arduino_unused__) + { + printProgramIdentification (); + puts (""); +@@ -1168,8 +1168,8 @@ + } + + static void processListMapsOption ( +- const char *const __unused__ option, +- const char *const __unused__ parameter) ++ const char *const __arduino_unused__ option, ++ const char *const __arduino_unused__ parameter) + { + if (parameter [0] == '\0' || strcasecmp (parameter, "all") == 0) + printLanguageMaps (LANG_AUTO); +@@ -1185,8 +1185,8 @@ + } + + static void processListLanguagesOption ( +- const char *const option __unused__, +- const char *const parameter __unused__) ++ const char *const option __arduino_unused__, ++ const char *const parameter __arduino_unused__) + { + printLanguageList (); + exit (0); +@@ -1360,8 +1360,8 @@ + } + + static void processVersionOption ( +- const char *const option __unused__, +- const char *const parameter __unused__) ++ const char *const option __arduino_unused__, ++ const char *const parameter __arduino_unused__) + { + printProgramIdentification (); + exit (0); +--- a/parse.c ++++ b/parse.c +@@ -376,7 +376,7 @@ + */ + + extern void processLanguageDefineOption ( +- const char *const option, const char *const parameter __unused__) ++ const char *const option, const char *const parameter __arduino_unused__) + { + #ifdef HAVE_REGEX + if (parameter [0] == '\0') +--- a/python.c ++++ b/python.c +@@ -135,7 +135,7 @@ + * extract all relevant information and create a tag. + */ + static void makeFunctionTag (vString *const function, +- vString *const parent, int is_class_parent, const char *arglist __unused__) ++ vString *const parent, int is_class_parent, const char *arglist __arduino_unused__) + { + tagEntryInfo tag; + initTagEntry (&tag, vStringValue (function)); |