From d46a4b603f00c950de55b62c12c09dd4414652f3 Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Fri, 15 May 2020 00:08:28 +0200 Subject: [PATCH] dev-libs/cyberjack: add workaround for gcc10 Add workaround for GCC-10, by defining narrowing as warning like GCC-9 did. Upstream is informed, so hopefully there will be a proper fix in future. Bug: https://bugs.gentoo.org/722962 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Conrad Kostecki --- dev-libs/cyberjack/cyberjack-3.99.5_p13.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-libs/cyberjack/cyberjack-3.99.5_p13.ebuild b/dev-libs/cyberjack/cyberjack-3.99.5_p13.ebuild index edde80805904..97f2ad1beba3 100644 --- a/dev-libs/cyberjack/cyberjack-3.99.5_p13.ebuild +++ b/dev-libs/cyberjack/cyberjack-3.99.5_p13.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -7,7 +7,7 @@ MY_PN="pcsc-${PN}" MY_PV="${PV/_p/final.SP}" MY_P="${MY_PN}_${MY_PV}" -inherit autotools linux-info toolchain-funcs udev +inherit autotools flag-o-matic linux-info toolchain-funcs udev DESCRIPTION="REINER SCT cyberJack USB chipcard reader user space driver" HOMEPAGE="https://www.reiner-sct.de/" @@ -32,6 +32,12 @@ S="${WORKDIR}/${MY_P/_/-}" CONFIG_CHECK="~USB_SERIAL_CYBERJACK" +pkg_setup() { + # Add workaround for GCC-10, + # by defining narrowing as warning like GCC-9 did. + append-cxxflags -Wno-narrowing +} + src_prepare() { default -- 2.26.2