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 <conikost@gentoo.org>
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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/"
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