diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2020-11-29 00:08:57 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-11-29 00:08:57 +0100 |
commit | 312fbb322f44b3023a33e93f7c5a2eda32636a5c (patch) | |
tree | 6527b623fe8c45415c215417c72fae9e08bb0160 /net-misc/usbip/usbip-4.13-r1.ebuild | |
parent | media-tv/w_scan: port to EAPI 7 (diff) | |
download | gentoo-312fbb322f44b3023a33e93f7c5a2eda32636a5c.tar.gz gentoo-312fbb322f44b3023a33e93f7c5a2eda32636a5c.tar.bz2 gentoo-312fbb322f44b3023a33e93f7c5a2eda32636a5c.zip |
net-misc/usbip: fix build with gcc-10
* Unconditionally disable static-libs
* Thanks to Jeroen Roovers for submitting the patch
Closes: https://bugs.gentoo.org/707222
Package-Manager: Portage-3.0.9, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-misc/usbip/usbip-4.13-r1.ebuild')
-rw-r--r-- | net-misc/usbip/usbip-4.13-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net-misc/usbip/usbip-4.13-r1.ebuild b/net-misc/usbip/usbip-4.13-r1.ebuild new file mode 100644 index 000000000000..453bd87fa8fd --- /dev/null +++ b/net-misc/usbip/usbip-4.13-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +ETYPE="sources" +K_NOUSENAME=1 +inherit autotools kernel-2 + +DESCRIPTION="Userspace utilities for a general USB device sharing system over IP networks" +HOMEPAGE="https://www.kernel.org/" +SRC_URI="${KERNEL_URI}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tcpd" + +RDEPEND=" + >=dev-libs/glib-2.6 + sys-apps/hwids + >=sys-kernel/linux-headers-3.17 + virtual/libudev + tcpd? ( sys-apps/tcp-wrappers )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/linux-${PV}/tools/usb/${PN}" + +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) + +src_unpack() { + tar xJf "${DISTDIR}"/${A} linux-${PV}/tools/usb/${PN} || die +} + +src_prepare() { + default + # remove -Werror from build, bug #545398 + sed -i 's/-Werror[^ ]* //g' configure.ac || die + + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use tcpd || echo --without-tcp-wrappers) \ + --with-usbids-dir="${EPREFIX}"/usr/share/misc +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + elog "For using USB/IP you need to enable USBIP_VHCI_HCD in the client" + elog "machine's kernel config and USBIP_HOST on the server." +} |