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 4FCEE1382C5 for ; Thu, 26 Nov 2020 18:37:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7301EE0870; Thu, 26 Nov 2020 18:37:01 +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 5897CE0870 for ; Thu, 26 Nov 2020 18:37:01 +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 3FAFE33DDA5 for ; Thu, 26 Nov 2020 18:37:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 738F342F for ; Thu, 26 Nov 2020 18:36:58 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1606415797.129f4ab9f8571c651937c46ba7bd4c82d6d052a2.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libowfat/, dev-libs/libowfat/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libowfat/files/libowfat-0.32-gcc10.patch dev-libs/libowfat/libowfat-0.32-r2.ebuild X-VCS-Directories: dev-libs/libowfat/files/ dev-libs/libowfat/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 129f4ab9f8571c651937c46ba7bd4c82d6d052a2 X-VCS-Branch: master Date: Thu, 26 Nov 2020 18:36:58 +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: 0f31dca9-094a-4c4e-8a38-0c53fa1e7dfd X-Archives-Hash: f2600737422341950591059516044e3c commit: 129f4ab9f8571c651937c46ba7bd4c82d6d052a2 Author: Sebastian Pipping gentoo org> AuthorDate: Thu Nov 26 18:33:02 2020 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Thu Nov 26 18:36:37 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=129f4ab9 dev-libs/libowfat: Fix compile with GCC 10 for www-servers/gatling Closes: https://bugs.gentoo.org/756847 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.0, Repoman-2.3.23 dev-libs/libowfat/files/libowfat-0.32-gcc10.patch | 25 ++++++++++++ dev-libs/libowfat/libowfat-0.32-r2.ebuild | 49 +++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-libs/libowfat/files/libowfat-0.32-gcc10.patch b/dev-libs/libowfat/files/libowfat-0.32-gcc10.patch new file mode 100644 index 00000000000..3f292430431 --- /dev/null +++ b/dev-libs/libowfat/files/libowfat-0.32-gcc10.patch @@ -0,0 +1,25 @@ +From 67729f54c2e7a24b2bebfa23b75afe607c09a67a Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping +Date: Thu, 26 Nov 2020 19:28:03 +0100 +Subject: [PATCH] Fix build with -fno-common or GCC 10 + +--- + io_internal.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/io_internal.h b/io_internal.h +index 6d37c11..3e378d9 100644 +--- a/io_internal.h ++++ b/io_internal.h +@@ -83,7 +83,7 @@ my_extern array io_pollfds; + my_extern long first_readable; + my_extern long first_writeable; + +-my_extern long first_deferred; ++extern long first_deferred; + + my_extern enum __io_waitmode { + UNDECIDED, +-- +2.27.0 + diff --git a/dev-libs/libowfat/libowfat-0.32-r2.ebuild b/dev-libs/libowfat/libowfat-0.32-r2.ebuild new file mode 100644 index 00000000000..6e711f600ef --- /dev/null +++ b/dev-libs/libowfat/libowfat-0.32-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="reimplement libdjb - excellent libraries from Dan Bernstein" +SRC_URI="https://www.fefe.de/${PN}/${P}.tar.xz" +HOMEPAGE="https://www.fefe.de/libowfat/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~sparc ~x86" +IUSE="diet" + +RDEPEND="diet? ( >=dev-libs/dietlibc-0.33_pre20090721 )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +PATCHES=( + "${FILESDIR}"/${P}-gcc10.patch +) + +pkg_setup() { + # Required for mult/umult64.c to be usable + append-flags -fomit-frame-pointer +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CFLAGS="-I. ${CFLAGS}" \ + DIET="${EPREFIX}/usr/bin/diet -Os" \ + prefix="${EPREFIX}/usr" \ + INCLUDEDIR="${EPREFIX}/usr/include" \ + $( use diet || echo 'DIET=' ) +} + +src_install() { + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + MAN3DIR="${EPREFIX}/usr/share/man/man3" \ + INCLUDEDIR="${EPREFIX}/usr/include" \ + install + + mv "${ED}"/usr/share/man/man3/{buffer.3,owfat-buffer.3} || die +}