termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.89k stars 2.97k forks source link

[Package]: usbip #10137

Open Darkar25 opened 2 years ago

Darkar25 commented 2 years ago

Package description

idk what libudev does but apparently it required for a bunch of usb-related stuff such as libusb usbip rfcat etc...some of them can be compiled using --disable-udev argument but not in my case: usbip REQUIRE libudev to compile at all...so yeah... also both these packages even dont have a "arm" variant in any deb databases...only armhf armel and arm64...i am using armv7(aka arm)...i tried "dpkg --add-architecture armhf" and then installing deb but that gone not very well...it was requesting heck a lot of other packages... i saw someone opened package request for libudev here but closed it right after opening...

Home page URL

http://usbip.sourceforge.net/

Source code URL

https://github.com/citilinkru/libudev this is the sources for libudev i hope; https://github.com/trevd/android_external_usbip

Packaging policy acknowledgement

Additional information

configure: error: Missing /usr/include/libudev.h when compiling usbip

Grimler91 commented 2 years ago

Android doesn't use udev so it makes no sense to add libudev. usbip would need to be patched so that is doesn't rely on udev I guess, and it would only be usable as root

Darkar25 commented 2 years ago

Android doesn't use udev so it makes no sense to add libudev. usbip would need to be patched so that is doesn't rely on udev I guess, and it would only be usable as root

root is not big deal, my device is rooted)

tathastu871 commented 2 years ago

If this package is available in termux then we can also use android phone as printer server. old usb Printer connected via otg will be available on network as ip device and thus old printers can be converted to wireless printers.

Darkar25 commented 2 years ago

If this package is available in termux then we can also use android phone as printer server. old usb Printer connected via otg will be available on network as ip device and thus old printers can be converted to wireless printers.

Usbip has a lot more use cases than wireless printers))pretty useful tool to have

tathastu871 commented 2 years ago

has anyone tried using usbip on proot ubuntu (arm64 binary is available via apt) on termux. and whether it works there without root or not.

Grimler91 commented 2 years ago

"For Linux, the source code of usbip was merged into the staging tree, and finally has been moved to the mainline since Linux-3.17", so what is the target of the package request here? A package that can be used on kernels < 3.17, or some related userspace tool/library?

Root will be required. For devices with kernels > 3.17 it is surely a better idea to compile and flash a kernel with CONFIG_USBIP_CORE=y than

Grimler91 commented 2 years ago

https://github.com/trevd/android_external_usbip seem to contain "usbip-utils", is that what is requested here?

Grimler91 commented 2 years ago

Android also doesn't use udev, permissions and so on are handled through the android API, so if that is a hard requirement then it won't be possible to add usbip-utils