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 1196E158091 for ; Tue, 31 May 2022 08:03:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF29DE082B; Tue, 31 May 2022 08:03:54 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7338AE0828 for ; Tue, 31 May 2022 08:03:54 +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 61F78341855 for ; Tue, 31 May 2022 08:03:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD933458 for ; Tue, 31 May 2022 08:03:51 +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: <1653984220.1a02c18680d1802c32f51a003a36fcbb8c1e447d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/byaccj/, dev-java/byaccj/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/byaccj/byaccj-1.15-r3.ebuild dev-java/byaccj/files/byaccj-1.15-implicit-function-declaration.patch X-VCS-Directories: dev-java/byaccj/files/ dev-java/byaccj/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1a02c18680d1802c32f51a003a36fcbb8c1e447d X-VCS-Branch: master Date: Tue, 31 May 2022 08:03:51 +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: 6b69e1e1-fb53-447a-99fa-a08c834f14eb X-Archives-Hash: 82f93e4e09314137802ec8ea2958b462 commit: 1a02c18680d1802c32f51a003a36fcbb8c1e447d Author: Sam James gentoo org> AuthorDate: Tue May 31 07:58:18 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 31 08:03:40 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a02c186 dev-java/byaccj: fix implicit function declaration Signed-off-by: Sam James gentoo.org> dev-java/byaccj/byaccj-1.15-r3.ebuild | 31 ++++++++++++++++++++++ ...byaccj-1.15-implicit-function-declaration.patch | 15 +++++++++++ 2 files changed, 46 insertions(+) diff --git a/dev-java/byaccj/byaccj-1.15-r3.ebuild b/dev-java/byaccj/byaccj-1.15-r3.ebuild new file mode 100644 index 000000000000..4db1ab8bbc03 --- /dev/null +++ b/dev-java/byaccj/byaccj-1.15-r3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A java extension of BSD YACC-compatible parser generator" +HOMEPAGE="http://byaccj.sourceforge.net/" +MY_P="${PN}${PV}_src" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~ppc-macos ~x64-macos" + +S="${WORKDIR}/${PN}${PV}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.15-implicit-function-declaration.patch +) + +src_compile() { + cp "${FILESDIR}/Makefile" src/Makefile || die + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" -C src linux +} + +src_install() { + newbin src/yacc.linux "${PN}" + dodoc docs/ACKNOWLEDGEMEN +} diff --git a/dev-java/byaccj/files/byaccj-1.15-implicit-function-declaration.patch b/dev-java/byaccj/files/byaccj-1.15-implicit-function-declaration.patch new file mode 100644 index 000000000000..5f5bb58db13e --- /dev/null +++ b/dev-java/byaccj/files/byaccj-1.15-implicit-function-declaration.patch @@ -0,0 +1,15 @@ +main.c: In function ‘done’: +main.c:88:43: error: implicit declaration of function -Werror=implicit-function-declaration + 88 | if (action_file) { fclose(action_file); unlink(action_file_name); } + | ^~~~~~ +--- a/src/main.c ++++ b/src/main.c +@@ -2,6 +2,8 @@ + #include + #include + ++#include ++ + #ifndef __WIN32__ /*rwj -- make portable*/ + #include + #else