[arch-commits] Commit in meterbridge/trunk (2 files)
David Runge
dvzrv at archlinux.org
Fri May 10 09:15:25 UTC 2019
Date: Friday, May 10, 2019 @ 09:15:25
Author: dvzrv
Revision: 464785
upgpkg: meterbridge 0.9.3-2
Adding fix for multiple instance creation (FS#61530).
Added:
meterbridge/trunk/meterbridge-0.9.3-xinitthreads.patch
Modified:
meterbridge/trunk/PKGBUILD
--------------------------------------+
PKGBUILD | 11 ++++++++---
meterbridge-0.9.3-xinitthreads.patch | 30 ++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-10 08:57:18 UTC (rev 464784)
+++ PKGBUILD 2019-05-10 09:15:25 UTC (rev 464785)
@@ -3,7 +3,7 @@
pkgname=meterbridge
pkgver=0.9.3
-pkgrel=1
+pkgrel=2
pkgdesc="Collection of Audio meters for the JACK audio server"
arch=('x86_64')
url="http://plugin.org.uk/meterbridge/"
@@ -15,12 +15,14 @@
"${pkgname}-${pkgver}-asneeded.patch"
"${pkgname}-${pkgver}-cflags.patch"
"${pkgname}-${pkgver}-gcc41.patch"
- "${pkgname}-${pkgver}-setrgba.patch")
+ "${pkgname}-${pkgver}-setrgba.patch"
+ "${pkgname}-${pkgver}-xinitthreads.patch")
sha512sums=('19c49a584ab71a4fbe4a0d3f05382ce464c3c5f3e37a6dbd42b4920a18577d66464d8e1277d32c34cf9248a945da05fda17a3ecd35e770fdd8af6e9f691ab52a'
'b3877c523b8c4f666fe5435882e6603abe448e53485939048b3f0ae617cae8634218aba553afdc3f97e03406c1a5a924b9a487930dfe62256f9155a26d39cba7'
'4a7fe804884feb05fe2af8f0c4cf83b89324ab10e1dad834e3ebcca403223b0c29b8050cbaac3652e64c18f4d1a7b800406431974187839483dbb07f85f9af87'
'df259114e25efb486ad980b44449b8c33b3afe87a726a5c40641831810d0de30a56c671bbcc5fdbe2fec05b860a3b2ed1439947240c967f938c6771e91d5907e'
- '2bb8e4c26d33a0383f3867459dcc15f5d7500adbbb5cdc230d7fba1d45c9ba4f0ba46731770c5ef25f6adc8121efbef9ecd0ecdac53ed3c3ced840010e3164d4')
+ '2bb8e4c26d33a0383f3867459dcc15f5d7500adbbb5cdc230d7fba1d45c9ba4f0ba46731770c5ef25f6adc8121efbef9ecd0ecdac53ed3c3ced840010e3164d4'
+ 'c25f58c8390d0485a78242af991b6381cfddbe3dac9057bfcc909385b07bbbab6fe3953c0c9290926a3e5547422f7aed883b1d48c4acd25a0327b31189a967c8')
prepare() {
cd "${pkgname}-${pkgver}"
@@ -30,6 +32,9 @@
patch -Np1 -i "../${pkgname}-${pkgver}-cflags.patch"
patch -Np1 -i "../${pkgname}-${pkgver}-gcc41.patch"
patch -Np1 -i "../${pkgname}-${pkgver}-setrgba.patch"
+ # allow multiple meters:
+ # https://bugs.archlinux.org/task/61530
+ patch -Np1 -i "../${pkgname}-${pkgver}-xinitthreads.patch"
autoreconf -vfi
}
Added: meterbridge-0.9.3-xinitthreads.patch
===================================================================
--- meterbridge-0.9.3-xinitthreads.patch (rev 0)
+++ meterbridge-0.9.3-xinitthreads.patch 2019-05-10 09:15:25 UTC (rev 464785)
@@ -0,0 +1,30 @@
+diff -Naur orig.meterbridge-0.9.3/configure.in meterbridge-0.9.3/configure.in
+--- orig.meterbridge-0.9.3/configure.in 2019-01-24 17:00:49.573488552 -0800
++++ meterbridge-0.9.3/configure.in 2019-01-24 17:01:49.105270619 -0800
+@@ -9,6 +9,7 @@
+ # Checks for libraries.
+ AC_CHECK_LIB([pthread], [pthread_self], , [AC_MSG_ERROR(You need libpthread installed)])
+ AC_CHECK_LIB([m], [sqrt], , [AC_MSG_ERROR(Can't find libm)])
++AC_CHECK_LIB([X11], [XInitThreads], , [AC_MSG_ERROR(You need Xlib instaled)])
+
+ # Checks for packages.
+ AM_PATH_SDL(1.2.0, , AC_MSG_ERROR([Requires SDL 1.2 or later]))
+diff -Naur orig.meterbridge-0.9.3/src/main.c meterbridge-0.9.3/src/main.c
+--- orig.meterbridge-0.9.3/src/main.c 2019-01-24 17:00:49.573488552 -0800
++++ meterbridge-0.9.3/src/main.c 2019-01-24 17:02:23.251050690 -0800
+@@ -10,6 +10,7 @@
+ #include <GL/gl.h>
+ #include <jack/jack.h>
+ #include <getopt.h>
++#include <X11/Xlib.h>
+
+ #include "config.h"
+ #include "main.h"
+@@ -68,6 +69,7 @@
+ meter_t meter_type = MET_PPM;
+ char window_name[256];
+ char *us_client_name = NULL;
++ XInitThreads();
+
+ num_meters = argc;
+ while ((opt = getopt(argc, argv, "t:r:c:n:g:h")) != -1) {
More information about the arch-commits
mailing list