Github messages for voidlinux
 help / color / mirror / Atom feed
From: Logarithmus <Logarithmus@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: lsp-plugins-1.1.30
Date: Wed, 28 Jul 2021 22:57:20 +0200	[thread overview]
Message-ID: <20210728205720.nQ8sKD1JZvErbMvVSARgulZhgIWs5yR0WXZcdD8u4v8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31664@inbox.vuxu.org>

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

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

https://github.com/Logarithmus/void-packages lsp-plugins
https://github.com/void-linux/void-packages/pull/31664

New package: lsp-plugins-1.1.30
Required by `pulseeffects` compressor, equalizer, delay & loudness compensator effects.
Continuation of https://github.com/void-linux/void-packages/pull/29932

TODO:
- [ ] wait for https://github.com/sadko4u/lsp-plugins/pull/198
- [ ] fix i686
- [ ] fix arm

<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From d78da70f9ecacf153c18447c5af29f494ce7f954 Mon Sep 17 00:00:00 2001
From: Artur Sinila <freesoftware@logarithmus.dev>
Date: Mon, 5 Jul 2021 03:44:08 +0300
Subject: [PATCH 1/2] common/build-style/: enable running tests in parallel

---
 common/build-style/cmake.sh           | 6 +++++-
 common/build-style/configure.sh       | 6 +++++-
 common/build-style/gnu-configure.sh   | 6 +++++-
 common/build-style/gnu-makefile.sh    | 6 +++++-
 common/build-style/perl-module.sh     | 6 +++++-
 common/environment/setup/sourcepkg.sh | 3 ++-
 6 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/common/build-style/cmake.sh b/common/build-style/cmake.sh
