mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
dev-util/gperf: Sync with Gentoo
It's from Gentoo commit ef010d11cc42876bedb1ac51427e1700ab5492e0.
This commit is contained in:
parent
e7ceb9d097
commit
5a5d253f7c
@ -0,0 +1,28 @@
|
||||
https://bugs.gentoo.org/869134
|
||||
|
||||
From 09844ce4ca3d5975469640cea9c5414d5c0baa44 Mon Sep 17 00:00:00 2001
|
||||
From: Bruno Haible <bruno@clisp.org>
|
||||
Date: Thu, 8 Sep 2022 04:45:03 +0200
|
||||
Subject: [PATCH] Fix a warning regarding strncmp.
|
||||
|
||||
Reported by Sam James in <https://savannah.gnu.org/bugs/?63031>.
|
||||
|
||||
* lib/getopt.c (strncmp): Declare with a prototype.
|
||||
--- a/lib/getopt.c
|
||||
+++ b/lib/getopt.c
|
||||
@@ -194,7 +194,6 @@ static char *posixly_correct;
|
||||
whose names are inconsistent. */
|
||||
|
||||
extern char *getenv ();
|
||||
-extern int strncmp ();
|
||||
|
||||
static char *
|
||||
my_index (const char *str, int chr)
|
||||
@@ -209,6 +208,7 @@ my_index (const char *str, int chr)
|
||||
}
|
||||
|
||||
extern int strcmp (const char *, const char *);
|
||||
+extern int strncmp (const char *, const char *, size_t);
|
||||
extern size_t strlen (const char *);
|
||||
|
||||
#endif /* not __GNU_LIBRARY__ */
|
24
sdk_container/src/third_party/portage-stable/dev-util/gperf/gperf-3.1-r1.ebuild
vendored
Normal file
24
sdk_container/src/third_party/portage-stable/dev-util/gperf/gperf-3.1-r1.ebuild
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="A perfect hash function generator"
|
||||
HOMEPAGE="https://www.gnu.org/software/gperf/"
|
||||
SRC_URI="mirror://gnu/gperf/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-strncmp-decl-mismatch.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "/^CPPFLAGS /s:=:+=:" \
|
||||
*/Makefile.in || die #444078
|
||||
|
||||
default
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -9,7 +9,7 @@ SRC_URI="mirror://gnu/gperf/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
|
Loading…
Reference in New Issue
Block a user