Github messages for voidlinux
 help / color / mirror / Atom feed
From: ajtcode71 <ajtcode71@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: yabridge-4.0.2
Date: Thu, 27 Oct 2022 23:23:07 +0200	[thread overview]
Message-ID: <20221027212307.0n9FhrLe4fivUFZIl6A2yQDMrqjstCDET8LEmWTLl_g@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39475@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]

There is an updated pull request by ajtcode71 against master on the void-packages repository

https://github.com/ajtcode71/void-packages yabridge
https://github.com/void-linux/void-packages/pull/39475

New package: yabridge-4.0.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64


A patch file from https://github.com/void-linux/void-packages/pull/39475.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-yabridge-39475.patch --]
[-- Type: text/x-diff, Size: 5606 bytes --]

From e82169a81fa5f2df42ca867cff2db47b50934515 Mon Sep 17 00:00:00 2001
From: Anthony Thompson <athompson@posteo.net>
Date: Sun, 2 Oct 2022 11:42:02 +1100
Subject: [PATCH] New package: yabridge-4.0.2

---
 .../patches/01-rtlimit_rttime-musl-fix.patch  | 39 ++++++++++
 .../yabridge/patches/wine-version-check.diff  | 11 +++
 srcpkgs/yabridge/template                     | 75 +++++++++++++++++++
 srcpkgs/yabridgectl                           |  1 +
 4 files changed, 126 insertions(+)
 create mode 100644 srcpkgs/yabridge/patches/01-rtlimit_rttime-musl-fix.patch
 create mode 100644 srcpkgs/yabridge/patches/wine-version-check.diff
 create mode 100644 srcpkgs/yabridge/template
 create mode 120000 srcpkgs/yabridgectl

