Commit Graph

108 Commits

Author SHA1 Message Date
nick87720z 3a19b628f8
jack_control - shell mode and update (#821)
* jack_control: move to tools for a while

* jack_control: shell mode command

This command runs loop, which executes commands from stdin until EOF
(Ctrl+D in terminal). Command status is printed to stdout.

* jack_control: optimize some functions

* jack_control: unused function

* jack_control: more informative message about dbus typesig error

* jack_control: Fix shell mode I/O

* restore jack_control path
2022-04-13 18:31:49 +01:00
David Runge aa27576236
Fix wscripts syntax (#826)
* Add flake8 configuration

.flake8:
Add flake8 configuration that limits the line length to 120 chars and
outputs to flake8.txt

* Add flake8.txt to gitignore

.gitignore:
Add flake8.txt (flake8 output file) to ignore.

* Syntax fixes and cleanup for top-level wscript

wscript:
Fix syntax of wscript according to pep8 (but do not break long lines).
Remove unused imports and move all module level imports to the top of
the file.
Fix broken build target of IIO driver (source argument to
`create_driver_obj()` supplied an uninitialized variable).
Break lines at 120 chars.

* Fix common/wscript syntax

common/wscript:
Fix syntax problems, unneeded imports and break lines at 120 chars.

* Fix compat/alloca/wscript syntax

compat/alloca/wscript:
Fix compat/alloca/wscript syntax

* Fix compat/wscript syntax

compat/wscript:
Fix compat/wscript syntax

* Fix dbus/wscript syntax

dbus/wscript:
Fix syntax and break lintes at 120 chars.

* Fix example-clients/wscript syntax

example-clients/wscript:
Fix syntax and remove commented code.

* Fix tests/wscript syntax

tests/wscript:
Fix syntax and commented code.

* Fix tools/wscript syntax

tools/wscript:
Fix tools/wscript syntax.

* Add github workflow for linting wscripts

.github/workflows/lint.yml:
Add github workflow for linting wscripts using findutils and flake8.

* Fix project version extraction in CI

.github/workflows/build.yml:
Adapt the project version extraction in CI to the syntax changes in
the top-level wscript.
2022-04-13 18:29:29 +01:00
David Runge 8d7faa5bea Move jack_control to dbus (#831)
* Move jack_control to dbus dir

dbus/jack_control:
The `jack_control` script is dbus specific and not part of the original
jack tools. As the files offered by jack-example-tools are now
optionally not built, the script needs to be made available from a
location, that is not ignored when omitting the build of
jack-example-tools files.

* Move installation of jack_control to dbus integration

dbus/wscript:
Install `jack_control` script if building/installing jackdbus.

tools/wscript:
Remove (unconditional) installation of `jack_control` script.
2022-01-15 15:09:56 +00:00
David Runge 3d6fd78701 Remove use of svnversion_regenerate.sh
dbus/jackdbus.c:
Rely on the `JACK_VERSION` define instead of `SVN_VERSION` (included
from svnversion.h).

dbus/wscript:
Add the `JACK_VERSION` define based on `JACK_VERSION` configuration.

wscript:
Remove all code related to the use of `svnversion.h` and
`svnversion_regenerate.sh`.
2022-01-15 15:09:56 +00:00
Greg V ada406603c dbus: use Linux style uptime on FreeBSD 2022-01-15 15:09:55 +00:00
Goran Mekić 5c667d5282 Add FreeBSD support 2022-01-15 15:09:55 +00:00
falkTX 93619ed0c5 Make sure we use python3 (another patch from Fedora) 2019-10-28 11:38:21 +01:00
falkTX f19176657c Fix blocking DBus device reservation, so it plays nice with others 2019-10-28 11:16:09 +01:00
Guido Aulisi 5286020560 Fix compilation on ARM
size_t i is needed if HAVE_EXECINFO_H is defined
2019-10-11 10:09:45 +01:00
luz.paz a93b210134 FIx doxygen and user facing and non-facing typos
Found via `codespell -q 3`
2019-09-11 19:17:07 +01:00
Filipe Coelho 59550f67ee
Fix client UUID gen, and some warnings (#440)
* Fix generation of client uuid

Signed-off-by: falkTX <falktx@falktx.com>

* Remove all client properties when removed; Cleanup a few things

Signed-off-by: falkTX <falktx@falktx.com>

* Make all uuid function arguments use jack_uuid_t type; Fix warnings

Signed-off-by: falkTX <falktx@falktx.com>

* Rework uuids to never be int, more cleanup

Signed-off-by: falkTX <falktx@falktx.com>
2019-03-18 08:33:50 +01:00
shura bb3f5cb296 Solving problems while compiling jack2 on macOS X with dbus support (#434)
* Solving problems while compiling jack2 on macOS X with dbus support

* Using the right function name in uptime error
2019-02-24 18:09:47 +01:00
Karl Linden 630c6145b8
Update to waf 2.0.11
- Migrate pkg-config checks from atleast_version.
- Check ppoll with a fragment, since the function_name argument has been
  removed.
2018-10-06 16:08:54 +02:00
Adrian Knoth c5dac6270e More spelling fixes from Debian QA 2018-02-25 19:06:46 +01:00
Adrian Knoth 6ccfdc1058 Mass-fix spelling errors
Flagged by the Debian QA tool.

Mostly automatic search-n-replace of the mistakes flagged.
2018-02-25 18:47:52 +01:00
Thomas Brand 6680b60f42 Show hint when DBus device reservation fails 2017-07-20 18:01:55 +02:00
Adrian Knoth a96111a7a3 Merge pull request #206 from tSed/fix-build-when-execinfo.b-is-not-available
Make backtrace support depend on execinfo.h's existence
2017-01-10 22:18:11 +01:00
Thomas Petazzoni e2cba86e65 wscript: improve check for ucontext
The ucontext functionality is not available on all CPUs with all C
libraries. Instead of making just assumptions based on the CPU
architecture, this commit adds the necessary checks in wscript to verify
the availability of the ucontext functionality, before using it in
dbus/sigsegv.c.

This avoids the long list of architecture exclusions, and make it more
robust when building jack2 for new CPU architectures.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-12-17 17:25:03 +01:00
Samuel Martin 8ac6bf1b4a wscript: make backtrace support depends on execinfo.h existence
In some C-libraries (like uclibc), backtrace support is optional, so the
execinfo.h may not exist.

This change adds the check for execinfo.h header and conditionaly enable
backtrace support.

This issue has been triggered by Buildroot farms:
  http://autobuild.buildroot.org/results/391/391e71a988250ea66ec4dbee6f60fdce9eaf2766/build-end.log

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
2016-05-20 22:46:50 +02:00
Bernd Kuhls 628a52265f Add support for nios2
When compiling jack on nios2, compilation fails because NGREGS is not
defined. Since this is only for debug output on segmentation faults, stub
the debug print out like it's been done for other platforms before.

Inspired by
d11bb09529

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
2016-04-19 19:34:39 +02:00
Karl Lindén cf818931e4 explicitly import Logs and Options from waflib 2015-05-02 12:36:31 +02:00
Karl Lindén c412d8384f replace WARNING with ERROR in configure messages 2015-04-08 23:53:54 +02:00
Karl Lindén 8accf6531a add mandatory=False to dbus-1 check so that the custom error message is shown if dbus-1 is missing 2015-04-08 23:51:49 +02:00
Karl Lindén 213f3ba20a drop unnecessary conf.is_defined('HAVE_DBUS_1') since it is the same as conf.check_cfg(package='dbus-1', ...) 2015-04-08 23:48:48 +02:00
Karl Lindén f1c308e434 use pkg-config to find expat and drop explicit HAVE_EXPAT and LIB_EXPAT since they are set by check_cfg 2015-04-08 23:44:14 +02:00
Karl Lindén ca66dd1c90 specify mandatory=False when checking for expat so that the expat error message can be reached if expat is not found 2015-04-08 23:35:07 +02:00
Adrian Knoth 29fb0ca657 Merge pull request #28 from agraf/master
Add aarch64 (64-bit arm) compile support
2013-04-15 07:56:30 -07:00
Nedko Arnaudov 8f556dac4f Make audio_acquire() fail if audio_reservation_init() fails.
rd_acquire() is going to assert (or fail) anyway because connection will be NULL.
2013-04-06 22:00:52 +03:00
Alexander Graf d11bb09529 Add support for aarch64
When compiling jack on aarch64, compilation fails because NGREGS is not
defined. Since this is only for debug output on segmentation faults, stub
the debug print out like it's been done for other platforms before.

Signed-off-by: Alexander Graf <agraf@suse.de>
2013-03-05 01:38:12 +01:00
Stéphane Letz e814e508d5 Merge pull request #23 from jackaudio/device_reservation_fixes
Device reservation fixes
2012-11-26 14:39:16 -08:00
Nedko Arnaudov 6414cd9dbf Improved error reporting in device reservation code
rd_acquire() error handling is adjusted to match libdbus error
handling convention:
 * Initialize error before calling rd_acquire()
 * Free dbus error on rd_acquire() failures
 * Always set dbus error on rd_acquire failures, except for
   detected programming errors that now cause taboo assert.
2012-11-24 05:12:35 +02:00
Adrian Knoth 89c359eee0 [wscript] More fixes for -Wl,--as-needed
Reportedly, f28523ff54 was incomplete.
2012-11-07 13:32:46 +01:00
Adrian Knoth a43aad2e91 Fix FTBFS on ppc64
Patch provided by Aurelien Jarno <aurel32@debian.org> in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684470
2012-08-11 11:40:39 +02:00
Adrian Knoth 007cdc3714 Make SA_SIGINFO conditional
SA_SIGINFO isn't defined on hurd, so check before setting it.

This patch was used in Debian since 2010-08-01.
2012-05-29 21:11:00 +02:00
David Henningsson f82ec71566 jackdbus: Fix sigsegv handling segfaulting by itself
In my case, the siginfo code was -6, causing the sigsegv handling
to crash on its own. This patch adds a range check for siginfo code.

BugLink: https://bugs.launchpad.net/bugs/983835
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2012-04-18 03:18:19 +03:00
Nedko Arnaudov fcda41cb59 indention fix 2012-02-15 21:40:36 +02:00
Nedko Arnaudov 83f991900d switch from set_options() to options() 2012-02-15 21:39:33 +02:00
Nedko Arnaudov 329d83c92b swtich from uselib/uselib_local to use 2012-02-15 21:36:44 +02:00
Nedko Arnaudov 971b1656d5 switch from bld.new_task_gen() to bld()
jackdbus needs explicit index because device reservation code
is shared with jackd and waf cannot autodetect this.
2012-02-15 21:30:55 +02:00
Adrian Knoth aa7fe34739 wscript: Fix waf error (missing features) in dbus/wscript 2012-02-12 14:15:23 +01:00
Adrian Knoth a534162500 wscript: Fix DBUS service file generation
New waf syntax for a subst build.
2012-02-12 14:15:23 +01:00
Adrian Knoth 58036bc80f Run 2to3 on all wscript files.
Automatically upgrading to python3 syntax, where possible.
2012-02-09 18:13:53 +01:00
sletz 32bc4fa557 Use a time-out in notification channel write function.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4761 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-02-01 11:16:25 +00:00
sletz 1ce0d5cd61 Correction to use public headers in dbus code.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4675 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-01-07 13:27:55 +00:00
nedko 7bbe5971bf jackdbus: group batch of saves into one
When a parameter is set, jackdbus used to save immediately.
This was quite annoying and ineffective when configuring
lot of parameters without delay. It caused log line to appear
for each parameter set and xml file serialization as well.

This changeset implements delayed save. Parameters are saved
two seconds after last parameter set.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4583 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-11-12 19:23:44 +00:00
nedko 1a205fac42 remove sneaked sleep that caused jack session saves to take long time
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4549 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-10-16 22:35:42 +00:00
Nedko Arnaudov 0f439c74dd jackdbus: implement session command queue 2011-08-11 08:33:34 +03:00
Nedko Arnaudov e93e526957 dbus: info log messages for session notify 2011-08-07 05:32:19 +03:00
Nedko Arnaudov 94eea6f4dd jackdbus: SessionManager interface 2011-07-21 00:35:21 +03:00
sletz 90494cc885 Correct rd_acquire.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4395 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-05-27 12:37:06 +00:00