Skip to content

Commit

Permalink
mono: Add a patch to fix mapping for libusb-1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
  • Loading branch information
zboszor committed Oct 22, 2024
1 parent f80bf9d commit 5ea2aaa
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 0c992882f427b67cffd1b7577c3de86aed1a4d11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
<zboszor@gmail.com>
Date: Tue, 22 Oct 2024 07:36:06 +0200
Subject: [PATCH] Add libusb-1.0 mapping
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This fixes using USB devices with LibUsbDotNet and MonoLibUsb.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Upstream-Status: Submitted [https://github.com/mono/mono/pull/21807]
---
data/config.in | 1 +
1 file changed, 1 insertion(+)

diff --git a/data/config.in b/data/config.in
index 5758a172e19..cef832756be 100644
--- a/data/config.in
+++ b/data/config.in
@@ -33,6 +33,7 @@
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
<dllmap dll="libcups" target="libcups.dylib" os="osx"/>
+ <dllmap dll="libusb-1.0" target="libusb-1.0.so.0" os="!windows"/>
<dllmap dll="i:kernel32.dll">
<dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
<dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
--
2.47.0

1 change: 1 addition & 0 deletions recipes-mono/mono/mono_6.12.0.161.bb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SRC_URI = "http://download.mono-project.com/sources/mono/mono-${BASEPV}.tar.xz \
file://0036-Revert-2020-02-Start-a-dedicated-thread-for-MERP-cra.patch \
file://0037-Allow-nfloat-to-be-in-the-ObjCRuntime-namespace-and-.patch \
file://0039-aot-Prepend-the-assembly-name-to-the-names-of-gshare.patch \
file://0001-Add-libusb-1.0-mapping.patch \
"


Expand Down

0 comments on commit 5ea2aaa

Please sign in to comment.