diff --git a/srcpkgs/yabridge/patches/01-rtlimit_rttime-musl-fix.patch b/srcpkgs/yabridge/patches/01-rtlimit_rttime-musl-fix.patch
new file mode 100644
index 000000000000..f8916369060b
--- /dev/null
+++ b/srcpkgs/yabridge/patches/01-rtlimit_rttime-musl-fix.patch
@@ -0,0 +1,39 @@
+From 616df46cb6f4e73efa9db524957765f28a6b713d Mon Sep 17 00:00:00 2001
+From: Anthony Thompson <athompson@posteo.net>
+Date: Mon, 24 Oct 2022 11:37:59 +1100
+Subject: [PATCH] fix RTLIMIT_RTTIME not in scope for musl
+
+---
+ src/common/utils.cpp    | 2 +-
+ src/wine-host/utils.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/common/utils.cpp b/src/common/utils.cpp
+index c98e0d27..0de4c793 100644
+--- a/src/common/utils.cpp
++++ b/src/common/utils.cpp
+@@ -17,7 +17,7 @@
+ #include "utils.h"
+ 
+ #include <stdlib.h>
+-
++#include <asm-generic/resource.h>
+ #include <sched.h>
+ #include <xmmintrin.h>
+ 
+diff --git a/src/wine-host/utils.cpp b/src/wine-host/utils.cpp
+index f1038174..d415ccde 100644
+--- a/src/wine-host/utils.cpp
++++ b/src/wine-host/utils.cpp
+@@ -17,7 +17,7 @@
+ #include "utils.h"
+ 
+ #include <iostream>
+-
++#include <asm-generic/resource.h>
+ #include "bridges/common.h"
+ 
+ using namespace std::literals::chrono_literals;
+-- 
+2.38.1
+
diff --git a/srcpkgs/yabridge/patches/wine-version-check.diff b/srcpkgs/yabridge/patches/wine-version-check.diff
new file mode 100644
index 000000000000..86fae294d6c2
--- /dev/null
+++ b/srcpkgs/yabridge/patches/wine-version-check.diff
@@ -0,0 +1,11 @@
+--- a/meson.build	2022-06-27 23:54:16.000000000 +1000
++++ b/meson.build	2022-10-03 11:53:08.442051982 +1100
+@@ -135,7 +135,7 @@
+ #
+ # https://bugs.winehq.org/show_bug.cgi?id=49138
+ wine_version = run_command(
+-  'sh', '-c', '''wine --version | grep --only-matching -P '[0-9]+\.[0-9]+' | head -n1''',
++  'sh', '-c', '''wine --version | grep --only-matching -E '[0-9]+\.[0-9]+' | head -n1''',
+   check : false
+ )
+ if wine_version.returncode() == 0
diff --git a/srcpkgs/yabridge/template b/srcpkgs/yabridge/template
new file mode 100644
index 000000000000..d44bd4be5b95
--- /dev/null
+++ b/srcpkgs/yabridge/template
@@ -0,0 +1,75 @@
+# Template file for 'yabridge'
+pkgname=yabridge
+version=4.0.2
+revision=1
+archs="i686* x86_64*"
+build_style=meson
+
+short_desc="Use Windows 32bit and 64bit VST2 and VST3 plugins in Linux"
+maintainer="Anthony Thompson <athompson@posteo.net>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/robbert-vdh/yabridge"
+distfiles="https://github.com/robbert-vdh/yabridge/archive/refs/tags/${version}.tar.gz"
+checksum=86fcd65b6f3dd5cf60c2afa476f63959a2cc4ef4d4629810916739d7af645f01
+build_options_default="with_32bit"
+build_options="with_32bit"
+
+if [ $XBPS_MACHINE = "x86_64-musl" ]; then
+	build_options="~with_32bit"
+fi
+
+if [ $XBPS_MACHINE = "i686" ] || [ $XBPS_MACHINE = "x86_64-musl" ]; then
+		hostmakedepends="ninja pkg-config cmake git cargo"
+		makedepends="wine-tools wine-devel libxcb-devel libxcb"
+	        depends="wine yabridgectl"
+
+		elif [ $XBPS_LIBC = "glibc" ]; then
+			hostmakedepends="ninja cargo pkg-config cmake git $(vopt_if with_32bit "gcc-multilib")"
+			makedepends="wine-tools wine-devel libxcb-devel libxcb $(vopt_if with_32bit "wine-devel-32bit") $(vopt_if with_32bit "libxcb-devel-32bit")"
+			depends="wine $(vopt_if with_32bit "wine-32bit") yabridgectl"
+
+fi
+
+yabridgectl_package() {
+	shortdesc+="Utility to setup and manage yabridge"
+	depends="${sourcepkg}"
+	pkg_install() {
+		cd ${wrksrc}/tools/yabridgectl/target/release
+		vbin yabridgectl
+	}
+}
+
+do_configure() {
+		cd ${wrksrc}
+		if [  $XBPS_MACHINE = "i686" ]; then
+			meson setup build --buildtype=release --cross-file=cross-wine.conf --unity=on --unity-size=1000 -Dbitbridge=true -Dbuild.cpp_args='-m32' -Dbuild.cpp_link_args='-m32'
+		else
+			meson setup build  --buildtype=release --cross-file=cross-wine.conf --unity=on --unity-size=1000 $(vopt_if with_32bit "-Dbitbridge=true")
+		fi
+}
+
+do_build() {
+	ninja -C build/
+	cd ${wrksrc}/tools/yabridgectl
+	cargo build --release
+}
+
+do_install() {
+	cd ${wrksrc}/build
+	if  [  $XBPS_MACHINE = "x86_64-musl" ] ||  [ $XBPS_MACHINE = "x86_64" ]; then
+		vbin yabridge-host.exe
+		vbin yabridge-host.exe.so
+		if [ [ $(vopt_if with_32bit  true false) = "true" ] && [ $XBPS_LIBC = "glibc"] ]; then
+			vbin yabridge-host-32.exe.so
+		 	vbin yabridge-host-32.exe
+		fi
+	else
+		vbin yabridge-host-32.exe.so
+		vbin yabridge-host-32.exe
+	fi
+	vmkdir usr/lib
+	vcopy libyabridge-chainloader-vst2.so /usr/lib
+	vcopy libyabridge-vst2.so /usr/lib
+	vcopy libyabridge-chainloader-vst3.so /usr/lib
+	vcopy libyabridge-vst3.so /usr/lib
+}
diff --git a/srcpkgs/yabridgectl b/srcpkgs/yabridgectl
new file mode 120000
index 000000000000..142ce41a5d93
--- /dev/null
+++ b/srcpkgs/yabridgectl
@@ -0,0 +1 @@
+yabridge/
\ No newline at end of file

  parent reply	other threads:[~2022-10-27 21:23 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26  8:12 [PR PATCH] " ajtcode71
2022-09-27  0:14 ` [PR PATCH] [Updated] " ajtcode71
2022-10-01  7:51 ` ajtcode71
2022-10-01  8:47 ` [PR PATCH] [Updated] " ajtcode71
2022-10-01 10:57 ` [PR REVIEW] " paper42
2022-10-01 21:27 ` ajtcode71
2022-10-01 21:32 ` paper42
2022-10-01 21:32 ` paper42
2022-10-01 21:34 ` [PR PATCH] [Updated] " ajtcode71
2022-10-01 21:34 ` ajtcode71
2022-10-02  0:05 ` ajtcode71
2022-10-02  0:05 ` ajtcode71
2022-10-02  0:06 ` [PR REVIEW] " ajtcode71
2022-10-02  0:25 ` paper42
2022-10-02  0:42 ` [PR PATCH] [Updated] " ajtcode71
2022-10-02  0:45 ` ajtcode71
2022-10-02  0:48 ` [PR REVIEW] " ajtcode71
2022-10-02  9:45 ` paper42
2022-10-02 13:56 ` robbert-vdh
2022-10-03  2:08 ` [PR PATCH] [Updated] " ajtcode71
2022-10-03  2:08 ` ajtcode71
2022-10-03  2:14 ` [PR REVIEW] " ajtcode71
2022-10-03  2:20 ` [PR PATCH] [Updated] " ajtcode71
2022-10-03  2:20 ` ajtcode71
2022-10-03  2:20 ` [PR REVIEW] " ajtcode71
2022-10-03  2:22 ` [PR PATCH] [Updated] " ajtcode71
2022-10-03  2:22 ` ajtcode71
2022-10-10  2:07 ` ajtcode71
2022-10-27  8:48 ` [PR PATCH] [Updated] " ajtcode71
2022-10-27 21:14 ` ajtcode71
2022-10-27 21:23 ` ajtcode71 [this message]
2022-10-27 21:28 ` ajtcode71
2022-11-10 11:08 ` ajtcode71
2023-02-09  2:35 ` github-actions
2023-02-24  2:00 ` [PR PATCH] [Closed]: " github-actions
2023-03-04 12:17 ` prez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221027212307.0n9FhrLe4fivUFZIl6A2yQDMrqjstCDET8LEmWTLl_g@z \
    --to=ajtcode71@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).