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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C9079138350 for ; Fri, 28 Feb 2020 00:30:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1F57E08FA; Fri, 28 Feb 2020 00:30:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A80B4E08FA for ; Fri, 28 Feb 2020 00:30:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B906034F3FE for ; Fri, 28 Feb 2020 00:30:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 249F4101 for ; Fri, 28 Feb 2020 00:30:44 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1582849827.feae48e6ea13a13ca3e47dd45d6d4117e33de37d.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/psiconv/files/, app-text/psiconv/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/psiconv/files/psiconv-0.8.3-Wimplicit-function-declaration.patch app-text/psiconv/files/psiconv-0.8.3-gcc10-fno-common.patch app-text/psiconv/psiconv-0.8.3-r1.ebuild X-VCS-Directories: app-text/psiconv/ app-text/psiconv/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: feae48e6ea13a13ca3e47dd45d6d4117e33de37d X-VCS-Branch: master Date: Fri, 28 Feb 2020 00:30:44 +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: 9c48d476-7aad-44eb-a18a-24feb197c803 X-Archives-Hash: 89a66e5059287c1caa2f106f2e6e22d6 commit: feae48e6ea13a13ca3e47dd45d6d4117e33de37d Author: David Seifert gentoo org> AuthorDate: Fri Feb 28 00:30:27 2020 +0000 Commit: David Seifert gentoo org> CommitDate: Fri Feb 28 00:30:27 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feae48e6 app-text/psiconv: Port to EAPI 7 * Fix GCC 10 / -fno-common * Fix missing headers causing implicit declarations Closes: https://bugs.gentoo.org/707134 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: David Seifert gentoo.org> ...conv-0.8.3-Wimplicit-function-declaration.patch | 92 ++++++++++++++++++++++ .../files/psiconv-0.8.3-gcc10-fno-common.patch | 21 +++++ app-text/psiconv/psiconv-0.8.3-r1.ebuild | 21 ++--- 3 files changed, 125 insertions(+), 9 deletions(-) diff --git a/app-text/psiconv/files/psiconv-0.8.3-Wimplicit-function-declaration.patch b/app-text/psiconv/files/psiconv-0.8.3-Wimplicit-function-declaration.patch new file mode 100644 index 00000000000..9d01c2d87de --- /dev/null +++ b/app-text/psiconv/files/psiconv-0.8.3-Wimplicit-function-declaration.patch @@ -0,0 +1,92 @@ +--- a/extra/checkuid.c ++++ b/extra/checkuid.c +@@ -19,6 +19,7 @@ + + + #include ++#include + + unsigned long uid1[32] = { /* bit 0 */ 0x000045A0, + /* bit 1 */ 0x00008B40, +--- a/extra/empty.c ++++ b/extra/empty.c +@@ -20,6 +20,7 @@ + #include + + #include ++#include + + void help(void) + { +--- a/extra/rewrite.c ++++ b/extra/rewrite.c +@@ -21,6 +21,7 @@ + #include + + #include ++#include + + int main(int argc, char *argv[]) + { +--- a/lib/psiconv/error.c ++++ b/lib/psiconv/error.c +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + + #include "error.h" + +--- a/lib/psiconv/generate_layout.c ++++ b/lib/psiconv/generate_layout.c +@@ -23,6 +23,8 @@ + #include "generate_routines.h" + #include "error.h" + ++#include ++ + #ifdef DMALLOC + #include + #endif +--- a/lib/psiconv/generate_simple.c ++++ b/lib/psiconv/generate_simple.c +@@ -23,6 +23,8 @@ + #include "generate_routines.h" + #include "error.h" + ++#include ++ + #ifdef DMALLOC + #include + #endif +--- a/lib/psiconv/list.c ++++ b/lib/psiconv/list.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + #include "general.h" + #include "list.h" + #include "error.h" +--- a/lib/psiconv/misc.c ++++ b/lib/psiconv/misc.c +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + #include "common.h" + + #ifdef DMALLOC +--- a/lib/psiconv/parse_driver.c ++++ b/lib/psiconv/parse_driver.c +@@ -21,6 +21,7 @@ + #include "compat.h" + + #include ++#include + + #include "parse.h" + #include "parse_routines.h" diff --git a/app-text/psiconv/files/psiconv-0.8.3-gcc10-fno-common.patch b/app-text/psiconv/files/psiconv-0.8.3-gcc10-fno-common.patch new file mode 100644 index 00000000000..4c21a6ed3d4 --- /dev/null +++ b/app-text/psiconv/files/psiconv-0.8.3-gcc10-fno-common.patch @@ -0,0 +1,21 @@ +--- a/program/psiconv/psiconv.c ++++ b/program/psiconv/psiconv.c +@@ -41,6 +41,8 @@ + #include "gen.h" + #include "psiconv.h" + ++psiconv_list fileformat_list; ++ + static void print_help(void); + static void print_version(void); + static void strtoupper(char *str); +--- a/program/psiconv/psiconv.h ++++ b/program/psiconv/psiconv.h +@@ -31,6 +31,6 @@ + output_function *output; + } *psiconv_fileformat; + +-psiconv_list fileformat_list; /* of struct psiconv_fileformat */ ++extern psiconv_list fileformat_list; /* of struct psiconv_fileformat */ + + #endif /* PSICONV_GEN_H */ diff --git a/app-text/psiconv/psiconv-0.8.3-r1.ebuild b/app-text/psiconv/psiconv-0.8.3-r1.ebuild index 004004aee64..84ee5132d4f 100644 --- a/app-text/psiconv/psiconv-0.8.3-r1.ebuild +++ b/app-text/psiconv/psiconv-0.8.3-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 inherit toolchain-funcs @@ -9,20 +9,23 @@ DESCRIPTION="An interpreter for Psion 5(MX) file formats" HOMEPAGE="http://huizen.dds.nl/~frodol/psiconv" SRC_URI="http://huizen.dds.nl/~frodol/${PN}/${P}.tar.gz" -SLOT="0" LICENSE="GPL-2" -IUSE="static-libs" +SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86" -src_prepare() { - tc-export AR -} +PATCHES=( + "${FILESDIR}"/${P}-gcc10-fno-common.patch + "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch +) src_configure() { - econf $(use_enable static-libs static) + tc-export AR + econf --disable-static } src_install() { default - use static-libs || rm -fr "${D}"usr/lib*/lib${PN}.la + + # no static archives + find "${D}" -name '*.la' -delete || die }