Commit e6d56376 authored by Leo's avatar Leo
Browse files

community/usbip-utils: fix build with -fno-common

parent 57418b85
......@@ -14,7 +14,9 @@ subpackages="$pkgname-dev $pkgname-doc"
source="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.gz
usbip.initd
usbip.confd
fix-ppc64le-disable-werror.patch"
fix-ppc64le-disable-werror.patch
gcc-10.patch
"
_baseurl="linux-$pkgver/tools/usb/usbip"
builddir="$srcdir/usbip"
......@@ -51,4 +53,5 @@ package() {
sha512sums="a540ce2c32d33ec1d77849ff3f319ee820e1ed268a95edaa177e90c7199b64fc95e8de93e5ae06d49b2a52b1b97c14286e1c82f6c504c414cc414afab20c4e82 linux-5.4.55.tar.gz
fcbd64d844c9bc187d08cef5995e91a46c0df78deb24e96ac9210c0e2c730eca0301970d9b8ffbf003df274682d05072431a26b59d8c491f396618268a12ec92 usbip.initd
eb8de617e27c4d5fdfee9c442e8f74b0afb4d0fe7b59eca3a19629eb70fea7e09b3c125bc968aa8810d845ce661c829bd0f3fdb2288664f2cccf423bc0ae6ae8 usbip.confd
473d194edc7677d0eb9864cf1e3922264ddd2d89e1015188f09c59e50a84a77f08d1e5c99700d4f3c8c01bea318aa614482f7902f0c97f5d87d6fbe388e840f8 fix-ppc64le-disable-werror.patch"
473d194edc7677d0eb9864cf1e3922264ddd2d89e1015188f09c59e50a84a77f08d1e5c99700d4f3c8c01bea318aa614482f7902f0c97f5d87d6fbe388e840f8 fix-ppc64le-disable-werror.patch
790effdb28b830f886c7d50598a8cac07a82a5fabbf9b6680de11eafd548e31349e9f1ed1c959e3dd5c23ca4fdfd1902658a4878e1294d7658c774993c84c4e4 gcc-10.patch"
Taken from Gentoo
--- 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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment