From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DDF0F158094 for ; Thu, 8 Sep 2022 03:17:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04E02E076B; Thu, 8 Sep 2022 03:17:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD63FE076B for ; Thu, 8 Sep 2022 03:17:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B13A7340DA5 for ; Thu, 8 Sep 2022 03:17:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 514ED526 for ; Thu, 8 Sep 2022 03:17:30 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1662607039.c9c6ed9355576ee71fee1988a08ec9258162a1d4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/gperf/files/, dev-util/gperf/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch dev-util/gperf/gperf-3.1-r1.ebuild X-VCS-Directories: dev-util/gperf/files/ dev-util/gperf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c9c6ed9355576ee71fee1988a08ec9258162a1d4 X-VCS-Branch: master Date: Thu, 8 Sep 2022 03:17:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c006661b-d684-4fb4-9aef-fe735ef47235 X-Archives-Hash: a32a40c79109368bd4a47fe322fce2e5 commit: c9c6ed9355576ee71fee1988a08ec9258162a1d4 Author: Sam James gentoo org> AuthorDate: Thu Sep 8 03:17:19 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Sep 8 03:17:19 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9c6ed93 dev-util/gperf: fix strncmp declaration Closes: https://bugs.gentoo.org/869134 Signed-off-by: Sam James gentoo.org> .../files/gperf-3.1-strncmp-decl-mismatch.patch | 28 ++++++++++++++++++++++ dev-util/gperf/gperf-3.1-r1.ebuild | 24 +++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch b/dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch new file mode 100644 index 000000000000..67380fb0279c --- /dev/null +++ b/dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/869134 + +From 09844ce4ca3d5975469640cea9c5414d5c0baa44 Mon Sep 17 00:00:00 2001 +From: Bruno Haible +Date: Thu, 8 Sep 2022 04:45:03 +0200 +Subject: [PATCH] Fix a warning regarding strncmp. + +Reported by Sam James in . + +* 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__ */ diff --git a/dev-util/gperf/gperf-3.1-r1.ebuild b/dev-util/gperf/gperf-3.1-r1.ebuild new file mode 100644 index 000000000000..bdabce4d841e --- /dev/null +++ b/dev-util/gperf/gperf-3.1-r1.ebuild @@ -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 +}