index 401dabad31c8..c7ffd16fee21 100644
--- a/common/build-style/cmake.sh
+++ b/common/build-style/cmake.sh
@@ -113,7 +113,11 @@ do_check() {
 
 	: ${make_check_target:=test}
 
-	${make_cmd} ${make_check_args} ${make_check_target}
+	if [ -z "$disable_parallel_check" ]; then
+		${make_cmd} ${makejobs} ${make_check_args} ${make_check_target}
+	else
+		${make_cmd} ${make_check_args} ${make_check_target}
+	fi
 }
 
 do_install() {
diff --git a/common/build-style/configure.sh b/common/build-style/configure.sh
index 0963fc347934..b846a1a77572 100644
--- a/common/build-style/configure.sh
+++ b/common/build-style/configure.sh
@@ -29,7 +29,11 @@ do_check() {
 	: ${make_cmd:=make}
 	: ${make_check_target:=check}
 
-	${make_cmd} ${make_check_args} ${make_check_target}
+	if [ -z "$disable_parallel_check" ]; then
+		${make_cmd} ${makejobs} ${make_check_args} ${make_check_target}
+	else
+		${make_cmd} ${make_check_args} ${make_check_target}
+	fi
 }
 
 do_install() {
diff --git a/common/build-style/gnu-configure.sh b/common/build-style/gnu-configure.sh
index 8121136cd121..b09de442b05b 100644
--- a/common/build-style/gnu-configure.sh
+++ b/common/build-style/gnu-configure.sh
@@ -30,7 +30,11 @@ do_check() {
 	: ${make_cmd:=make}
 	: ${make_check_target:=check}
 
-	${make_cmd} ${make_check_args} ${make_check_target}
+	if [ -z "$disable_parallel_check" ]; then
+		${make_cmd} ${makejobs} ${make_check_args} ${make_check_target}
+	else
+		${make_cmd} ${make_check_args} ${make_check_target}
+	fi
 }
 
 do_install() {
diff --git a/common/build-style/gnu-makefile.sh b/common/build-style/gnu-makefile.sh
index d7ea148fc483..0f7afa7d3695 100644
--- a/common/build-style/gnu-makefile.sh
+++ b/common/build-style/gnu-makefile.sh
@@ -30,7 +30,11 @@ do_check() {
 	: ${make_cmd:=make}
 	: ${make_check_target:=check}
 
-	${make_cmd} ${make_check_args} ${make_check_target}
+	if [ -z "$disable_parallel_check" ]; then
+		${make_cmd} ${makejobs} ${make_check_args} ${make_check_target}
+	else
+		${make_cmd} ${make_check_args} ${make_check_target}
+	fi
 }
 
 do_install() {
diff --git a/common/build-style/perl-module.sh b/common/build-style/perl-module.sh
index b9a01b13cfa9..d47945b33d36 100644
--- a/common/build-style/perl-module.sh
+++ b/common/build-style/perl-module.sh
@@ -79,7 +79,11 @@ do_check() {
 	: ${make_cmd:=make}
 	: ${make_check_target:=test}
 
-	${make_cmd} ${make_check_args} ${make_check_target}
+	if [ -z "$disable_parallel_check" ]; then
+		${make_cmd} ${makejobs} ${make_check_args} ${make_check_target}
+	else
+		${make_cmd} ${make_check_args} ${make_check_target}
+	fi
 }
 
 do_install() {
diff --git a/common/environment/setup/sourcepkg.sh b/common/environment/setup/sourcepkg.sh
index bc06f745b78a..1fd541f1e715 100644
--- a/common/environment/setup/sourcepkg.sh
+++ b/common/environment/setup/sourcepkg.sh
@@ -13,7 +13,8 @@ unset -v cmake_builddir meson_builddir
 unset -v meson_crossfile
 unset -v gemspec
 unset -v go_import_path go_package go_mod_mode
-unset -v patch_args disable_parallel_build keep_libtool_archives make_use_env
+unset -v patch_args disable_parallel_build disable_parallel_check
+unset -v keep_libtool_archives make_use_env
 unset -v reverts subpackages makedepends hostmakedepends checkdepends depends restricted
 unset -v nopie build_options build_options_default bootstrap repository reverts
 unset -v CFLAGS CXXFLAGS FFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH

From 7130c222b35dfd3e7d27e4fa617916c7ebfc3af6 Mon Sep 17 00:00:00 2001
From: Paper <paper@tilde.institute>
Date: Sat, 20 Mar 2021 23:19:47 +0100
Subject: [PATCH 2/2] New package: lsp-plugins-1.1.30

---
 .../00-makefile-test-remove-cflags.patch      |  12 ++
 srcpkgs/lsp-plugins/patches/01-musl.patch     | 104 ++++++++++++++++++
 srcpkgs/lsp-plugins/template                  |  28 +++++
 3 files changed, 144 insertions(+)
 create mode 100644 srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch
 create mode 100644 srcpkgs/lsp-plugins/patches/01-musl.patch
 create mode 100644 srcpkgs/lsp-plugins/template

diff --git a/srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch b/srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch
new file mode 100644
index 000000000000..fd82f25d4a25
--- /dev/null
+++ b/srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch
@@ -0,0 +1,12 @@
+https://github.com/void-linux/void-packages/pull/29932#discussion_r605695858
+--- a/Makefile
++++ b/Makefile
+@@ -108,8 +108,6 @@ trace: export EXE_FLAGS     += -g3
+ trace: compile
+ 
+ test: OBJDIR                 = $(TESTDIR)
+-test: export CFLAGS         += -O2 -DLSP_TESTING -DLSP_TRACE -g3 -fstack-protector
+-test: export CXXFLAGS       += -O2 -DLSP_TESTING -DLSP_TRACE -g3 -fstack-protector
+ test: export EXE_TEST_FLAGS += -g3
+ test: export MAKE_OPTS      += LSP_TESTING=1
+ test: export BUILD_MODULES   = jack
diff --git a/srcpkgs/lsp-plugins/patches/01-musl.patch b/srcpkgs/lsp-plugins/patches/01-musl.patch
new file mode 100644
index 000000000000..de8c1ca275c3
--- /dev/null
+++ b/srcpkgs/lsp-plugins/patches/01-musl.patch
@@ -0,0 +1,104 @@
+https://github.com/sadko4u/lsp-plugins/pull/198
+diff --git a/include/data/cvector.h b/include/data/cvector.h
+index eccc94a..17fe119 100644
+--- a/include/data/cvector.h
++++ b/include/data/cvector.h
+@@ -25,6 +25,7 @@
+ #include <stddef.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/types.h>
+ 
+ #define CVECTOR_GROW        16
+ 
+diff --git a/include/test/main/executor.h b/include/test/main/executor.h
+index 0faf73f..b37cbf2 100644
+--- a/include/test/main/executor.h
++++ b/include/test/main/executor.h
+@@ -633,7 +633,7 @@ namespace lsp
+     }
+ #endif /* PLATFORM_WINDOWS */
+ 
+-#ifdef PLATFORM_LINUX
++#if defined(PLATFORM_LINUX) && defined(__GLIBC__)
+     void TestExecutor::start_memcheck(test::Test *v)
+     {
+         if (!pCfg->mtrace)
+diff --git a/include/test/main/types.h b/include/test/main/types.h
+index ef15800..c833379 100644
+--- a/include/test/main/types.h
++++ b/include/test/main/types.h
+@@ -42,7 +42,7 @@
+     #include <fcntl.h>
+ #endif /* PLATFORM_UNIX_COMPATIBLE */
+ 
+-#ifdef PLATFORM_LINUX
++#if defined(PLATFORM_LINUX) && defined(__GLIBC__)
+     #include <mcheck.h>
+ #endif /* PLATFORM_LINUX */
+ 
+diff --git a/include/testing/mtest/3d/common/X11Renderer.h b/include/testing/mtest/3d/common/X11Renderer.h
+index e8ec205..f0a51e2 100644
+--- a/include/testing/mtest/3d/common/X11Renderer.h
++++ b/include/testing/mtest/3d/common/X11Renderer.h
+@@ -30,7 +30,7 @@
+ #include <X11/X.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ 
+ #include <rendering/backend.h>
+ #include <core/ipc/Library.h>
+diff --git a/src/testing/mtest/3d/boolean3d.cpp b/src/testing/mtest/3d/boolean3d.cpp
+index 636dce1..f92c63e 100644
+--- a/src/testing/mtest/3d/boolean3d.cpp
++++ b/src/testing/mtest/3d/boolean3d.cpp
+@@ -41,7 +41,7 @@
+ #include <GL/gl.h>
+ #include <GL/glx.h>
+ #include <GL/glu.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ 
+ //#define TEST_DEBUG
+ 
+diff --git a/src/testing/mtest/3d/bsp_context.cpp b/src/testing/mtest/3d/bsp_context.cpp
+index de54427..ea9ab36 100644
+--- a/src/testing/mtest/3d/bsp_context.cpp
++++ b/src/testing/mtest/3d/bsp_context.cpp
+@@ -39,7 +39,7 @@
+ #include <X11/keysymdef.h>
+ #include <GL/gl.h>
+ #include <GL/glx.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ 
+ //#define TEST_DEBUG
+ 
+diff --git a/src/testing/mtest/3d/reflections3d.cpp b/src/testing/mtest/3d/reflections3d.cpp
+index e250444..367f86c 100644
+--- a/src/testing/mtest/3d/reflections3d.cpp
++++ b/src/testing/mtest/3d/reflections3d.cpp
+@@ -39,7 +39,7 @@
+ #include <X11/keysymdef.h>
+ #include <GL/gl.h>
+ #include <GL/glx.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ 
+ //#define TEST_DEBUG
+ 
+diff --git a/src/ui/ws/x11/X11Display.cpp b/src/ui/ws/x11/X11Display.cpp
+index d85db51..1bf7ff2 100644
+--- a/src/ui/ws/x11/X11Display.cpp
++++ b/src/ui/ws/x11/X11Display.cpp
+@@ -23,7 +23,7 @@
+ 
+ #ifdef USE_X11_DISPLAY
+ 
+-#include <sys/poll.h>
++#include <poll.h>
+ #include <errno.h>
+ #include <stdlib.h>
+ 
diff --git a/srcpkgs/lsp-plugins/template b/srcpkgs/lsp-plugins/template
new file mode 100644
index 000000000000..8362a76cd2da
--- /dev/null
+++ b/srcpkgs/lsp-plugins/template
@@ -0,0 +1,28 @@
+# Template file for 'lsp-plugins'
+pkgname=lsp-plugins
+version=1.1.30
+revision=1
+build_style=gnu-makefile
+hostmakedepends="pkg-config php"
+makedepends="libsndfile-devel libX11-devel libglvnd-devel lv2 cairo-devel ladspa-sdk jack-devel"
+short_desc="Collection of free plugins compatible with LADSPA, LV2 and LinuxVST"
+maintainer="Artur Sinila <freesoftware@logarithmus.dev>"
+license="LGPL-3.0-or-later"
+homepage="https://lsp-plug.in/"
+distfiles="https://github.com/sadko4u/lsp-plugins/archive/refs/tags/${version}.tar.gz"
+checksum=9cf43257729093c240375b3640b1514dff34b092b83b54a5ee68d7e8565c8f80
+
+_arch="${XBPS_TARGET_MACHINE%%-musl}"
+# case "$_arch" in
+# 	i686) export BUILD_PROFILE=i586 ;;
+# 	*)    export BUILD_PROFILE=${_arch} ;;
+# esac
+
+# https://github.com/sadko4u/lsp-plugins/issues/191#issuecomment-812847630
+CXXFLAGS="-std=c++98"
+
+do_check() {
+	export CXXFLAGS="$CXXFLAGS -DLSP_TESTING -DLSP_TRACE"
+	make SHELL="sh -x" test
+	.test/lsp-plugins-test utest
+}

  parent reply	other threads:[~2021-07-28 20:57 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-26 15:59 [PR PATCH] " Logarithmus
2021-06-26 16:43 ` [PR PATCH] [Updated] " Logarithmus
2021-06-26 19:32 ` [PR REVIEW] " paper42
2021-06-26 19:32 ` ericonr
2021-06-26 19:32 ` ericonr
2021-06-27 17:03 ` Logarithmus
2021-06-27 17:05 ` Logarithmus
2021-06-27 17:06 ` Logarithmus
2021-06-27 17:27 ` [PR PATCH] [Updated] " Logarithmus
2021-06-27 18:57 ` Logarithmus
2021-06-27 19:27 ` Logarithmus
2021-07-27 22:53 ` Logarithmus
2021-07-28 18:29 ` Logarithmus
2021-07-28 19:44 ` Logarithmus
2021-07-28 19:48 ` Logarithmus
2021-07-28 19:59 ` Logarithmus
2021-07-28 20:04 ` [PR REVIEW] " paper42
2021-07-28 20:04 ` paper42
2021-07-28 20:04 ` paper42
2021-07-28 20:05 ` paper42
2021-07-28 20:06 ` Logarithmus
2021-07-28 20:08 ` [PR REVIEW] " paper42
2021-07-28 20:10 ` Logarithmus
2021-07-28 20:10 ` Logarithmus
2021-07-28 20:11 ` Logarithmus
2021-07-28 20:11 ` Logarithmus
2021-07-28 20:19 ` [PR REVIEW] " Logarithmus
2021-07-28 20:19 ` Logarithmus
2021-07-28 20:21 ` Logarithmus
2021-07-28 20:33 ` paper42
2021-07-28 20:52 ` [PR PATCH] [Updated] " Logarithmus
2021-07-28 20:57 ` Logarithmus [this message]
2021-07-28 21:27 ` [PR REVIEW] " paper42
2021-07-28 22:02 ` [PR PATCH] [Updated] " Logarithmus
2021-07-28 22:31 ` Logarithmus
2021-07-28 23:02 ` Logarithmus
2021-07-31  8:43 ` [PR REVIEW] " paper42
2021-07-31  8:43 ` paper42
2021-07-31  8:43 ` paper42
2021-07-31 10:19 ` Logarithmus
2021-07-31 10:22 ` Logarithmus
2021-07-31 10:32 ` Logarithmus
2021-07-31 10:34 ` Logarithmus
2021-07-31 10:37 ` Logarithmus
2021-07-31 10:38 ` Logarithmus
2021-07-31 10:39 ` Logarithmus
2021-07-31 11:00 ` [PR REVIEW] " paper42
2021-07-31 11:03 ` paper42
2021-07-31 19:59 ` ericonr
2021-07-31 21:35 ` abenson
2021-07-31 21:47 ` Logarithmus
2021-08-01  2:25 ` sgn
2021-08-01 15:45 ` [PR PATCH] [Updated] " Logarithmus
2021-08-01 15:47 ` Logarithmus
2021-08-02  2:34 ` Logarithmus
2021-08-02  3:46 ` Logarithmus
2021-08-02  3:57 ` Logarithmus
2021-08-10  1:26 ` Logarithmus
2021-08-10  1:28 ` Logarithmus
2021-08-10  1:49 ` Logarithmus
2021-08-10  2:09 ` Logarithmus
2021-08-10  2:28 ` [PR REVIEW] " Logarithmus
2021-08-10  2:29 ` Logarithmus
2021-08-10  2:29 ` Logarithmus
2021-08-10  2:31 ` Logarithmus
2021-08-10  2:36 ` [PR PATCH] [Updated] " Logarithmus
2022-04-11 13:16 ` prez
2022-04-11 13:21 ` Logarithmus
2022-04-11 13:21 ` [PR PATCH] [Closed]: " Logarithmus

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=20210728205720.nQ8sKD1JZvErbMvVSARgulZhgIWs5yR0WXZcdD8u4v8@z \
    --to=logarithmus@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).