Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] amsynth: update to 1.12.2
@ 2020-11-30  0:12 ndowens
  2020-12-10 20:19 ` [PR PATCH] [Merged]: " Piraty
  0 siblings, 1 reply; 2+ messages in thread
From: ndowens @ 2020-11-30  0:12 UTC (permalink / raw)
  To: ml

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

There is a new pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages amsynth
https://github.com/void-linux/void-packages/pull/26815

amsynth: update to 1.12.2
Remove patches, as they are implemented in this version

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

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

From 6db95853f3921cd92693aab4088f76b79f5f0dc5 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Sun, 29 Nov 2020 18:12:54 -0600
Subject: [PATCH] amsynth: update to 1.12.2

Remove patches, as they are implemented in this version
---
 ...issue-of-static-initialization-order.patch | 60 -------------------
 .../0002-Fix-size-of-ALSA-audio-buffer.patch  | 34 -----------
 ...hen-trying-to-free-an-environment-va.patch | 27 ---------
 srcpkgs/amsynth/template                      |  8 +--
 4 files changed, 4 insertions(+), 125 deletions(-)
 delete mode 100644 srcpkgs/amsynth/patches/0001-Fix-issue-of-static-initialization-order.patch
 delete mode 100644 srcpkgs/amsynth/patches/0002-Fix-size-of-ALSA-audio-buffer.patch
 delete mode 100644 srcpkgs/amsynth/patches/0003-Fix-a-segfault-when-trying-to-free-an-environment-va.patch

diff --git a/srcpkgs/amsynth/patches/0001-Fix-issue-of-static-initialization-order.patch b/srcpkgs/amsynth/patches/0001-Fix-issue-of-static-initialization-order.patch
deleted file mode 100644
index ffc083ec615..00000000000
--- a/srcpkgs/amsynth/patches/0001-Fix-issue-of-static-initialization-order.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From aa3c555bbf27aa79cbfa811ee2c8cb5e125069b8 Mon Sep 17 00:00:00 2001
-From: JP Cimalando <jp-dev@inbox.ru>
-Date: Wed, 29 May 2019 20:57:35 +0200
-Subject: [PATCH 1/3] Fix issue of static initialization order
-
-The static variable _preset can be uninitialized when the library constructor
-runs. When it happens, the parameters and their names are not enumerated
-correctly in the DSSI descriptor.
----
- src/Preset.cpp | 10 +++++++++-
- 1 file changed, 9 insertions(+), 1 deletion(-)
-
-diff --git src/Preset.cpp src/Preset.cpp
-index 02bae49..b67dc81 100644
---- src/Preset.cpp
-+++ src/Preset.cpp
-@@ -223,10 +223,15 @@ void get_parameter_properties(int parameter_index, double *minimum, double *maxi
- 
- /* this implements the C API in controls.h */
- 
--static Preset _preset;
-+static const Preset &_get_preset()
-+{
-+	static const Preset preset;
-+	return preset;
-+}
- 
- const char *parameter_name_from_index (int param_index)
- {
-+	const Preset &_preset = _get_preset();
- 	if (param_index < 0 || param_index >= (int)_preset.ParameterCount())
- 		return NULL;
- 	static std::vector<std::string> names;
-@@ -239,6 +244,7 @@ const char *parameter_name_from_index (int param_index)
- 
- int parameter_index_from_name (const char *param_name)
- {
-+	const Preset &_preset = _get_preset();
- 	for (unsigned i=0; i<_preset.ParameterCount(); i++) {
- 		if (std::string(param_name) == _preset.getParameter(i).getName()) {
- 			return i;
-@@ -249,6 +255,7 @@ int parameter_index_from_name (const char *param_name)
- 
- int parameter_get_display (int parameter_index, float parameter_value, char *buffer, size_t maxlen)
- {
-+	const Preset &_preset = _get_preset();
- 	Parameter parameter = _preset.getParameter(parameter_index);
- 	parameter.setValue(parameter_value);
- 	float real_value = parameter.getControlValue();
-@@ -406,6 +413,7 @@ void Preset::setShouldIgnoreParameter(int parameter, bool ignore)
- 
- std::string Preset::getIgnoredParameterNames()
- {
-+	const Preset &_preset = _get_preset();
- 	std::string names;
- 	for (int i = 0; i < kAmsynthParameterCount; i++) {
- 		if (shouldIgnoreParameter(i)) {
--- 
-2.24.0
-
diff --git a/srcpkgs/amsynth/patches/0002-Fix-size-of-ALSA-audio-buffer.patch b/srcpkgs/amsynth/patches/0002-Fix-size-of-ALSA-audio-buffer.patch
deleted file mode 100644
index 80279d5f1f6..00000000000
--- a/srcpkgs/amsynth/patches/0002-Fix-size-of-ALSA-audio-buffer.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 8d863e4bd86b1ae14ef1eb34b0b58a0609592353 Mon Sep 17 00:00:00 2001
-From: Nick Dowell <nick@nickdowell.com>
-Date: Fri, 26 Apr 2019 16:05:27 +0100
-Subject: [PATCH 2/3] Fix size of ALSA audio buffer
-
----
- src/drivers/ALSAAudioDriver.cpp | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git src/drivers/ALSAAudioDriver.cpp src/drivers/ALSAAudioDriver.cpp
-index f50e348..68ccf4c 100644
---- src/drivers/ALSAAudioDriver.cpp
-+++ src/drivers/ALSAAudioDriver.cpp
-@@ -1,7 +1,7 @@
- /*
-  *  ALSAAudioDriver.cpp
-  *
-- *  Copyright (c) 2001-2015 Nick Dowell
-+ *  Copyright (c) 2001-2019 Nick Dowell
-  *
-  *  This file is part of amsynth.
-  *
-@@ -112,7 +112,7 @@ ALSAAudioDriver::open()
- 
- 	_handle = pcm;
- 	_channels = config.channels;
--	_buffer = (short *)malloc(kMaxWriteFrames * sizeof(short));
-+	_buffer = (short *)malloc(kMaxWriteFrames * _channels * sizeof(short));
- 
- 	config.current_audio_driver = "ALSA";
- #ifdef ENABLE_REALTIME
--- 
-2.24.0
-
diff --git a/srcpkgs/amsynth/patches/0003-Fix-a-segfault-when-trying-to-free-an-environment-va.patch b/srcpkgs/amsynth/patches/0003-Fix-a-segfault-when-trying-to-free-an-environment-va.patch
deleted file mode 100644
index 8c892821e88..00000000000
--- a/srcpkgs/amsynth/patches/0003-Fix-a-segfault-when-trying-to-free-an-environment-va.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From b0b2fd09f4b58fef8f189c1f09cc8857723b123c Mon Sep 17 00:00:00 2001
-From: Janne Junnila <janne.junnila@gmail.com>
-Date: Sun, 7 Jul 2019 10:06:07 +0200
-Subject: [PATCH 3/3] Fix a segfault when trying to free an environment
- variable.
-
----
- src/GUI/editor_pane.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git src/GUI/editor_pane.c src/GUI/editor_pane.c
-index 090b80f..9332972 100644
---- src/GUI/editor_pane.c
-+++ src/GUI/editor_pane.c
-@@ -266,6 +266,9 @@ editor_pane_new (void *synthesizer, GtkAdjustment **adjustments, gboolean is_plu
- 	gchar *skin_path = (gchar *)g_getenv ("AMSYNTH_SKIN");
- 	if (skin_path == NULL) {
- 		skin_path = g_build_filename (PKGDATADIR, "skins", "default", NULL);
-+	} else {
-+		// Copy the env var so that we don't segfault at free below
-+		skin_path = g_strdup (skin_path);
- 	}
- 	
- 	if (!g_file_test (skin_path, G_FILE_TEST_EXISTS)) {
--- 
-2.24.0
-
diff --git a/srcpkgs/amsynth/template b/srcpkgs/amsynth/template
index 784153481ce..30346a5b43a 100644
--- a/srcpkgs/amsynth/template
+++ b/srcpkgs/amsynth/template
@@ -1,7 +1,7 @@
 # Template file for 'amsynth'
 pkgname=amsynth
-version=1.9.0
-revision=3
+version=1.12.2
+revision=1
 build_style=gnu-configure
 configure_args="$(vopt_with man pandoc)"
 hostmakedepends="$(vopt_if man pandoc) intltool pkg-config"
@@ -11,8 +11,8 @@ short_desc="Analogue Modeling SYNTHesizer"
 maintainer="Olga Ustuzhanina <me@laserbat.pw>"
 license="GPL-2.0-or-later"
 homepage="https://amsynth.github.io/"
-distfiles="https://github.com/amsynth/${pkgname}/releases/download/release-${version}/${pkgname}-${version}.tar.bz2"
-checksum=c0d1e11be528366da543363e73363a4b9fd86f72e03d2d22adb3ec355fa61a80
+distfiles="https://github.com/amsynth/${pkgname}/releases/download/release-${version}/${pkgname}-${version}.tar.gz"
+checksum=31e836c6e36ed1ffc6ac81d2af558ead7e2904f16c102f806ed1895abd3b1752
 
 build_options="man"
 desc_option_man="Use pandoc for manpages"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: amsynth: update to 1.12.2
  2020-11-30  0:12 [PR PATCH] amsynth: update to 1.12.2 ndowens
@ 2020-12-10 20:19 ` Piraty
  0 siblings, 0 replies; 2+ messages in thread
From: Piraty @ 2020-12-10 20:19 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

amsynth: update to 1.12.2
https://github.com/void-linux/void-packages/pull/26815

Description:
Remove patches, as they are implemented in this version

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-10 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30  0:12 [PR PATCH] amsynth: update to 1.12.2 ndowens
2020-12-10 20:19 ` [PR PATCH] [Merged]: " Piraty

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).