Commit Graph

128 Commits

Author SHA1 Message Date
Nedko Arnaudov b1ec48747c Revert "Solving problems while compiling jack2 on macOS X with dbus support (#434)"
Reduce code bloat by removing support of non-libre operating system

This reverts commit bb3f5cb296.
2023-11-18 16:49:40 +02:00
Nedko Arnaudov 3cc8d25b68 As same uptime() is shared between linux and freebsd, adjust the wscript 2023-11-07 21:16:08 +02:00
Nedko Arnaudov 8897c95c97 Fix warnings 2023-11-07 21:06:01 +02:00
Nedko Arnaudov 72b81b8fcb Remove traces of jackaudio/jack2 macos and windows support in jackdbus codebase 2023-11-07 20:46:42 +02:00
Nedko Arnaudov ed167c1fa1 wsript: C++ compiler is not used, drop checks and options 2023-11-07 20:41:38 +02:00
Nedko Arnaudov df84b1d17d dbus/reserve.c: Fix -Wsingle-bit-bitfield-constant-conversion by using unsigned int
../dbus/reserve.c:154:16: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
  154 |                                 d->gave_up = 1;
      |                                            ^ ~
2023-11-07 10:52:55 +02:00
Nedko Arnaudov 994086cfd9 Replace sigsegv.c with siginfo.c and build it only when explicitly enabled
siginfo is disabled by default so building on new CPU
architectures does not require adjusting of siginfo.c anymore.

When needed, --siginfo can be used as option to ./waf configure
to enable the functionality
2023-11-07 02:51:33 +02:00
Nedko Arnaudov b659584d0e dbus/reserve.c: Include system-wide control.h 2023-11-07 01:54:43 +02:00
Nedko Arnaudov 191ae7a7eb Build jackdbus against system-wide jack headers 2023-07-25 22:15:24 +03:00
Nedko Arnaudov 92e12d5c7d remove unused files dbus/audio_reserve.[ch]
These are actually jackd specific.
2023-07-25 22:08:38 +03:00
Nedko Arnaudov a8ec586cba dbus/jack_control: moved to https://gitea.ladish.org/LADI/jack_control
Backup repo: https://github.com/LADI/jack_control

dbus/jack_control is now submodule

jack_control is now always installed as part of jackdbus.
With dedicated repos for jackdbus and jack_control,
there is no point in having jack_control installation conditional.
2023-07-24 02:59:00 +03:00
Nedko Arnaudov 2fbd7ace76 dbus/controller.c: Use jackctl_server_create() instead of jackctl_server_create2()
This is mort portable across jack1 and jack2. jackctl_server_create2() is jackd.exe specific and has no purpose for jackdbus.
2023-07-22 06:44:36 +03:00
Nedko Arnaudov 1a23ec5ae9 jack_control: new command - "show"
show command behaves a bit like last parts of (current) adevices.sh script,
but chains the involved commands status2, dg, dp and ep internally.

The adevices.sh script uses status command and does not display
JACK settings unless jack is started. The show command uses
status2, so the settings will be displayed always.
2023-07-09 17:28:27 +03:00
Nedko Arnaudov 757bfbb903 jack_control: add status2 command
While status command returns always, status2 command
allows followup chained commands.
2023-07-09 17:23:29 +03:00
Nedko Arnaudov 005535b799 Restore display of source sha-1 in jackdbus log
This commit changes build info to display info about jackdbus itself,
along with libjackserver.so provided build info

Fixes https://github.com/LADI/jackdbus/issues/1
2023-04-18 21:43:20 +03:00
Nedko Arnaudov b75e75db77 Adjust my copyleft lines in wscripts
See https://github.com/jackaudio/jack2/pull/319
2022-09-10 16:16:17 +03:00
Karl Linden c4d0565898 License the project clearly
This adds a LICENSE file that describes which licenses this project is
licensed under. This is very important, as the project is licensed under
three licenses.

Also added are copyright notices to the wscript files. I added myself as
copyright holder to them, but there are other people who have
contributed to these files which should have their name in the copyright
header. Clearly stating the license of the wscript files should have
been done long ago.
2022-09-10 16:15:51 +03:00
Martin Bruset Solberg 6ce70b7d34 refactor: fixed typo
(cherry picked from commit ba0fd27b9c51c34d6a2de4339e45d44edbd48518)
2022-09-10 13:01:31 +03:00
Nedko Arnaudov b28b97ee1b Cleanup jackdbus 2022-08-27 21:35:48 +03:00
David Runge 5aa5861af0 Fix jack_control for flake8 compatibility
dbus/jack_control:
Remove unused imports for os and traceback.print_exc.
Fix indentation, whitespace and line length issues across the entire
file.
Simplify printing in `print_help()` by calling `print()` only once.
2022-04-13 22:57:52 +01:00
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