diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
commit | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch) | |
tree | 25413d1cb3a0cbfe36029db32398c0f333609215 /net-misc/usbip | |
parent | 9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff) |
gentoo resync : 14.12.2020
Diffstat (limited to 'net-misc/usbip')
-rw-r--r-- | net-misc/usbip/Manifest | 5 | ||||
-rw-r--r-- | net-misc/usbip/files/usbip-4.13-fno-common.patch | 44 | ||||
-rw-r--r-- | net-misc/usbip/usbip-3.19.ebuild | 52 | ||||
-rw-r--r-- | net-misc/usbip/usbip-4.13-r1.ebuild (renamed from net-misc/usbip/usbip-4.13.ebuild) | 22 |
4 files changed, 57 insertions, 66 deletions
diff --git a/net-misc/usbip/Manifest b/net-misc/usbip/Manifest index ca2384ead6b2..bcaeecc39ca7 100644 --- a/net-misc/usbip/Manifest +++ b/net-misc/usbip/Manifest @@ -1,5 +1,4 @@ -DIST linux-3.19.tar.xz 81688872 BLAKE2B 0b89e34e62d6fe42f43144fe4f3070df2d9a23831b231918946c1f19a1a4b881095892635983ac7afad902f366b0c6001e46751ed2c96890ecbe9d4056154be6 SHA512 d77bfd9b1cd524ac50bb5a93808955be2f9bcd2ec0badcc8aa6a63401e212f891fd14bd27c6441174ba5d70ab875b9e76c7ebc95f046e31aff1d40790d30351c +AUX usbip-4.13-fno-common.patch 1027 BLAKE2B 20b8a310ee6952b9a2f9496a58b57362a83c578dfe01c772b344afd7af4c5b469a415d2a7104629a9525499b0e933fd4fe6881620a950060247fb8e9f2dd9c12 SHA512 9d11fcb07f4bef9494cfe52160a2c4b6f7f88e4a9488afd39f77bcbaf5b5d3e07b8aa19fd7387ca37adb7e2637167c71b7389ff4cdd3acf3b4f0071d3271e60a DIST linux-4.13.tar.xz 100579888 BLAKE2B 2f8be07d403071b097b019c43fa332bc7d4805dee633a6fdffe5a99d5475015ca9e4881e7f4cbfd36f8c451bacf423436364ea3d9f25b8723a29a178dededb2b SHA512 a557c2f0303ae618910b7106ff63d9978afddf470f03cb72aa748213e099a0ecd5f3119aea6cbd7b61df30ca6ef3ec57044d524b7babbaabddf8b08b8bafa7d2 -EBUILD usbip-3.19.ebuild 1177 BLAKE2B a45830a8824c875cf6eef765e243ec49a05ff9869dbcb534d8267ba7de0cc5c037fab847e720717a21bdf5f56dfab0295aafe080718bea174c1d05ae220e561d SHA512 46f5a579e8e3051aee38f5d89803bb1d34de18f218b3ed404a4ce0018b6ea73988614a55f2d3c54f0095d4b7bac131580868d8a13b40759fb04346c80c6cf2fc -EBUILD usbip-4.13.ebuild 1222 BLAKE2B 6b66773b165741225f41a7df753fe93e7a83090254c16a779fcbfea4d235beef6e20157f14c07df3e8de1710ff411891962c078a29be6ef7876bf1d8dc273fb1 SHA512 023a798189dc15bd58e962c0869003a650ee9cebe9c43b934c3c517aa5072771e4369fbcd0242ffe21b139a1f262b6505461a659397999db1d7a6cef8166a306 +EBUILD usbip-4.13-r1.ebuild 1230 BLAKE2B af3b55afea8eefbc2c34b6a9231f2a885d8ef61d30907aa8c0d31505cf3dd5ec7570d784ba5600fb9da7f046ee81c73046eb4ca20a0044d2674c3531439f507e SHA512 223fe1747dcc0708f6875ec91b0202818ebe6fd414dfc2c859273e5ca1cf9ff3493c2de982ddf5394914deb5cc59728fd043e818d3633a9b2c6c178de5144554 MISC metadata.xml 266 BLAKE2B dcea8fa0295f75ca11474aafd9d1b56cf5c6d01fdb4444a82a0b93e818cf8e692076a1f5dc30a5098779afdff5190e2f877836b3ee87cbc1f8a529c32149ea94 SHA512 4da13e3e2134d06372d9bdc1de80cef972ac5db82e7ee8b3cfe620712610fd863c9037a6b8c84ee7a6c8eb8f0cb52568f040474eddb73a7afa07b5a53f512ac5 diff --git a/net-misc/usbip/files/usbip-4.13-fno-common.patch b/net-misc/usbip/files/usbip-4.13-fno-common.patch new file mode 100644 index 000000000000..b8ffc40c4b9e --- /dev/null +++ b/net-misc/usbip/files/usbip-4.13-fno-common.patch @@ -0,0 +1,44 @@ +--- a/libsrc/usbip_common.c ++++ b/libsrc/usbip_common.c +@@ -14,7 +14,7 @@ + int usbip_use_stderr; + int usbip_use_debug; + +-extern struct udev *udev_context; ++struct udev *udev_context; + + struct speed_string { + int num; +--- alibsrc/usbip_common.h ++++ b/libsrc/usbip_common.h +@@ -53,6 +53,8 @@ + #define ST_NODEV 0x04 + #define ST_ERROR 0x05 + ++extern struct udev *udev_context; ++ + extern int usbip_use_syslog; + extern int usbip_use_stderr; + extern int usbip_use_debug ; +--- a/libsrc/usbip_host_common.c ++++ b/libsrc/usbip_host_common.c +@@ -23,8 +23,6 @@ + #include "list.h" + #include "sysfs_utils.h" + +-struct udev *udev_context; +- + static int32_t read_attr_usbip_status(struct usbip_usb_device *udev) + { + char status_attr_path[SYSFS_PATH_MAX]; +--- a/libsrc/vhci_driver.c ++++ b/libsrc/vhci_driver.c +@@ -15,7 +15,6 @@ + #define PROGNAME "libusbip" + + struct usbip_vhci_driver *vhci_driver; +-struct udev *udev_context; + + static struct usbip_imported_device * + imported_device_init(struct usbip_imported_device *idev, char *busid) + diff --git a/net-misc/usbip/usbip-3.19.ebuild b/net-misc/usbip/usbip-3.19.ebuild deleted file mode 100644 index dd1e0ccb381a..000000000000 --- a/net-misc/usbip/usbip-3.19.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -ETYPE="sources" -K_NOUSENAME=1 -inherit autotools eutils kernel-2 ltprune - -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="static-libs tcpd" -RESTRICT="" - -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" - -DOCS="AUTHORS README ../../../drivers/usb/usbip/usbip_protocol.txt" - -S=${WORKDIR}/linux-${PV}/tools/usb/${PN} - -src_prepare() { - # remove -Werror from build, bug #545398 - sed -i 's/-Werror[^ ]* //g' configure.ac || die - eautoreconf -} - -src_configure() { - econf \ - $(use_enable static-libs static) \ - $(use tcpd || echo --without-tcp-wrappers) \ - --with-usbids-dir=/usr/share/misc -} - -src_install() { - default - prune_libtool_files -} - -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." -} diff --git a/net-misc/usbip/usbip-4.13.ebuild b/net-misc/usbip/usbip-4.13-r1.ebuild index bfb8473198b7..453bd87fa8fd 100644 --- a/net-misc/usbip/usbip-4.13.ebuild +++ b/net-misc/usbip/usbip-4.13-r1.ebuild @@ -2,9 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 + ETYPE="sources" K_NOUSENAME=1 -inherit autotools eutils kernel-2 ltprune +inherit autotools kernel-2 DESCRIPTION="Userspace utilities for a general USB device sharing system over IP networks" HOMEPAGE="https://www.kernel.org/" @@ -13,10 +14,10 @@ SRC_URI="${KERNEL_URI}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="static-libs tcpd" -RESTRICT="" +IUSE="tcpd" -RDEPEND=">=dev-libs/glib-2.6 +RDEPEND=" + >=dev-libs/glib-2.6 sys-apps/hwids >=sys-kernel/linux-headers-3.17 virtual/libudev @@ -24,33 +25,32 @@ RDEPEND=">=dev-libs/glib-2.6 DEPEND="${RDEPEND} virtual/pkgconfig" -DOCS="AUTHORS README" +S="${WORKDIR}/linux-${PV}/tools/usb/${PN}" -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 - default - eautoreconf } src_configure() { econf \ - $(use_enable static-libs static) \ + --disable-static \ $(use tcpd || echo --without-tcp-wrappers) \ - --with-usbids-dir=/usr/share/misc + --with-usbids-dir="${EPREFIX}"/usr/share/misc } src_install() { default - prune_libtool_files + find "${ED}" -name '*.la' -delete || die } pkg_postinst() { |